| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final AttributeHolder | |
| private Buffer | |
| private boolean | |
| private volatile GrizzlyFuture | |
| private final Queue | |
| private volatile CloseReason | |
| private static final AtomicReferenceFieldUpdater | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private final boolean | |
| public static final String | |
| public static final String | |
| private final Http2Session | |
| private static final Attribute | |
| private int | |
| pack-priv final StreamInputBuffer | |
| pack-priv volatile boolean | |
| private static final Logger | |
| pack-priv final StreamOutputSink | |
| private final int | |
| private final int | |
| private final HttpRequestPacket | |
| pack-priv Http2Stream. | |
| private final int | |
| private volatile int | |
| pack-priv static final AtomicIntegerFieldUpdater | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| protected | Http2Stream(final Http2Session
the http2Session, final HttpRequestPacket Http2Session for this Http2Stream.the request, final int HttpRequestPacket initiating the stream.this stream's ID. streamId, final int the parent stream, if any. parentStreamId, final boolean exclusive, final int the priority of this stream. priority)Create HTTP2 stream. |
| protected | Http2Stream(final Http2Session
the http2Session, final HttpRequestPacket Http2Session for this Http2Stream.the request, final int HttpRequestPacket initiating the stream.the priority of this stream. priority)Construct upgrade stream, which is half HTTP, half HTTP2 |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCloseListener(final CloseListener<T extends Closeable, C extends ICloseType> closeListener)
Implements org. Add the |
| private IOException | |
| pack-priv IOException | |
| public void | assertOpen()
Implements org. Checks if this Closeable is open and ready to be used. |
| pack-priv boolean | Returns: true if the stream can receive frames, otherwise false.Checks if the specified stream is can receive frames. |
| pack-priv boolean | Returns: true if the stream can send frames, otherwise false.Checks if the specified stream is can send frames. |
| public boolean | |
| public boolean | |
| public GrizzlyFuture | close()
Implements org. Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. |
| public void | close(final CompletionHandler<Closeable> completionHandler)
Implements org.
Deprecated
please use
close() with the following
GrizzlyFuture#addCompletionHandler(org. call
Gracefully closes this stream and releases any system resources associated with it. |
| pack-priv void | close0(final CompletionHandler<Closeable> completionHandler, final CloseType closeType, final IOException cause, final boolean isCloseOutputGracefully)
References Deprecated
CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| pack-priv void | |
| private void | |
| public GrizzlyFuture | |
| public void | closeSilently()
Implements org. Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. |
| private void | |
| public void | closeWithReason(final IOException cause)
Implements org. Gracefully closes the Closeable and provides the reason description. |
| pack-priv void | |
| public AttributeHolder | getAttributes()
Implements org. Get associated |
| pack-priv Http2Session | |
| public int | |
| pack-priv int | |
| pack-priv HttpHeader | |
| public int | |
| pack-priv HttpHeader | |
| pack-priv StreamOutputSink | |
| public int | |
| public int | |
| public int | |
| public HttpRequestPacket | |
| public HttpResponsePacket | |
| pack-priv Http2Stream. | |
| public static Http2Stream | |
| public int | getUnflushedWritesCount()
Returns: the number of writes (not bytes), that haven't reached network layer |
| pack-priv boolean | Returns: true if the stream is closed, otherwise false.Checks if the specified stream is closed. |
| pack-priv boolean | Returns: true if the stream is idle, otherwise false.Checks if the specified stream is idle. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | notifyCanWrite(final WriteHandler handler, final int length)
Implements org.
Deprecated
Instructs the |
| public void | notifyCanWrite(final WriteHandler writeHandler)
Implements org. Instructs the |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | onRcvHeaders(final boolean
flag indicating if the end-of-stream has been reached isEOS)The method is called when an inbound headers are decoded for the stream, which means all the header frames arrived and we're ready to parse the headers. |
| private void | onReceiveEndOfStream()
Transition the stream from: - OPEN -> HALF_CLOSED_REMOTE - HALF_CLOSED_LOCAL -> CLOSED |
| private void | |
| pack-priv void | |
| private void | onReset()
Transition the stream from: - OPEN -> CLOSED - RESERVED_LOCAL -> CLOSED - RESERVED_REMOTE -> CLOSED - HALF_CLOSED_LOCAL -> CLOSED - HALF_CLOSED_REMOTE -> CLOSED |
| private void | onSendEndOfStream()
Transition the stream from: - OPEN -> HALF_CLOSED_LOCAL - HALF_CLOSED_REMOTE -> CLOSED |
| private void | |
| pack-priv void | |
| pack-priv void | onSndHeaders(final boolean
flag indicating if the end-of-stream has been reached isEOS)The method is called when an outbound headers are about to be sent to the peer. |
| pack-priv HttpContent | |
| public boolean | removeCloseListener(final CloseListener<T extends Closeable, C extends ICloseType> closeListener)
Implements org. Remove the |
| pack-priv void | |
| public GrizzlyFuture | terminate()
Implements org. Closes this stream and releases any system resources associated with it. |
| public void | terminateSilently()
Implements org. Closes this stream and releases any system resources associated with it. |
| public void | terminateWithReason(final IOException cause)
Implements org. Closes the Closeable and provides the reason description. |
| attributes | back to summary |
|---|---|
| private final AttributeHolder attributes | |
| cachedInputBuffer | back to summary |
|---|---|
| private Buffer cachedInputBuffer | |
| cachedIsLast | back to summary |
|---|---|
| private boolean cachedIsLast | |
| closeFuture | back to summary |
|---|---|
| private volatile GrizzlyFuture<CloseReason> closeFuture | |
| closeListeners | back to summary |
|---|---|
| private final Queue<CloseListener<T extends Closeable, C extends ICloseType>> closeListeners | |
| closeReason | back to summary |
|---|---|
private volatile CloseReason closeReason
| |
| closeReasonUpdater | back to summary |
|---|---|
| private static final AtomicReferenceFieldUpdater<Http2Stream, CloseReason> closeReasonUpdater | |
| completeFinalizationCounter | back to summary |
|---|---|
private volatile int completeFinalizationCounter
| |
| completeFinalizationCounterUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<Http2Stream> completeFinalizationCounterUpdater | |
| exclusive | back to summary |
|---|---|
| private final boolean exclusive | |
| HTTP2_PARENT_STREAM_ATTRIBUTE | back to summary |
|---|---|
| public static final String HTTP2_PARENT_STREAM_ATTRIBUTE | |
| HTTP2_STREAM_ATTRIBUTE | back to summary |
|---|---|
| public static final String HTTP2_STREAM_ATTRIBUTE | |
| http2Session | back to summary |
|---|---|
| private final Http2Session http2Session | |
| HTTP_RQST_HTTP2_STREAM_ATTR | back to summary |
|---|---|
| private static final Attribute<Http2Stream> HTTP_RQST_HTTP2_STREAM_ATTR | |
| inboundHeaderFramesCounter | back to summary |
|---|---|
| private int inboundHeaderFramesCounter | |
| inputBuffer | back to summary |
|---|---|
| pack-priv final StreamInputBuffer inputBuffer | |
| isProcessingComplete | back to summary |
|---|---|
| pack-priv volatile boolean isProcessingComplete | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| outputSink | back to summary |
|---|---|
| pack-priv final StreamOutputSink outputSink | |
| parentStreamId | back to summary |
|---|---|
| private final int parentStreamId | |
| priority | back to summary |
|---|---|
| private final int priority | |
| request | back to summary |
|---|---|
| private final HttpRequestPacket request | |
| state | back to summary |
|---|---|
| pack-priv Http2Stream. | |
| streamId | back to summary |
|---|---|
| private final int streamId | |
| unackedReadBytes | back to summary |
|---|---|
private volatile int unackedReadBytes
| |
| unackedReadBytesUpdater | back to summary |
|---|---|
| pack-priv static final AtomicIntegerFieldUpdater<Http2Stream> unackedReadBytesUpdater | |
| UPGRADE_STREAM_ID | back to summary |
|---|---|
| pack-priv static final int UPGRADE_STREAM_ID | |
| Http2Stream | back to summary |
|---|---|
| protected Http2Stream(final Http2Session http2Session, final HttpRequestPacket request, final int streamId, final int parentStreamId, final boolean exclusive, final int priority) Create HTTP2 stream.
| |
| Http2Stream | back to summary |
|---|---|
| protected Http2Stream(final Http2Session http2Session, final HttpRequestPacket request, final int priority) Construct upgrade stream, which is half HTTP, half HTTP2
| |
| addCloseListener | back to summary |
|---|---|
| public void addCloseListener(final CloseListener<T extends Closeable, C extends ICloseType> closeListener) Implements org. Doc from org. Add the
| |
| assertCanAcceptData | back to summary |
|---|---|
| private IOException assertCanAcceptData(final boolean fin) | |
| assertCanAcceptHeader | back to summary |
|---|---|
| pack-priv IOException assertCanAcceptHeader(final boolean fin) | |
| assertOpen | back to summary |
|---|---|
| public void assertOpen() throws IOException Implements org. Doc from org. Checks if this Closeable is open and ready to be used. If this Closeable is closed then an IOException will be thrown
| |
| canReceiveFrames | back to summary |
|---|---|
| pack-priv boolean canReceiveFrames() Checks if the specified stream is can receive frames.
| |
| canSendFrames | back to summary |
|---|---|
| pack-priv boolean canSendFrames() Checks if the specified stream is can send frames.
| |
| canWrite | back to summary |
|---|---|
| public boolean canWrite(int length) Implements org. Deprecated
| |
| canWrite | back to summary |
|---|---|
| public boolean canWrite() Implements org.
| |
| close | back to summary |
|---|---|
| public GrizzlyFuture Implements org. Doc from org. Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
| |
| close | back to summary |
|---|---|
| public void close(final CompletionHandler<Closeable> completionHandler) Implements org. Doc from org. Deprecated please use Gracefully closes this stream and releases any system resources associated with it. This operation waits for all pending output data to be flushed before closing the stream. If the stream is already closed then invoking this method has no effect.
| |
| close0 | back to summary |
|---|---|
| pack-priv void close0(final CompletionHandler<Closeable> completionHandler, final CloseType closeType, final IOException cause, final boolean isCloseOutputGracefully)
References Deprecated
See corresponding docs for further information. | |
| closedRemotely | back to summary |
|---|---|
| pack-priv void closedRemotely() Notifies the Http2Stream that it's been closed remotely. | |
| closedStateSwitch | back to summary |
|---|---|
| private void closedStateSwitch() | |
| closeFuture | back to summary |
|---|---|
| public GrizzlyFuture Implements org.
| |
| closeSilently | back to summary |
|---|---|
| public void closeSilently() Implements org. Doc from org. Gracefully (if supported by the implementation) closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. Use this method, when no completion notification is needed.
| |
| closeStream | back to summary |
|---|---|
| private void closeStream() | |
| closeWithReason | back to summary |
|---|---|
| public void closeWithReason(final IOException cause) Implements org. Doc from org. Gracefully closes the Closeable and provides the reason description.
This method is similar to
| |
| flushInputData | back to summary |
|---|---|
| pack-priv void flushInputData() throws Http2SessionException | |
| getAttributes | back to summary |
|---|---|
| public AttributeHolder getAttributes() Implements org. Doc from org. Get associated
| |
| getHttp2Session | back to summary |
|---|---|
| pack-priv Http2Session getHttp2Session() | |
| getId | back to summary |
|---|---|
| public int getId() | |
| getInboundHeaderFramesCounter | back to summary |
|---|---|
| pack-priv int getInboundHeaderFramesCounter() | |
| getInputHttpHeader | back to summary |
|---|---|
| pack-priv HttpHeader getInputHttpHeader() | |
| getLocalWindowSize | back to summary |
|---|---|
| public int getLocalWindowSize() | |
| getOutputHttpHeader | back to summary |
|---|---|
| pack-priv HttpHeader getOutputHttpHeader() | |
| getOutputSink | back to summary |
|---|---|
| pack-priv StreamOutputSink getOutputSink() | |
| getParentStreamId | back to summary |
|---|---|
public int getParentStreamId()
| |
| getPeerWindowSize | back to summary |
|---|---|
| public int getPeerWindowSize() | |
| getPriority | back to summary |
|---|---|
public int getPriority()
| |
| getRequest | back to summary |
|---|---|
| public HttpRequestPacket getRequest() | |
| getResponse | back to summary |
|---|---|
| public HttpResponsePacket getResponse() | |
| getState | back to summary |
|---|---|
| pack-priv Http2Stream. The state of the specified stream.
| |
| getStreamFor | back to summary |
|---|---|
| public static Http2Stream getStreamFor(final HttpHeader httpHeader) | |
| getUnflushedWritesCount | back to summary |
|---|---|
public int getUnflushedWritesCount()
| |
| isClosed | back to summary |
|---|---|
| pack-priv boolean isClosed() Checks if the specified stream is closed.
| |
| isIdle | back to summary |
|---|---|
| pack-priv boolean isIdle() Checks if the specified stream is idle.
| |
| isLocallyInitiatedStream | back to summary |
|---|---|
| public boolean isLocallyInitiatedStream() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Is Closeable open and ready. Returns true, if the Closeable is open and ready, or false otherwise.
| |
| isPushEnabled | back to summary |
|---|---|
public boolean isPushEnabled()
| |
| isPushStream | back to summary |
|---|---|
| public boolean isPushStream() | |
| notifyCanWrite | back to summary |
|---|---|
| public void notifyCanWrite(final WriteHandler handler, final int length) Implements org. Doc from org. Deprecated
Instructs the
| |
| notifyCanWrite | back to summary |
|---|---|
| public void notifyCanWrite(final WriteHandler writeHandler) Implements org. Doc from org. Instructs the
| |
| notifyCloseListeners | back to summary |
|---|---|
| private void notifyCloseListeners() Notify all close listeners
| |
| offerInputData | back to summary |
|---|---|
| pack-priv void offerInputData(final Buffer data, final boolean fin) throws IOException | |
| onInputClosed | back to summary |
|---|---|
| pack-priv void onInputClosed() | |
| onOutputClosed | back to summary |
|---|---|
| pack-priv void onOutputClosed() | |
| onProcessingComplete | back to summary |
|---|---|
| pack-priv void onProcessingComplete() | |
| onRcvHeaders | back to summary |
|---|---|
| pack-priv void onRcvHeaders(final boolean isEOS) throws Http2StreamException The method is called when an inbound headers are decoded for the stream, which means all the header frames arrived and we're ready to parse the headers.
| |
| onReceiveEndOfStream | back to summary |
|---|---|
| private void onReceiveEndOfStream() Transition the stream from: - OPEN -> HALF_CLOSED_REMOTE - HALF_CLOSED_LOCAL -> CLOSED | |
| onReceiveHeaders | back to summary |
|---|---|
| private void onReceiveHeaders() Transition the stream from: - IDLE -> OPEN - RESERVED_REMOTE -> HALF_CLOSED_LOCAL | |
| onReceivePushPromise | back to summary |
|---|---|
| pack-priv void onReceivePushPromise() Transition the stream from IDLE to RESERVED_REMOTE. | |
| onReset | back to summary |
|---|---|
| private void onReset() Transition the stream from: - OPEN -> CLOSED - RESERVED_LOCAL -> CLOSED - RESERVED_REMOTE -> CLOSED - HALF_CLOSED_LOCAL -> CLOSED - HALF_CLOSED_REMOTE -> CLOSED | |
| onSendEndOfStream | back to summary |
|---|---|
| private void onSendEndOfStream() Transition the stream from: - OPEN -> HALF_CLOSED_LOCAL - HALF_CLOSED_REMOTE -> CLOSED | |
| onSendHeaders | back to summary |
|---|---|
| private void onSendHeaders() Transition the stream from: - IDLE -> OPEN - RESERVED_LOCAL -> HALF_CLOSED_REMOTE | |
| onSendPushPromise | back to summary |
|---|---|
| pack-priv void onSendPushPromise() Transition the stream from IDLE to RESERVED_LOCAL. | |
| onSndHeaders | back to summary |
|---|---|
| pack-priv void onSndHeaders(final boolean isEOS) The method is called when an outbound headers are about to be sent to the peer.
| |
| pollInputData | back to summary |
|---|---|
| pack-priv HttpContent pollInputData() throws IOException | |
| removeCloseListener | back to summary |
|---|---|
| public boolean removeCloseListener(final CloseListener<T extends Closeable, C extends ICloseType> closeListener) Implements org. Doc from org. Remove the
| |
| resetRemotely | back to summary |
|---|---|
| pack-priv void resetRemotely() Notify the Http2Stream that peer sent RST_FRAME. | |
| terminate | back to summary |
|---|---|
| public GrizzlyFuture Implements org. Doc from org. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
| |
| terminateSilently | back to summary |
|---|---|
| public void terminateSilently() Implements org. Doc from org. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. Use this method, when no completion notification is needed.
| |
| terminateWithReason | back to summary |
|---|---|
| public void terminateWithReason(final IOException cause) Implements org. Doc from org. Closes the Closeable and provides the reason description.
This method is similar to
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Http2Stream. | |
| public static final Http2Stream. | |
| public static final Http2Stream. | |
| public static final Http2Stream. | |
| public static final Http2Stream. | |
| public static final Http2Stream. | |
| public static final Http2Stream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Http2Stream. | |
| public static Http2Stream. |
| CLOSED | back to summary |
|---|---|
| public static final Http2Stream. | |
| HALF_CLOSED_LOCAL | back to summary |
|---|---|
| public static final Http2Stream. | |
| HALF_CLOSED_REMOTE | back to summary |
|---|---|
| public static final Http2Stream. | |
| IDLE | back to summary |
|---|---|
| public static final Http2Stream. | |
| OPEN | back to summary |
|---|---|
| public static final Http2Stream. | |
| RESERVED_LOCAL | back to summary |
|---|---|
| public static final Http2Stream. | |
| RESERVED_REMOTE | back to summary |
|---|---|
| public static final Http2Stream. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Http2Stream. | |
| values | back to summary |
|---|---|
| public static Http2Stream. | |