private class HttpChannel.SendCallback extends Callback.Nested
Callback.Completable, Callback.Completing, Callback.InvocableCallback, Callback.NestedInvocable.InvocationType| Modifier and Type | Field and Description |
|---|---|
private boolean |
_commit |
private boolean |
_complete |
private java.nio.ByteBuffer |
_content |
private int |
_length |
__nonBlocking| Modifier | Constructor and Description |
|---|---|
private |
SendCallback(Callback callback,
java.nio.ByteBuffer content,
boolean commit,
boolean complete) |
| 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, getInvocationTypecompletedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombine, from, from, from, from, from, fromcombine, getInvocationType, invokeNonBlocking, isNonBlockingInvocationprivate final java.nio.ByteBuffer _content
private final int _length
private final boolean _commit
private final boolean _complete
private SendCallback(Callback callback, java.nio.ByteBuffer content, boolean commit, boolean complete)
public void succeeded()
CallbackCallback invoked when the operation completes.
succeeded in interface Callbacksucceeded in class Callback.NestedCallback.failed(Throwable)public void failed(java.lang.Throwable x)
CallbackCallback invoked when the operation fails.
failed in interface Callbackfailed in class Callback.Nestedx - the reason for the operation failure