| Modifier and Type | Field and Description |
|---|---|
| public static final ByteBuffer | EOF
A sentinel inserted into the queue after the FIN it has been received. |
| pack-priv final SequentialScheduler |
| Access | Constructor and Description |
|---|---|
| public | QuicStreamReader(SequentialScheduler
A sequential scheduler that will
poll data out of this reader. scheduler)Creates a new instance of a QuicStreamReader. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | Returns: true if this reader is connected to its streamReturns true if this reader is connected to its stream. |
| public boolean | Returns: whether reset was received or read by this readerReturns whether reset was received or read by this reader. |
| public abstract ByteBuffer | Returns: the ByteBuffer at the head of the queue, or null if no data is availableReturns the ByteBuffer at the head of the queue, or null if no data is available. |
| public abstract ByteBuffer | Returns: the ByteBuffer at the head of the queue, or null if no data is availableReturns the ByteBuffer at the head of the queue, or null if no data is available. |
| public abstract QuicReceiverStream. | Returns: the receiving state of the streamReturns the receiving state of the stream. |
| public abstract void | |
| public abstract boolean | |
| public abstract QuicReceiverStream |
| EOF | back to summary |
|---|---|
| public static final ByteBuffer EOF A sentinel inserted into the queue after the FIN it has been received. | |
| scheduler | back to summary |
|---|---|
| pack-priv final SequentialScheduler scheduler | |
| QuicStreamReader | back to summary |
|---|---|
| public QuicStreamReader(SequentialScheduler scheduler) Creates a new instance of a QuicStreamReader. The given scheduler will not be invoked until the reader is started.
| |
| connected | back to summary |
|---|---|
| public abstract boolean connected() Returns true if this reader is connected to its stream.
| |
| isReset | back to summary |
|---|---|
| public boolean isReset() Returns whether reset was received or read by this reader.
| |
| peek | back to summary |
|---|---|
| public abstract ByteBuffer peek() throws IOException Returns the ByteBuffer at the head of the queue, or null if no data is available. Implementation Specification This method behave just like
| |
| poll | back to summary |
|---|---|
| public abstract ByteBuffer poll() throws IOException Returns the ByteBuffer at the head of the queue,
or null if no data is available. . If the end of the stream is
reached then Implementation Specification This method behave just like
| |
| receivingState | back to summary |
|---|---|
| public abstract QuicReceiverStream. Returns the receiving state of the stream. API Note This method returns the state of the
| |
| start | back to summary |
|---|---|
| public abstract void start() Starts the reader. The scheduler will not be invoked until the reader is started. | |
| started | back to summary |
|---|---|
| public abstract boolean started() Returns true if this reader has been started.
| |
| stream | back to summary |
|---|---|
| public abstract QuicReceiverStream stream() Returns the stream this reader is connected to, or
| |