private class HTTP2Session.DataCallback extends Callback.Nested implements Retainable
Callback.Completable, Callback.Completing, Callback.Nested
Invocable.InvocationType
Modifier and Type | Field and Description |
---|---|
private int |
flowControlLength |
private IStream |
stream |
__nonBlocking
Constructor and Description |
---|
DataCallback(Callback callback,
IStream stream,
int flowControlLength) |
Modifier and Type | Method and Description |
---|---|
private void |
complete() |
void |
failed(java.lang.Throwable x)
Callback invoked when the operation fails.
|
void |
retain() |
void |
succeeded()
Callback invoked when the operation completes.
|
getCallback, getInvocationType
completed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInvocationType, invokeNonBlocking, isNonBlockingInvocation
private final IStream stream
private final int flowControlLength
public void retain()
retain
in interface Retainable
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 failureprivate void complete()