|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Writer<L>
Implementations of this interface are able to write data from a Buffer
to Connection.
There are two basic Writer implementations in Grizzly:
AsyncQueueWriter,
TemporarySelectorWriter.
| Method Summary | |
|---|---|
GrizzlyFuture<WriteResult<WritableMessage,L>> |
write(Connection connection,
L dstAddress,
WritableMessage message)
Method writes the WritableMessage to the specific address. |
void |
write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the WritableMessage to the specific address. |
void |
write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler,
PushBackHandler pushBackHandler)
Method writes the WritableMessage to the specific address. |
GrizzlyFuture<WriteResult<WritableMessage,L>> |
write(Connection connection,
WritableMessage message)
Method writes the WritableMessage. |
void |
write(Connection connection,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the WritableMessage. |
| Method Detail |
|---|
GrizzlyFuture<WriteResult<WritableMessage,L>> write(Connection connection,
WritableMessage message)
throws java.io.IOException
WritableMessage.
connection - the Connection to write tomessage - the WritableMessage, from which the data will be written
Future, using which it's possible to check the
result
java.io.IOException
void write(Connection connection,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
WritableMessage.
connection - the Connection to write tomessage - the WritableMessage, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completed
GrizzlyFuture<WriteResult<WritableMessage,L>> write(Connection connection,
L dstAddress,
WritableMessage message)
WritableMessage to the specific address.
connection - the Connection to write todstAddress - the destination address the WritableMessage will be
sent tomessage - the WritableMessage, from which the data will be written
Future, using which it's possible to check the
result
void write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
WritableMessage to the specific address.
connection - the Connection to write todstAddress - the destination address the WritableMessage will be
sent tomessage - the WritableMessage, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completed
void write(Connection connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler,
PushBackHandler pushBackHandler)
WritableMessage to the specific address.
connection - the Connection to write todstAddress - the destination address the WritableMessage will be
sent tomessage - the WritableMessage, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completedpushBackHandler - PushBackHandler, which will be notified
if message was accepted by transport write queue or refused
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||