StreamFrame
before being written.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final SequentialScheduler |
| Access | Constructor and Description |
|---|---|
| public | QuicStreamWriter(SequentialScheduler
A sequential scheduler that will
push data into this writer. scheduler)Creates a new instance of a QuicStreamWriter. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | Returns: true if this writer is connected to its streamReturns true if this writer is connected to its stream. |
| public abstract long | |
| public abstract void | queueForWriting(ByteBuffer
A byte buffer to schedule for writing buffer)Queues a |
| public abstract void | |
| public abstract void | scheduleForWriting(ByteBuffer
A byte buffer to schedule for writing buffer, boolean Whether that's the last data that will be sent
through this stream. last)Pushes a ByteBuffer to be scheduled for writing on the stream. |
| public abstract QuicSenderStream. | |
| public boolean | Returns: true if STOP_SENDING was receivedReturns true if STOP_SENDING was received. |
| public abstract QuicSenderStream |
| scheduler | back to summary |
|---|---|
| pack-priv final SequentialScheduler scheduler | |
| QuicStreamWriter | back to summary |
|---|---|
| public QuicStreamWriter(SequentialScheduler scheduler) Creates a new instance of a QuicStreamWriter.
| |
| connected | back to summary |
|---|---|
| public abstract boolean connected() Returns true if this writer is connected to its stream.
| |
| credit | back to summary |
|---|---|
| public abstract long credit() Indicates how many bytes the writer is
prepared to received for sending.
When that value grows from 0, and if the queue has
no pending data, the API Note This information is used to avoid
buffering too much data while waiting for flow
credit on the underlying stream. When flow credit
is available, the
| |
| queueForWriting | back to summary |
|---|---|
| public abstract void queueForWriting(ByteBuffer buffer) throws IOException Queues a API Note Use this method as a hint that more data will be upcoming shortly that might be aggregated with the data being queued in order to reduce the number of packets that will be sent to the peer. This is useful when a small number of bytes need to be written to the stream before actual stream data. Typically, this can be used for writing the HTTP/3 stream type for a unidirectional HTTP/3 stream before starting to send stream data.
| |
| reset | back to summary |
|---|---|
| public abstract void reset(long errorCode) throws IOException Abruptly resets the stream.
| |
| scheduleForWriting | back to summary |
|---|---|
| public abstract void scheduleForWriting(ByteBuffer buffer, boolean last) throws IOException Pushes a ByteBuffer to be scheduled for writing on the stream. The ByteBuffer will be wrapped in a StreamFrame before being sent. Data that cannot be sent due to a lack of flow credit will be buffered.
| |
| sendingState | back to summary |
|---|---|
| public abstract QuicSenderStream. Returns the sending state of the stream. API Note This method returns the state of the
| |
| stopSendingReceived | back to summary |
|---|---|
| public boolean stopSendingReceived() Returns true if STOP_SENDING was received.
| |
| stream | back to summary |
|---|---|
| public abstract QuicSenderStream stream() Returns the stream this writer is connected to, or
| |