|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AddressableStreamWriter<A>
Addressable StreamWriter, which can send data to different destinations.
UDPNIOStreamWriter,
AddressableStreamReader| Method Summary | |
|---|---|
Future<Integer> |
flush(A peerAddress,
CompletionHandler<Integer> completionHandler)
Flush data to the specific destination address. |
A |
getPeerAddress()
Get the destination address, where the data will be sent on next flush. |
void |
setPeerAddress(A peerAddress)
Set the destination address, where the data will be sent on next flush. |
| Methods inherited from interface org.glassfish.grizzly.streams.StreamWriter |
|---|
close, flush, flush, getBuffer, getBufferSize, getConnection, getTimeout, isBlocking, setBlocking, setBufferSize, setTimeout, writeBoolean, writeBooleanArray, writeBuffer, writeByte, writeByteArray, writeByteArray, writeChar, writeCharArray, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeShort, writeShortArray, writeStream |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
A getPeerAddress()
void setPeerAddress(A peerAddress)
peerAddress - the destination address, where the data will be
sent on next flush.
Future<Integer> flush(A peerAddress,
CompletionHandler<Integer> completionHandler)
throws IOException
peerAddress - the destination address, where the data will be
sent on next flush.completionHandler - CompletionHandler, which will get
updated with the flush operation state.
Future, which could be checked to get flush operation state.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||