public class HTTP2Flusher extends IteratingCallback
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTP2Flusher.Entry |
IteratingCallback.ActionCallback.Completable, Callback.NestedInvocable.InvocableExecutor, Invocable.InvocationType__nonBlocking| Constructor and Description |
|---|
HTTP2Flusher(HTTP2Session session) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(HTTP2Flusher.Entry entry) |
int |
getQueueSize() |
protected void |
onCompleteFailure(java.lang.Throwable x)
Invoked when the overall task has completed with a failure.
|
protected void |
onCompleteSuccess()
Invoked when the overall task has completed successfully.
|
boolean |
prepend(HTTP2Flusher.Entry entry) |
protected IteratingCallback.Action |
process()
Method called by
IteratingCallback.iterate() to process the sub task. |
void |
succeeded()
Invoked when the sub task succeeds.
|
void |
window(IStream stream,
WindowUpdateFrame frame) |
close, failed, isClosed, isFailed, isSucceeded, iterate, reset, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasPreferred, getInvocationType, getInvocationType, invokeNonBlocking, invokePreferNonBlocking, invokePreferred, isNonBlockingInvocationpublic HTTP2Flusher(HTTP2Session session)
public void window(IStream stream, WindowUpdateFrame frame)
public boolean prepend(HTTP2Flusher.Entry entry)
public boolean append(HTTP2Flusher.Entry entry)
public int getQueueSize()
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)protected void onCompleteSuccess()
IteratingCallbackonCompleteSuccess in class IteratingCallbackIteratingCallback.onCompleteFailure(Throwable)protected void onCompleteFailure(java.lang.Throwable x)
IteratingCallbackonCompleteFailure in class IteratingCallbackx - the throwable to indicate cause of failureIteratingCallback.onCompleteSuccess()Copyright © 1995–2017 Webtide. All rights reserved.