public class HTTP2Flusher extends IteratingCallback implements Dumpable
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTP2Flusher.Entry |
IteratingCallback.ActionCallback.Completable, Callback.NestedInvocable.InvocationType__nonBlocking| Constructor and Description |
|---|
HTTP2Flusher(HTTP2Session session) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(HTTP2Flusher.Entry entry) |
java.lang.String |
dump() |
void |
dump(java.lang.Appendable out,
java.lang.String indent) |
int |
getFrameQueueSize() |
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.
|
java.lang.String |
toString() |
void |
window(IStream stream,
WindowUpdateFrame frame) |
close, failed, isClosed, isFailed, isSucceeded, iterate, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInvocationType, getInvocationType, invokeNonBlocking, 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 getFrameQueueSize()
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()public void dump(java.lang.Appendable out,
java.lang.String indent)
throws java.io.IOException
public java.lang.String toString()
toString in class IteratingCallbackCopyright © 1995–2018 Webtide. All rights reserved.