|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asyncobjects.AsyncUnicastServer<C>
net.sf.asyncobjects.io.WrappingChannel<D,I,O,C>
D - a batched data typeI - an input typeO - an output typeC - a channel typepublic abstract class WrappingChannel<D extends BatchedData<D>,I extends AInput<D>,O extends AOutput<D>,C extends AChannel<D,I,O>>
Byte channel that wraps existing channel some functionality over it.
| Field Summary | |
|---|---|
protected I |
in
an input |
protected O |
out
and output |
protected C |
wrapped
a wrapped byte channel |
| Constructor Summary | |
|---|---|
WrappingChannel(C wrapped)
A constructor |
|
| Method Summary | |
|---|---|
Promise<Void> |
close()
Close resource |
Promise<I> |
getInput()
|
Promise<O> |
getOutput()
|
protected abstract I |
wrap(I input)
Wrap input into buffered stream |
protected abstract O |
wrap(O output)
Wrap output into buffered stream |
| Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer |
|---|
dereference, export, isImmediate, myVat, promise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.asyncobjects.AsyncObject |
|---|
dereference, isImmediate |
| Field Detail |
|---|
protected final C extends AChannel<D,I,O> wrapped
protected I extends AInput<D> in
protected O extends AOutput<D> out
| Constructor Detail |
|---|
public WrappingChannel(C wrapped)
wrapped - a wrapped channel| Method Detail |
|---|
public Promise<I> getInput()
getInput in interface AChannel<D extends BatchedData<D>,I extends AInput<D>,O extends AOutput<D>>AChannel.getInput()protected abstract I wrap(I input)
input - an input to wrap
public Promise<O> getOutput()
getOutput in interface AChannel<D extends BatchedData<D>,I extends AInput<D>,O extends AOutput<D>>AChannel.getOutput()protected abstract O wrap(O output)
output - an output
public Promise<Void> close()
ACloseable
close in interface ACloseableACloseable.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||