private class HttpSenderOverHTTP.ByteBufferRecyclerCallback extends Callback.Nested
Callback.Completable, Callback.Nested
Invocable.InvocationType
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer[] |
buffers |
private ByteBufferPool |
pool |
__nonBlocking
Modifier | Constructor and Description |
---|---|
private |
ByteBufferRecyclerCallback(Callback callback,
ByteBufferPool pool,
java.nio.ByteBuffer... buffers) |
Modifier and Type | Method and Description |
---|---|
void |
failed(java.lang.Throwable x)
Callback invoked when the operation fails.
|
void |
succeeded()
Callback invoked when the operation completes.
|
getCallback, getInvocationType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInvocationType, invokeNonBlocking, isNonBlockingInvocation
private final ByteBufferPool pool
private final java.nio.ByteBuffer[] buffers
private ByteBufferRecyclerCallback(Callback callback, ByteBufferPool pool, java.nio.ByteBuffer... buffers)
public void succeeded()
Callback
Callback invoked when the operation completes.
succeeded
in interface Callback
succeeded
in class Callback.Nested
Callback.failed(Throwable)
public void failed(java.lang.Throwable x)
Callback
Callback invoked when the operation fails.
failed
in interface Callback
failed
in class Callback.Nested
x
- the reason for the operation failure