Package org.eclipse.jetty.http2
Class HTTP2Flusher
java.lang.Object
org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.http2.HTTP2Flusher
- All Implemented Interfaces:
org.eclipse.jetty.util.Callback
,org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.thread.Invocable
public class HTTP2Flusher
extends org.eclipse.jetty.util.IteratingCallback
implements org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
private class
Nested classes/interfaces inherited from class org.eclipse.jetty.util.IteratingCallback
org.eclipse.jetty.util.IteratingCallback.Action
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.Nested
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.InvocationType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ByteBuffer[]
private final Deque
<HTTP2Flusher.Entry> private org.eclipse.jetty.util.thread.Invocable.InvocationType
private final org.eclipse.jetty.io.ByteBufferPool.Lease
private static final org.eclipse.jetty.util.log.Logger
private final Queue
<HTTP2Flusher.Entry> private final Collection
<HTTP2Flusher.Entry> private final HTTP2Session
private HTTP2Flusher.Entry
private Throwable
private final Queue
<HTTP2Flusher.WindowEntry> Fields inherited from interface org.eclipse.jetty.util.Callback
NOOP
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
append
(List<HTTP2Flusher.Entry> list) boolean
append
(HTTP2Flusher.Entry entry) private void
closed
(HTTP2Flusher.Entry entry, Throwable failure) dump()
void
dump
(Appendable out, String indent) private void
finish()
int
org.eclipse.jetty.util.thread.Invocable.InvocationType
private int
protected void
protected void
(package private) void
onFlushed
(long bytes) boolean
prepend
(HTTP2Flusher.Entry entry) protected org.eclipse.jetty.util.IteratingCallback.Action
process()
void
(package private) void
toString()
void
window
(IStream stream, WindowUpdateFrame frame) Methods inherited from class org.eclipse.jetty.util.IteratingCallback
close, failed, isClosed, isFailed, isSucceeded, iterate, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
-
Field Details
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
EMPTY_BYTE_BUFFERS
-
windows
-
entries
-
pendingEntries
-
processedEntries
-
session
-
lease
private final org.eclipse.jetty.io.ByteBufferPool.Lease lease -
invocationType
private org.eclipse.jetty.util.thread.Invocable.InvocationType invocationType -
terminated
-
stalledEntry
-
-
Constructor Details
-
HTTP2Flusher
-
-
Method Details
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()- Specified by:
getInvocationType
in interfaceorg.eclipse.jetty.util.thread.Invocable
-
window
-
prepend
-
append
-
append
-
getWindowQueueSize
private int getWindowQueueSize() -
getFrameQueueSize
public int getFrameQueueSize() -
process
- Specified by:
process
in classorg.eclipse.jetty.util.IteratingCallback
- Throws:
Throwable
-
onFlushed
- Throws:
IOException
-
succeeded
public void succeeded()- Specified by:
succeeded
in interfaceorg.eclipse.jetty.util.Callback
- Overrides:
succeeded
in classorg.eclipse.jetty.util.IteratingCallback
-
finish
private void finish() -
onCompleteSuccess
protected void onCompleteSuccess()- Overrides:
onCompleteSuccess
in classorg.eclipse.jetty.util.IteratingCallback
-
onCompleteFailure
- Overrides:
onCompleteFailure
in classorg.eclipse.jetty.util.IteratingCallback
-
terminate
-
closed
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
- Throws:
IOException
-
toString
- Overrides:
toString
in classorg.eclipse.jetty.util.IteratingCallback
-