| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private Connection | |
| private final long | |
| private final AtomicReference | |
| private final AtomicBoolean | |
| private final AtomicReference | |
| private static final Logger | |
| private final AtomicReference | |
| private final HTTP2Stream | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close(Throwable
the reason for the close or null cause)Implements org. Close any backing stream associated with the endpoint, passing a cause |
| private ByteBuffer | |
| public int | fill(ByteBuffer
The buffer to fill. The position and limit are modified during the fill. After the
operation, the position is unchanged and the limit is increased to reflect the new data filled. sink)Overrides default org. Fill the passed buffer with data from this endpoint. |
| private int | |
| public void | fillInterested(Callback
the callback to call when an error occurs or we are readable. The callback may implement the callback)Invocable interface to
self declare its blocking status. Non-blocking callbacks may be called more efficiently without dispatch delays.Implements org. Requests callback methods to be invoked when a call to |
| public boolean | flush(ByteBuffer...
the buffers to flush buffers)Overrides default org. Flush data from the passed header/buffer to this endpoint. |
| public Connection | |
| public long | |
| public long | getIdleTimeout()
Implements org. Get the max idle time in ms. |
| public InetSocketAddress | |
| public SocketAddress | |
| public InetSocketAddress | |
| public SocketAddress | |
| public Object | |
| public boolean | |
| public boolean | isInputShutdown()
Implements org. Test if the input is shutdown. |
| public boolean | |
| public boolean | isOutputShutdown()
Implements org. Test if output is shutdown. |
| public void | onClose(Throwable
The reason for the close, or null if a normal close. cause)Implements org. Callback method invoked when this |
| public void | onOpen()
Implements org. Callback method invoked when this EndPoint is opened. |
| private void | |
| private void | |
| private void | |
| protected void | |
| protected void | |
| private long | |
| public void | setConnection(Connection
the connection)Connection associated with this EndPointImplements org.
|
| public void | setIdleTimeout(long
the idle timeout in MS. Timeout <= 0 implies an infinite timeout idleTimeout)Implements org. Set the idle timeout. |
| public void | |
| public String | |
| public boolean | tryFillInterested(Callback
the callback to call when an error occurs or we are readable. The callback may implement the callback)Invocable interface to
self declare its blocking status. Non-blocking callbacks may be called more efficiently without dispatch delays.Implements org. Requests callback methods to be invoked when a call to |
| public void | upgrade(Connection
the connection to upgrade to newConnection)Implements org. Upgrades this EndPoint from the current connection to the given new connection. |
| public void | write(Callback
the callback to call when an error occurs or the write completed. The callback may implement the callback, ByteBuffer... Invocable interface to
self declare its blocking status. Non-blocking callbacks may be called more efficiently without dispatch delays.one or more buffers)ByteBuffers that will be flushed.Overrides default org. Writes the given buffers via |
| private void | |
| private void |
| closed | back to summary |
|---|---|
| private final AtomicBoolean closed | |
| connection | back to summary |
|---|---|
| private Connection connection | |
| created | back to summary |
|---|---|
| private final long created | |
| data | back to summary |
|---|---|
| private final AtomicReference<Stream. | |
| eof | back to summary |
|---|---|
| private final AtomicBoolean eof | |
| failure | back to summary |
|---|---|
| private final AtomicReference<Throwable> failure | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| readCallback | back to summary |
|---|---|
| private final AtomicReference<Callback> readCallback | |
| stream | back to summary |
|---|---|
| private final HTTP2Stream stream | |
| writeState | back to summary |
|---|---|
| private final AtomicReference<HTTP2StreamEndPoint. | |
| HTTP2StreamEndPoint | back to summary |
|---|---|
| public HTTP2StreamEndPoint(HTTP2Stream stream) | |
| close | back to summary |
|---|---|
| public void close(Throwable cause) Implements org. Doc from org. Close any backing stream associated with the endpoint, passing a cause | |
| coalesce | back to summary |
|---|---|
| private ByteBuffer coalesce(ByteBuffer[] buffers) | |
| fill | back to summary |
|---|---|
| public int fill(ByteBuffer sink) throws IOException Overrides default org. Doc from org. Fill the passed buffer with data from this endpoint. The bytes are appended to any data already in the buffer by writing from the buffers limit up to it's capacity. The limit is updated to include the filled bytes.
| |
| fillFromData | back to summary |
|---|---|
| private int fillFromData(Stream. | |
| fillInterested | back to summary |
|---|---|
| public void fillInterested(Callback callback) throws ReadPendingException Implements org. Doc from org. Requests callback methods to be invoked when a call to
| |
| flush | back to summary |
|---|---|
| public boolean flush(ByteBuffer... buffers) throws IOException Overrides default org. Doc from org. Flush data from the passed header/buffer to this endpoint. As many bytes as can be consumed are taken from the header/buffer position up until the buffer limit. The header/buffers position is updated to indicate how many bytes have been consumed.
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() Implements org.
| |
| getCreatedTimeStamp | back to summary |
|---|---|
| public long getCreatedTimeStamp() Implements org.
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() Implements org. Doc from org. Get the max idle time in ms. The max idle time is the time the endpoint can be idle before extraordinary handling takes place.
| |
| getLocalAddress | back to summary |
|---|---|
| public InetSocketAddress getLocalAddress() Implements org.
| |
| getLocalSocketAddress | back to summary |
|---|---|
| public SocketAddress getLocalSocketAddress() Overrides default org.
| |
| getRemoteAddress | back to summary |
|---|---|
| public InetSocketAddress getRemoteAddress() Implements org.
| |
| getRemoteSocketAddress | back to summary |
|---|---|
| public SocketAddress getRemoteSocketAddress() Overrides default org.
| |
| getTransport | back to summary |
|---|---|
| public Object getTransport() Implements org.
| |
| isFillInterested | back to summary |
|---|---|
| public boolean isFillInterested() Implements org.
| |
| isInputShutdown | back to summary |
|---|---|
| public boolean isInputShutdown() Implements org. Doc from org. Test if the input is shutdown.
The input is shutdown if an EOF has been read while doing
a
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org.
| |
| isOutputShutdown | back to summary |
|---|---|
| public boolean isOutputShutdown() Implements org. Doc from org. Test if output is shutdown.
The output is shutdown by a call to
| |
| onClose | back to summary |
|---|---|
| public void onClose(Throwable cause) Implements org. Doc from org. Callback method invoked when this | |
| onOpen | back to summary |
|---|---|
| public void onOpen() Implements org. Doc from org. Callback method invoked when this EndPoint is opened.
| |
| oshutFailure | back to summary |
|---|---|
| private void oshutFailure(Throwable failure) | |
| oshutSuccess | back to summary |
|---|---|
| private void oshutSuccess() | |
| process | back to summary |
|---|---|
| private void process() | |
| processDataAvailable | back to summary |
|---|---|
| protected void processDataAvailable() | |
| processFailure | back to summary |
|---|---|
| protected void processFailure(Throwable failure) | |
| remaining | back to summary |
|---|---|
| private long remaining(ByteBuffer... buffers) | |
| setConnection | back to summary |
|---|---|
| public void setConnection(Connection connection) Implements org.
| |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeout) Implements org. Doc from org. Set the idle timeout.
| |
| shutdownOutput | back to summary |
|---|---|
| public void shutdownOutput() Implements org. Doc from org. Shutdown the output. This call indicates that no more data will be sent on this endpoint that that the remote end should read an EOF once all previously sent data has been consumed. Shutdown may be done either at the TCP/IP level, as a protocol exchange (Eg TLS close handshake) or both.
If the endpoint has
| |
| 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- | |
| tryFillInterested | back to summary |
|---|---|
| public boolean tryFillInterested(Callback callback) Implements org. Doc from org. Requests callback methods to be invoked when a call to
| |
| upgrade | back to summary |
|---|---|
| public void upgrade(Connection newConnection) Implements org. Doc from org. Upgrades this EndPoint from the current connection to the given new connection. Closes the current connection, links this EndPoint to the new connection and then opens the new connection. If the current connection is an instance of
| |
| write | back to summary |
|---|---|
| public void write(Callback callback, ByteBuffer... buffers) throws WritePendingException Overrides default org. Doc from org. Writes the given buffers via
| |
| writeFailure | back to summary |
|---|---|
| private void writeFailure(Throwable failure, Callback callback) | |
| writeSuccess | back to summary |
|---|---|
| private void writeSuccess(Callback callback) | |
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Throwable | |
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. | |
| private final HTTP2StreamEndPoint. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| failure | back to summary |
|---|---|
| private final Throwable failure | |
| IDLE | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| OSHUT | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| OSHUTTING | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| PENDING | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| state | back to summary |
|---|---|
| private final HTTP2StreamEndPoint. | |
| WriteState | back to summary |
|---|---|
| private WriteState(HTTP2StreamEndPoint. | |
| WriteState | back to summary |
|---|---|
| private WriteState(HTTP2StreamEndPoint. | |
| 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 |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. | |
| public static final HTTP2StreamEndPoint. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HTTP2StreamEndPoint. | |
| public static HTTP2StreamEndPoint. |
| FAILED | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| IDLE | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| OSHUT | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| OSHUTTING | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| PENDING | back to summary |
|---|---|
| public static final HTTP2StreamEndPoint. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static HTTP2StreamEndPoint. | |
| values | back to summary |
|---|---|
| public static HTTP2StreamEndPoint. | |