|
||||||||||
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.MulticastOutput<D,O>
D
- a batched data typeO
- an output typepublic class MulticastOutput<D extends BatchedData<D>,O extends AOutput<D>>
A stream that copies data written to it into streams passed to it as
arguments. Close operation closes all streams. A error in one stream causes
an WaitAllException
to be thrown.
Constructor Summary | |
---|---|
MulticastOutput(O... outputs)
A constructor |
Method Summary | |
---|---|
Promise<Void> |
close()
Close stream |
Promise<Void> |
flush()
Flush data |
Promise<Void> |
write(D data)
Write 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 MulticastOutput(O... outputs)
outputs
- outputs to wrapMethod Detail |
---|
public Promise<Void> write(D data)
write
in interface AOutput<D extends BatchedData<D>>
data
- a data to write
AOutput.write(net.sf.asyncobjects.io.BatchedData)
public Promise<Void> flush()
flush
in interface AOutput<D extends BatchedData<D>>
AOutput.flush()
public Promise<Void> close()
close
in interface ACloseable
ACloseable.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |