|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asyncobjects.AsyncUnicastServer<O> net.sf.asyncobjects.io.util.RecordingOutput<D,O>
D
- a data typeO
- a facet typepublic class RecordingOutput<D extends BatchedData<D>,O extends AOutput<D>>
The output that recordes what is written into it. It is most useful for test suits.
Constructor Summary | |
---|---|
RecordingOutput(D initialData)
A constructor |
Method Summary | |
---|---|
Promise<Void> |
close()
Close resource |
Promise<D> |
dataPromise()
|
Promise<Void> |
flush()
Flush data in stream, upon return of this method all data will be written out to most underlying layer |
Promise<Void> |
write(D data)
This method writes out the data. |
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 |
Constructor Detail |
---|
public RecordingOutput(D initialData)
initialData
- an intial state (it must not be null)Method Detail |
---|
public Promise<Void> flush()
AOutput
flush
in interface AOutput<D extends BatchedData<D>>
AOutput.flush()
public Promise<Void> write(D data)
AOutput
write
in interface AOutput<D extends BatchedData<D>>
data
- data to write out
AOutput.write(net.sf.asyncobjects.io.BatchedData)
public Promise<Void> close()
ACloseable
close
in interface ACloseable
ACloseable.close()
public Promise<D> dataPromise()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |