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)
M - type of data to be writtenmessage - 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)
M - type of data to be writtenmessage - the buffer, from which the data will be writtencompletionHandler - CompletionHandler, which will get notified, when write will be completed@Deprecated <M> void write(M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)
M - type of data to be writtenmessage - 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)
M - type of data to be writtendstAddress - 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@Deprecated <M> void write(L dstAddress, M message, CompletionHandler<WriteResult<M,L>> completionHandler, PushBackHandler pushbackHandler)
M - type of data to be writtendstAddress - 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–2020 Oracle Corporation. All rights reserved.