public interface Writeable<L> extends OutputSink
Buffer.
Grizzly Connection extends Writeable.| Modifier and Type | Method and Description |
|---|---|
<M> void |
write(L dstAddress,
M message,
CompletionHandler<WriteResult<M,L>> completionHandler)
Method writes the buffer to the specific address.
|
<M> void |
write(L dstAddress,
M message,
CompletionHandler<WriteResult<M,L>> completionHandler,
PushBackHandler pushbackHandler)
Deprecated.
push back logic is deprecated
|
<M> GrizzlyFuture<WriteResult<M,L>> |
write(M message)
Method writes the buffer.
|
<M> void |
write(M message,
CompletionHandler<WriteResult<M,L>> completionHandler)
Method writes the buffer.
|
<M> void |
write(M message,
CompletionHandler<WriteResult<M,L>> completionHandler,
PushBackHandler pushbackHandler)
Deprecated.
push back logic is deprecated
|
canWrite, canWrite, notifyCanWrite, notifyCanWrite<M> GrizzlyFuture<WriteResult<M,L>> write(M message)
message - the buffer, from which the data will be writtenFuture, using which it's possible to check the
result<M> void write(M message,
CompletionHandler<WriteResult<M,L>> completionHandler)
message - the buffer, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completed<M> void write(M message,
CompletionHandler<WriteResult<M,L>> completionHandler,
PushBackHandler pushbackHandler)
message - the buffer, 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<M> void write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler)
dstAddress - the destination address the buffer will be
sent tomessage - the buffer, from which the data will be writtencompletionHandler - CompletionHandler,
which will get notified, when write will be completed<M> void write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)
dstAddress - the destination address the buffer will be
sent tomessage - the buffer, 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 refusedCopyright © 2017–2019 Oracle Corporation. All rights reserved.