| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| protected static enum | HTTP3Stream.
Defines the state of the stream for received frames, allowing to verify that a frame sequence is valid for the HTTP protocol. |
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private HTTP3Stream. | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final AtomicReference | |
| private boolean | |
| private final QuicStreamEndPoint | |
| private long | |
| private HTTP3Stream. | |
| private long | |
| private final boolean | |
| private final AutoLock | |
| private static final Logger | |
| private final HTTP3Session |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CompletableFuture | data(DataFrame frame)
Implements org. Sends the given DATA frame containing some or all the bytes of the request content or of the response content. |
| public void | demand()
Implements org. Demands more |
| public Object | |
| public QuicStreamEndPoint | |
| public long | getExpireNanoTime()
Implements org. Returns the expiration time in nanoseconds. |
| public long | |
| public long | |
| public HTTP3Session | getSession()
Implements org. Get the session this stream is associated to. |
| public boolean | |
| protected boolean | |
| public boolean | |
| private boolean | |
| public boolean | |
| private boolean | |
| protected void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| pack-priv void | |
| public void | |
| private void | |
| private Stream. | |
| public Stream. | readData()
Implements org. Reads request content bytes or response content bytes. |
| public void | reset(long error, Throwable failure)
Implements org. Abruptly terminates this stream with the given error. |
| public void | setAttachment(Object attachment)
Implements org. Attaches the given object to this stream for later retrieval. |
| public void | |
| public String | |
| public CompletableFuture | trailer(HeadersFrame frame)
Implements org. Sends the given HEADERS frame containing the trailer headers. |
| public void | |
| protected boolean | |
| protected CompletableFuture | |
| public Promise. |
| attachment | back to summary |
|---|---|
| private Object attachment | |
| closeState | back to summary |
|---|---|
| private HTTP3Stream. | |
| dataAvailable | back to summary |
|---|---|
| private boolean dataAvailable | |
| dataDemand | back to summary |
|---|---|
| private boolean dataDemand | |
| dataLast | back to summary |
|---|---|
| private boolean dataLast | |
| dataRef | back to summary |
|---|---|
| private final AtomicReference<Stream. | |
| dataStalled | back to summary |
|---|---|
| private boolean dataStalled | |
| endPoint | back to summary |
|---|---|
| private final QuicStreamEndPoint endPoint | |
| expireNanoTime | back to summary |
|---|---|
| private long expireNanoTime | |
| frameState | back to summary |
|---|---|
| private HTTP3Stream. | |
| idleTimeout | back to summary |
|---|---|
| private long idleTimeout | |
| local | back to summary |
|---|---|
| private final boolean local | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| session | back to summary |
|---|---|
| private final HTTP3Session session | |
| HTTP3Stream | back to summary |
|---|---|
| public HTTP3Stream(HTTP3Session session, QuicStreamEndPoint endPoint, boolean local) | |
| data | back to summary |
|---|---|
| public CompletableFuture Implements org. Doc from org. Sends the given DATA frame containing some or all the bytes of the request content or of the response content.
| |
| demand | back to summary |
|---|---|
| public void demand() Implements org. Doc from org. Demands more Calling this method causes This method is idempotent: calling it when there already is an
outstanding demand to invoke The thread invoking this method may invoke directly
It is always guaranteed that invoking this method from within
| |
| getAttachment | back to summary |
|---|---|
| public Object getAttachment() Implements org.
| |
| getEndPoint | back to summary |
|---|---|
| public QuicStreamEndPoint getEndPoint() | |
| getExpireNanoTime | back to summary |
|---|---|
| public long getExpireNanoTime() Implements org. Doc from org. Returns the expiration time in nanoseconds. The value to return must be calculated taking into account the current nanoTime, for example: expireNanoTime = NanoTime.now() + timeoutNanos
Returning
| |
| getId | back to summary |
|---|---|
| public long getId() Implements org. Doc from org. Get the stream id.
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getSession | back to summary |
|---|---|
| public HTTP3Session getSession() Implements org. Doc from org. Get the session this stream is associated to.
| |
| hasDemand | back to summary |
|---|---|
| public boolean hasDemand() | |
| hasDemandOrStall | back to summary |
|---|---|
| protected boolean hasDemandOrStall() | |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| isLast | back to summary |
|---|---|
| private boolean isLast() | |
| isLocal | back to summary |
|---|---|
| public boolean isLocal() | |
| isStalled | back to summary |
|---|---|
| private boolean isStalled() | |
| notIdle | back to summary |
|---|---|
| protected void notIdle() | |
| notifyDataAvailable | back to summary |
|---|---|
| protected abstract void notifyDataAvailable() | |
| notifyFailure | back to summary |
|---|---|
| protected abstract void notifyFailure(long error, Throwable failure) | |
| notifyIdleTimeout | back to summary |
|---|---|
| protected abstract void notifyIdleTimeout(TimeoutException timeout, Promise<Boolean> promise) | |
| notifyTrailer | back to summary |
|---|---|
| protected abstract void notifyTrailer(HeadersFrame frame) | |
| onData | back to summary |
|---|---|
| public void onData(DataFrame ignored) | |
| onData | back to summary |
|---|---|
| public void onData(Stream. | |
| onDataAvailable | back to summary |
|---|---|
| private void onDataAvailable() | |
| onFailure | back to summary |
|---|---|
| public void onFailure(long error, Throwable failure) | |
| onHeaders | back to summary |
|---|---|
| public void onHeaders(HeadersFrame frame) | |
| onIdleTimeout | back to summary |
|---|---|
| pack-priv void onIdleTimeout(TimeoutException timeout, Promise<Boolean> promise) | |
| onTrailer | back to summary |
|---|---|
| public void onTrailer(HeadersFrame frame) | |
| processData | back to summary |
|---|---|
| private void processData() | |
| read | back to summary |
|---|---|
| private Stream. | |
| readData | back to summary |
|---|---|
| public Stream. Implements org. Doc from org. Reads request content bytes or response content bytes. The returned
When the returned
| |
| reset | back to summary |
|---|---|
| public void reset(long error, Throwable failure) Implements org. Doc from org. Abruptly terminates this stream with the given error.
| |
| setAttachment | back to summary |
|---|---|
| public void setAttachment(Object attachment) Implements org. Doc from org. Attaches the given object to this stream for later retrieval.
| |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long idleTimeout) | |
| 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-
| |
| trailer | back to summary |
|---|---|
| public CompletableFuture Implements org. Doc from org. Sends the given HEADERS frame containing the trailer headers.
| |
| updateClose | back to summary |
|---|---|
| public void updateClose(boolean update, boolean local) | |
| validateAndUpdate | back to summary |
|---|---|
| protected boolean validateAndUpdate(EnumSet<HTTP3Stream. | |
| write | back to summary |
|---|---|
| protected CompletableFuture | |
| writeFrame | back to summary |
|---|---|
| public Promise. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final HTTP3Stream. | |
| public static final HTTP3Stream. | |
| public static final HTTP3Stream. | |
| public static final HTTP3Stream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HTTP3Stream. | |
| public static HTTP3Stream. |
| CLOSED | back to summary |
|---|---|
| public static final HTTP3Stream. | |
| LOCALLY_CLOSED | back to summary |
|---|---|
| public static final HTTP3Stream. | |
| NOT_CLOSED | back to summary |
|---|---|
| public static final HTTP3Stream. | |
| REMOTELY_CLOSED | back to summary |
|---|---|
| public static final HTTP3Stream. | |
| CloseState | back to summary |
|---|---|
| private CloseState() | |
| valueOf | back to summary |
|---|---|
| public static HTTP3Stream. | |
| values | back to summary |
|---|---|
| public static HTTP3Stream. | |
Defines the state of the stream for received frames,
allowing to verify that a frame sequence is valid for the HTTP protocol.
For example, for a stream in the INITIAL state,
receiving a DataFrame would move the stream to the
DATA state which would be invalid, since for the
HTTP protocol a HeadersFrame is expected before
any DataFrame.
| Modifier and Type | Field and Description |
|---|---|
| public static final HTTP3Stream. | DATA
The stream has received HTTP content. |
| public static final HTTP3Stream. | FAILED
The stream has encountered a failure. |
| public static final HTTP3Stream. | HEADER
The stream has received an HTTP final response. |
| public static final HTTP3Stream. | INFORMATIONAL
The stream has received an HTTP informational response. |
| public static final HTTP3Stream. | INITIAL
The initial state of the stream, before it receives any frame. |
| public static final HTTP3Stream. | TRAILER
The stream has received an HTTP trailer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HTTP3Stream. | |
| public static HTTP3Stream. |
| DATA | back to summary |
|---|---|
| public static final HTTP3Stream. The stream has received HTTP content. | |
| FAILED | back to summary |
|---|---|
| public static final HTTP3Stream. The stream has encountered a failure. | |
| HEADER | back to summary |
|---|---|
| public static final HTTP3Stream. The stream has received an HTTP final response. | |
| INFORMATIONAL | back to summary |
|---|---|
| public static final HTTP3Stream. The stream has received an HTTP informational response. | |
| INITIAL | back to summary |
|---|---|
| public static final HTTP3Stream. The initial state of the stream, before it receives any frame. | |
| TRAILER | back to summary |
|---|---|
| public static final HTTP3Stream. The stream has received an HTTP trailer. | |
| FrameState | back to summary |
|---|---|
| private FrameState() | |
| valueOf | back to summary |
|---|---|
| public static HTTP3Stream. | |
| values | back to summary |
|---|---|
| public static HTTP3Stream. | |