| Modifier and Type | Class and Description |
|---|---|
| private class | |
| protected class | |
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufferPool | |
| private final int | |
| private final AtomicLong | |
| private final AutoLock | |
| private static final Logger | |
| private final HTTP2Connection. | |
| private final HTTP2Session | |
| private final ExecutionStrategy | |
| private final Queue | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected | HTTP2Connection(ByteBufferPool bufferPool, Executor executor, EndPoint endPoint, HTTP2Session session, int bufferSize)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. Performs a logical close of this connection. |
| protected void | |
| private int | |
| public long | getBytesIn()
Overrides org. Implements org.
|
| public long | |
| public long | |
| public long | |
| public HTTP2Session | |
| public boolean | |
| public boolean | |
| protected void | |
| private void | |
| public void | onClose(Throwable
The cause of the close or null for a normal close cause)Overrides org. Implements org. Callback method invoked when this connection is closed. |
| public void | onConnectionFailure(int error, String reason)
Overrides default org.
|
| public void | |
| public void | onFillable()
Implements abstract org. Callback method invoked when the endpoint is ready to be read. |
| public void | onFlushed(long
the number of bytes flushed bytes)Implements org. Invoked when a |
| public void | onGoAway(GoAwayFrame frame)
Overrides default org.
|
| public void | onHeaders(HeadersFrame frame)
Overrides default org.
|
| public boolean | onIdleExpired(TimeoutException timeoutException)
Overrides org. Implements org. Callback method invoked upon an idle timeout event. |
| public void | onOpen()
Overrides org. Implements org. Callback method invoked when this connection is opened. |
| public void | |
| public void | onPriority(PriorityFrame frame)
Overrides default org.
|
| public void | onPushPromise(PushPromiseFrame frame)
Overrides default org.
|
| public void | |
| public void | onSettings(SettingsFrame frame)
Overrides default org.
|
| public void | onStreamFailure(int streamId, int error, String reason)
Overrides default org.
|
| public void | onUpgradeTo(ByteBuffer
a non-null buffer of unconsumed bytes received from
the upgrade-from connection.
The buffer does not belong to any pool and should be discarded after
having consumed its bytes. buffer)Implements org. Invoked during an |
| public void | onWindowUpdate(WindowUpdateFrame frame)
Overrides default org.
|
| private Runnable | |
| protected void | |
| public void | |
| public void |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| bytesIn | back to summary |
|---|---|
| private final AtomicLong bytesIn | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| producer | back to summary |
|---|---|
| private final HTTP2Connection. | |
| session | back to summary |
|---|---|
| private final HTTP2Session session | |
| strategy | back to summary |
|---|---|
| private final ExecutionStrategy strategy | |
| tasks | back to summary |
|---|---|
| private final Queue<Runnable> tasks | |
| useInputDirectByteBuffers | back to summary |
|---|---|
| private boolean useInputDirectByteBuffers | |
| useOutputDirectByteBuffers | back to summary |
|---|---|
| private boolean useOutputDirectByteBuffers | |
| HTTP2Connection | back to summary |
|---|---|
| protected HTTP2Connection(ByteBufferPool bufferPool, Executor executor, EndPoint endPoint, HTTP2Session session, int bufferSize) | |
| close | back to summary |
|---|---|
| public void close() Overrides org. Implements org. Doc from org. Performs a logical close of this connection. For simple connections, this may just mean to delegate the close to the associated
| |
| dispatch | back to summary |
|---|---|
| protected void dispatch() | |
| fill | back to summary |
|---|---|
| private int fill(EndPoint endPoint, ByteBuffer buffer) | |
| getBytesIn | back to summary |
|---|---|
| public long getBytesIn() Overrides org. Implements org.
| |
| getBytesOut | back to summary |
|---|---|
| public long getBytesOut() Overrides org. Implements org.
| |
| getMessagesIn | back to summary |
|---|---|
| public long getMessagesIn() Overrides org. Implements org.
| |
| getMessagesOut | back to summary |
|---|---|
| public long getMessagesOut() Overrides org. Implements org.
| |
| getSession | back to summary |
|---|---|
| public HTTP2Session getSession() | |
| isUseInputDirectByteBuffers | back to summary |
|---|---|
| public boolean isUseInputDirectByteBuffers() | |
| isUseOutputDirectByteBuffers | back to summary |
|---|---|
| public boolean isUseOutputDirectByteBuffers() | |
| offerTask | back to summary |
|---|---|
| protected void offerTask(Runnable task, boolean dispatch) | |
| offerTask | back to summary |
|---|---|
| private void offerTask(Runnable task) | |
| onClose | back to summary |
|---|---|
| public void onClose(Throwable cause) Overrides org. Implements org. Doc from org. Callback method invoked when this connection is closed. Creators of the connection implementation are responsible for calling this method. | |
| onConnectionFailure | back to summary |
|---|---|
| public void onConnectionFailure(int error, String reason) Overrides default org.
| |
| onData | back to summary |
|---|---|
| public void onData(DataFrame frame) Overrides default org.
| |
| onFillable | back to summary |
|---|---|
| public void onFillable() Implements abstract org. Doc from org. Callback method invoked when the endpoint is ready to be read.
| |
| onFlushed | back to summary |
|---|---|
| public void onFlushed(long bytes) throws IOException Implements org. Doc from org. Invoked when a This method may be invoked multiple times, for example when writing a large buffer: a first flush of bytes, then the connection became TCP congested, and a subsequent flush of bytes when the connection became writable again. This method is never invoked concurrently, but may be invoked by different threads, so implementations may not rely on thread-local variables. Implementations may throw an
| |
| onGoAway | back to summary |
|---|---|
| public void onGoAway(GoAwayFrame frame) Overrides default org.
| |
| onHeaders | back to summary |
|---|---|
| public void onHeaders(HeadersFrame frame) Overrides default org.
| |
| onIdleExpired | back to summary |
|---|---|
| public boolean onIdleExpired(TimeoutException timeoutException) Overrides org. Implements org. Doc from org. Callback method invoked upon an idle timeout event. Implementations of this method may return true to indicate that the idle timeout handling should proceed normally, typically failing the EndPoint and causing it to be closed. When false is returned, the handling of the idle timeout event is halted immediately and the EndPoint left in the state it was before the idle timeout event.
| |
| onOpen | back to summary |
|---|---|
| public void onOpen() Overrides org. Implements org. Doc from org. Callback method invoked when this connection is opened. Creators of the connection implementation are responsible for calling this method.
| |
| onPing | back to summary |
|---|---|
| public void onPing(PingFrame frame) Overrides default org.
| |
| onPriority | back to summary |
|---|---|
| public void onPriority(PriorityFrame frame) Overrides default org.
| |
| onPushPromise | back to summary |
|---|---|
| public void onPushPromise(PushPromiseFrame frame) Overrides default org.
| |
| onReset | back to summary |
|---|---|
| public void onReset(ResetFrame frame) Overrides default org.
| |
| onSettings | back to summary |
|---|---|
| public void onSettings(SettingsFrame frame) Overrides default org.
| |
| onStreamFailure | back to summary |
|---|---|
| public void onStreamFailure(int streamId, int error, String reason) Overrides default org.
| |
| onUpgradeTo | back to summary |
|---|---|
| public void onUpgradeTo(ByteBuffer buffer) Implements org. Doc from org. Invoked during an
| |
| onWindowUpdate | back to summary |
|---|---|
| public void onWindowUpdate(WindowUpdateFrame frame) Overrides default org.
| |
| pollTask | back to summary |
|---|---|
| private Runnable pollTask() | |
| produce | back to summary |
|---|---|
| protected void produce() | |
| setUseInputDirectByteBuffers | back to summary |
|---|---|
| public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) | |
| setUseOutputDirectByteBuffers | back to summary |
|---|---|
| public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | failed(Throwable
the reason for the operation failure x)Overrides default org. Callback invoked when the operation fails. |
| public Invocable. | |
| public void | succeeded()
Overrides default org. Callback invoked when the operation completes. |
| FillableCallback | back to summary |
|---|---|
| private FillableCallback() | |
| failed | back to summary |
|---|---|
| public void failed(Throwable x) Overrides default org. Doc from org. Callback invoked when the operation fails. | |
| getInvocationType | back to summary |
|---|---|
| public Invocable. Overrides default org.
| |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides default org. Doc from org. Callback invoked when the operation completes.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Callback | |
| private HTTP2Connection. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Runnable | produce()
Implements org. Produces a task to be executed. |
| private void | |
| private void | |
| private void | |
| public String |
| failed | back to summary |
|---|---|
| private boolean failed | |
| fillableCallback | back to summary |
|---|---|
| private final Callback fillableCallback | |
| networkBuffer | back to summary |
|---|---|
| private HTTP2Connection. | |
| shutdown | back to summary |
|---|---|
| private boolean shutdown | |
| HTTP2Producer | back to summary |
|---|---|
| protected HTTP2Producer() | |
| acquireNetworkBuffer | back to summary |
|---|---|
| private void acquireNetworkBuffer() | |
| produce | back to summary |
|---|---|
| public Runnable produce() Implements org. Doc from org. Produces a task to be executed. | |
| reacquireNetworkBuffer | back to summary |
|---|---|
| private void reacquireNetworkBuffer() | |
| releaseNetworkBuffer | back to summary |
|---|---|
| private void releaseNetworkBuffer() | |
| setInputBuffer | back to summary |
|---|---|
| private void setInputBuffer(ByteBuffer byteBuffer) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final RetainableByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canRetain()
Overrides default org. Returns whether this resource is referenced counted by calls to |
| public ByteBuffer | |
| public boolean | |
| public boolean | |
| private void | |
| public boolean | release()
Overrides default org. Releases this resource, potentially decrementing a reference count (if any). |
| public void | retain()
Overrides default org. Retains this resource, potentially incrementing a reference count if there are resources that will be released. |
| delegate | back to summary |
|---|---|
| private final RetainableByteBuffer delegate | |
| NetworkBuffer | back to summary |
|---|---|
| private NetworkBuffer() | |
| canRetain | back to summary |
|---|---|
| public boolean canRetain() Overrides default org. Doc from org. Returns whether this resource is referenced counted by calls to Implementations may decide that special resources are not not referenced counted (for example,
| |
| getBuffer | back to summary |
|---|---|
| public ByteBuffer getBuffer() | |
| hasRemaining | back to summary |
|---|---|
| public boolean hasRemaining() | |
| isRetained | back to summary |
|---|---|
| public boolean isRetained() | |
| put | back to summary |
|---|---|
| private void put(ByteBuffer source) | |
| release | back to summary |
|---|---|
| public boolean release() Overrides default org. Doc from org. Releases this resource, potentially decrementing a reference count (if any).
| |
| retain | back to summary |
|---|---|
| public void retain() Overrides default org. Doc from org. Retains this resource, potentially incrementing a reference count if there are resources that will be released.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Retainable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canRetain()
Overrides default org. Returns whether this resource is referenced counted by calls to |
| public boolean | release()
Overrides default org. Releases this resource, potentially decrementing a reference count (if any). |
| public void | retain()
Overrides default org. Retains this resource, potentially incrementing a reference count if there are resources that will be released. |
| retainable | back to summary |
|---|---|
| private final Retainable retainable | |
| StreamData | back to summary |
|---|---|
| private StreamData(DataFrame frame, Retainable retainable) | |
| canRetain | back to summary |
|---|---|
| public boolean canRetain() Overrides default org. Doc from org. Returns whether this resource is referenced counted by calls to Implementations may decide that special resources are not not referenced counted (for example,
| |
| release | back to summary |
|---|---|
| public boolean release() Overrides default org. Doc from org. Releases this resource, potentially decrementing a reference count (if any).
| |
| retain | back to summary |
|---|---|
| public void retain() Overrides default org. Doc from org. Retains this resource, potentially incrementing a reference count if there are resources that will be released.
| |