Note
implementers of this interface should be careful that they do not recursively call onComplete, which can lead to stack overflows if send is called many times.
| Modifier and Type | Method and Description |
|---|---|
| public void | close(final IoCallback
The callback that is notified when all data has been flushed and the channel is closed callback)Closes this sender asynchronously. |
| public void | |
| public void | send(final ByteBuffer
The buffer to send. buffer, final IoCallback The callback callback)Write the given buffer using async IO, and calls the given callback on completion or error. |
| public void | send(final ByteBuffer[]
The buffers to send. buffer, final IoCallback The callback callback)Write the given buffers using async IO, and calls the given callback on completion or error. |
| public void | send(final ByteBuffer
The buffer to send. buffer)Write the given buffer using async IO, and ends the exchange when done |
| public void | send(final ByteBuffer[]
The buffers to send. buffer)Write the given buffers using async IO, and ends the exchange when done |
| public void | send(final String
The data to send data, final IoCallback The callback callback)Write the given String using async IO, and calls the given callback on completion or error. |
| public void | send(final String
The buffer to end. data, final Charset The charset to use charset, final IoCallback The callback callback)Write the given String using async IO, and calls the given callback on completion or error. |
| public void | |
| public void | |
| public void | transferFrom(final FileChannel
the file channel to transfer channel, final IoCallback The callback callback)Transfers all content from the specified file |
| close | back to summary |
|---|---|
| public void close(final IoCallback callback) Closes this sender asynchronously. The given callback is notified on completion
| |
| close | back to summary |
|---|---|
| public void close() Closes this sender asynchronously | |
| send | back to summary |
|---|---|
| public void send(final ByteBuffer buffer, final IoCallback callback) Write the given buffer using async IO, and calls the given callback on completion or error.
| |
| send | back to summary |
|---|---|
| public void send(final ByteBuffer[] buffer, final IoCallback callback) Write the given buffers using async IO, and calls the given callback on completion or error.
| |
| send | back to summary |
|---|---|
| public void send(final ByteBuffer buffer) Write the given buffer using async IO, and ends the exchange when done
| |
| send | back to summary |
|---|---|
| public void send(final ByteBuffer[] buffer) Write the given buffers using async IO, and ends the exchange when done
| |
| send | back to summary |
|---|---|
| public void send(final String data, final IoCallback callback) Write the given String using async IO, and calls the given callback on completion or error. The CharSequence is encoded to UTF8
| |
| send | back to summary |
|---|---|
| public void send(final String data, final Charset charset, final IoCallback callback) Write the given String using async IO, and calls the given callback on completion or error.
| |
| send | back to summary |
|---|---|
| public void send(final String data) Write the given String using async IO, and ends the exchange when done The CharSequence is encoded to UTF8
| |
| send | back to summary |
|---|---|
| public void send(final String data, final Charset charset) Write the given String using async IO, and ends the exchange when done | |
| transferFrom | back to summary |
|---|---|
| public void transferFrom(final FileChannel channel, final IoCallback callback) Transfers all content from the specified file
| |