| Modifier and Type | Field and Description |
|---|---|
| private final DirectBufferCache. | |
| private final Sender | |
| private final long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | ResponseCachingSender(final Sender delegate, final DirectBufferCache.
|
| 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)Implements io. Closes this sender asynchronously. |
| public void | |
| private void | |
| private void | |
| public void | send(final ByteBuffer
The buffer to send. src, final IoCallback The callback callback)Implements io. 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. srcs, final IoCallback The callback callback)Implements io. 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. src)Implements io. Write the given buffer using async IO, and ends the exchange when done |
| public void | send(final ByteBuffer[]
The buffers to send. srcs)Implements io. 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)Implements io. 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)Implements io. Write the given String using async IO, and calls the given callback on completion or error. |
| public void | send(final String
The data to send data)Implements io. Write the given String using async IO, and ends the exchange when done The CharSequence is encoded to UTF8 |
| public void | send(final String
The buffer to end. data, final Charset The charset to use charset)Implements io. Write the given String using async IO, and ends the exchange when done |
| public void | transferFrom(FileChannel
the file channel to transfer channel, IoCallback The callback callback)Implements io. Transfers all content from the specified file |
| cacheEntry | back to summary |
|---|---|
| private final DirectBufferCache. | |
| delegate | back to summary |
|---|---|
| private final Sender delegate | |
| length | back to summary |
|---|---|
| private final long length | |
| written | back to summary |
|---|---|
| private long written | |
| ResponseCachingSender | back to summary |
|---|---|
| public ResponseCachingSender(final Sender delegate, final DirectBufferCache. | |
| close | back to summary |
|---|---|
| public void close(final IoCallback callback) Implements io. Doc from io. Closes this sender asynchronously. The given callback is notified on completion
| |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Closes this sender asynchronously
| |
| handleUpdate | back to summary |
|---|---|
| private void handleUpdate(final ByteBuffer origSrc) | |
| handleUpdate | back to summary |
|---|---|
| private void handleUpdate(final ByteBuffer[] origSrc, long totalWritten) | |
| send | back to summary |
|---|---|
| public void send(final ByteBuffer src, final IoCallback callback) Implements io. Doc from io. 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[] srcs, final IoCallback callback) Implements io. Doc from io. 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 src) Implements io. Doc from io. Write the given buffer using async IO, and ends the exchange when done
| |
| send | back to summary |
|---|---|
| public void send(final ByteBuffer[] srcs) Implements io. Doc from io. 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) Implements io. Doc from io. 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) Implements io. Doc from io. 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) Implements io. Doc from io. 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) Implements io. Doc from io. Write the given String using async IO, and ends the exchange when done | |
| transferFrom | back to summary |
|---|---|
| public void transferFrom(FileChannel channel, IoCallback callback) Implements io. Doc from io. Transfers all content from the specified file
| |