A transport creates implementation of this class and registers the writer
object using WebSocketEngine. after
a successful upgrade.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | write(ByteBuffer
bytes to write. buffer, CompletionHandler<ByteBuffer> completion handler to know the write status. completionHandler)
A backward compatible method called from |
| public void | write(ByteBuffer
bytes to write. buffer, CompletionHandler<ByteBuffer> completion handler to know the write status. completionHandler, WriterInfo additional information about the data to be written. writerInfo)Tyrus runtime calls this method to handover the data for a connection to the transport. |
| Writer | back to summary |
|---|---|
| public Writer() | |
| write | back to summary |
|---|---|
| public abstract void write(ByteBuffer buffer, CompletionHandler<ByteBuffer> completionHandler)
A backward compatible method called from The method will be removed in the next major version.
| |
| write | back to summary |
|---|---|
| public void write(ByteBuffer buffer, CompletionHandler<ByteBuffer> completionHandler, WriterInfo writerInfo) Tyrus runtime calls this method to handover the data for a connection to the transport. The transport writes bytes to underlying connection. Tyrus runtime must not use the buffer until the write is completed.
| |