public abstract class AbstractWriter<L> extends Object implements Writer<L>
Writer methods.Writer.Reentrant| Constructor and Description |
|---|
AbstractWriter() |
| Modifier and Type | Method and Description |
|---|---|
GrizzlyFuture<WriteResult<WritableMessage,L>> |
write(Connection<L> connection,
L dstAddress,
WritableMessage message)
Method writes the
WritableMessage to the specific address. |
void |
write(Connection<L> connection,
L dstAddress,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the
WritableMessage to the specific address. |
GrizzlyFuture<WriteResult<WritableMessage,L>> |
write(Connection<L> connection,
WritableMessage message)
Method writes the
WritableMessage. |
void |
write(Connection<L> connection,
WritableMessage message,
CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
Method writes the
WritableMessage. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanWrite, notifyWritePossible, write, writepublic final GrizzlyFuture<WriteResult<WritableMessage,L>> write(Connection<L> connection, WritableMessage message)
WritableMessage.write in interface Writer<L>connection - the Connection to write tomessage - the WritableMessage, from which the data will be writtenFuture, using which it's possible to check the
resultpublic final void write(Connection<L> connection, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
WritableMessage.write in interface Writer<L>connection - the Connection to write tomessage - the WritableMessage, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completedpublic final GrizzlyFuture<WriteResult<WritableMessage,L>> write(Connection<L> connection, L dstAddress, WritableMessage message)
WritableMessage to the specific address.write in interface Writer<L>connection - the Connection to write todstAddress - the destination address the WritableMessage will be
sent tomessage - the WritableMessage, from which the data will be writtenFuture, using which it's possible to check the
resultpublic final void write(Connection<L> connection, L dstAddress, WritableMessage message, CompletionHandler<WriteResult<WritableMessage,L>> completionHandler)
WritableMessage to the specific address.write in interface Writer<L>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 completedCopyright © 2014 Oracle Corporation. All Rights Reserved.