| Modifier and Type | Field and Description |
|---|---|
| private final CompletableFuture | |
| private final QuicStreamIntReader | |
| private final QuicReceiverStream |
| Access | Constructor and Description |
|---|---|
| protected | PeerUniStreamDispatcher(QuicReceiverStream
a new unidirectional stream opened by the peer stream)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| protected void | abandon()
This method disconnects the reader, stops the dispatch, and unless
the stream type could be decoded and was a reserved type, calls |
| private void | |
| private static QuicReceiverStream | |
| private void | |
| protected abstract Logger | |
| private void | |
| public CompletableFuture | Returns: a completable future that will contain the dispatched stream, once dispatched, or a throwable if dispatching the stream failedReturns a completable future that will contain the dispatched stream, once dispatched, or a throwable if dispatching the stream failed. |
| private void | |
| protected abstract void | onControlStreamCreated(String
a brief description of the stream for logging purposes description, QuicReceiverStream the peer control stream stream)Called after disconnecting to handle the peer control stream. |
| protected abstract void | onDecoderStreamCreated(String
a brief description of the stream for logging purposes description, QuicReceiverStream the peer decoder stream stream)Called after disconnecting to handle the peer decoder stream. |
| protected abstract void | onEncoderStreamCreated(String
a brief description of the stream for logging purposes description, QuicReceiverStream the peer encoder stream stream)Called after disconnecting to handle the peer encoder stream. |
| protected abstract void | onPushStreamCreated(String
a brief description of the stream for logging purposes description, QuicReceiverStream a peer initiated push stream stream, long pushId)Called after disconnecting to handle a peer initiated push stream. |
| protected void | onReservedStreamType(long
the unrecognized stream type code, QuicReceiverStream the peer initiated stream stream)Called when a reserved stream type is read off the stream. |
| protected void | onStreamAbandoned(QuicReceiverStream
a peer initiated stream which was abandoned due to having an
unknown type, or which was abandoned due to being reset
before being dispatched. stream)Called after disconnecting to abandon a peer initiated stream. |
| protected void | onUnknownStreamType(long
the unrecognized stream type code, QuicReceiverStream the peer initiated stream stream)Called when an unrecognized stream type is read off the stream. |
| private void | |
| private void | |
| private void | |
| private void | |
| protected void | |
| private void |
| cf | back to summary |
|---|---|
| private final CompletableFuture<QuicReceiverStream> cf | |
| reader | back to summary |
|---|---|
| private final QuicStreamIntReader reader | |
| stream | back to summary |
|---|---|
| private final QuicReceiverStream stream | |
| PeerUniStreamDispatcher | back to summary |
|---|---|
| protected PeerUniStreamDispatcher(QuicReceiverStream stream) Creates a
| |
| abandon | back to summary |
|---|---|
| protected void abandon() This method disconnects the reader, stops the dispatch, and unless
the stream type could be decoded and was a reserved type, calls | |
| abort | back to summary |
|---|---|
| private void abort(Throwable throwable) Aborts the dispatch - for instance, if the stream type can't be read, or isn't recognized.
This method requests the peer to stop sending this stream,
and completes the
| |
| checkStream | back to summary |
|---|---|
| private static QuicReceiverStream checkStream(QuicReceiverStream stream) | |
| controlStream | back to summary |
|---|---|
| private void controlStream(String description, Http3Streams. | |
| debug | back to summary |
|---|---|
| protected abstract Logger debug() Returns the debug logger that should be used.
| |
| dispatch | back to summary |
|---|---|
| private void dispatch(Long result, Throwable error) | |
| dispatchCF | back to summary |
|---|---|
| public CompletableFuture Returns a completable future that will contain the dispatched stream, once dispatched, or a throwable if dispatching the stream failed.
| |
| dispatchPushStream | back to summary |
|---|---|
| private void dispatchPushStream(Long result, Throwable error) | |
| onControlStreamCreated | back to summary |
|---|---|
| protected abstract void onControlStreamCreated(String description, QuicReceiverStream stream) Called after disconnecting to handle the peer control stream. The stream type has already been read off the stream.
| |
| onDecoderStreamCreated | back to summary |
|---|---|
| protected abstract void onDecoderStreamCreated(String description, QuicReceiverStream stream) Called after disconnecting to handle the peer decoder stream. The stream type has already been read off the stream.
| |
| onEncoderStreamCreated | back to summary |
|---|---|
| protected abstract void onEncoderStreamCreated(String description, QuicReceiverStream stream) Called after disconnecting to handle the peer encoder stream. The stream type has already been read off the stream.
| |
| onPushStreamCreated | back to summary |
|---|---|
| protected abstract void onPushStreamCreated(String description, QuicReceiverStream stream, long pushId) Called after disconnecting to handle a peer initiated push stream. The stream type has already been read off the stream.
| |
| onReservedStreamType | back to summary |
|---|---|
| protected void onReservedStreamType(long code, QuicReceiverStream stream) Called when a reserved stream type is read off the stream. Implementation Specification The default implementation of this method calls stream.requestStopSending(Http3Error.H3_STREAM_CREATION_ERROR.code());
| |
| onStreamAbandoned | back to summary |
|---|---|
| protected void onStreamAbandoned(QuicReceiverStream stream) Called after disconnecting to abandon a peer initiated stream. API Note A subclass may want to override this method in order to, e.g, emit a QPack Stream Cancellation instruction; See https://www.rfc-editor.org/rfc/rfc9204.html#name-abandonment-of-a-stream
| |
| onUnknownStreamType | back to summary |
|---|---|
| protected void onUnknownStreamType(long code, QuicReceiverStream stream) Called when an unrecognized stream type is read off the stream. Implementation Specification The default implementation of this method calls stream.requestStopSending(Http3Error.H3_STREAM_CREATION_ERROR.code());
abandon();
| |
| pushStream | back to summary |
|---|---|
| private void pushStream(String description, Http3Streams. | |
| qpackDecoderStream | back to summary |
|---|---|
| private void qpackDecoderStream(String description, Http3Streams. | |
| qpackEncoderStream | back to summary |
|---|---|
| private void qpackEncoderStream(String description, Http3Streams. | |
| reservedStreamType | back to summary |
|---|---|
| private void reservedStreamType(long code, QuicReceiverStream stream) | |
| start | back to summary |
|---|---|
| protected void start() Starts the dispatcher. API Note The dispatcher should be explicitly started after creating the dispatcher. | |
| unknownStreamType | back to summary |
|---|---|
| private void unknownStreamType(long code, QuicReceiverStream stream) | |