private class HttpSenderOverHTTP.TrailersCallback extends IteratingCallback
IteratingCallback.ActionCallback.Completable, Callback.NestedInvocable.InvocationType| Modifier and Type | Field and Description |
|---|---|
private Callback |
callback |
private java.nio.ByteBuffer |
chunkBuffer |
__nonBlocking| Constructor and Description |
|---|
TrailersCallback(Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
failed(java.lang.Throwable x)
Invoked when the sub task fails.
|
protected void |
onCompleteSuccess()
Invoked when the overall task has completed successfully.
|
protected IteratingCallback.Action |
process()
Method called by
IteratingCallback.iterate() to process the sub task. |
private void |
release() |
void |
succeeded()
Invoked when the sub task succeeds.
|
close, isClosed, isFailed, isSucceeded, iterate, onCompleteFailure, reset, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInvocationType, getInvocationType, invokeNonBlocking, isNonBlockingInvocationprivate final Callback callback
private java.nio.ByteBuffer chunkBuffer
public TrailersCallback(Callback callback)
protected IteratingCallback.Action process() throws java.lang.Throwable
IteratingCallbackIteratingCallback.iterate() to process the sub task.
Implementations must start the asynchronous execution of the sub task (if any) and return an appropriate action:
IteratingCallback.Action.IDLE when no sub tasks are available for execution
but the overall job is not completed yetIteratingCallback.Action.SCHEDULED when the sub task asynchronous execution
has been startedIteratingCallback.Action.SUCCEEDED when the overall job is completedprocess in class IteratingCallbackjava.lang.Throwable - if the sub task processing throwspublic void succeeded()
IteratingCallbacksuper.succeeded().succeeded in interface Callbacksucceeded in class IteratingCallbackCallback.failed(Throwable)public void failed(java.lang.Throwable x)
IteratingCallbacksuper.failed(Throwable).failed in interface Callbackfailed in class IteratingCallbackx - the reason for the operation failureprotected void onCompleteSuccess()
IteratingCallbackonCompleteSuccess in class IteratingCallbackIteratingCallback.onCompleteFailure(Throwable)private void release()