QuicStream should
implement QuicSenderStream (unidirectional StreamMode#WRITE_ONLY stream), or QuicReceiverStream
(unidirectional StreamMode#READ_ONLY stream), or
QuicBidiStream (bidirectional StreamMode#READ_WRITE stream).
| Modifier and Type | Class and Description |
|---|---|
| public static enum | QuicStream.
The stream operation mode. |
| public static interface | QuicStream.
An interface that unifies the three different stream states. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | Returns: whether this stream is bidirectionalReturns whether this stream is bidirectional. |
| public boolean | Returns: whether this stream is client initiatedReturns whether this stream is client initiated. |
| public boolean | Returns: true if this stream is local initiatedReturns true if this stream is local initiated. |
| public boolean | Returns: true if this stream is remote initiatedReturns true if this stream is remote initiated. |
| public boolean | Returns: whether this stream is server initiatedReturns whether this stream is server initiated. |
| public QuicStream. | |
| public QuicStream. | |
| public long | |
| public int |
| hasError | back to summary |
|---|---|
| public boolean hasError() Returns true if the stream has errors. For a bidirectional stream, this method returns true if either its sending part or its receiving part was closed with a non-zero error code.
| |
| isBidirectional | back to summary |
|---|---|
| public boolean isBidirectional() Returns whether this stream is bidirectional.
| |
| isClientInitiated | back to summary |
|---|---|
| public boolean isClientInitiated() Returns whether this stream is client initiated.
| |
| isLocalInitiated | back to summary |
|---|---|
| public boolean isLocalInitiated() Returns true if this stream is local initiated.
| |
| isRemoteInitiated | back to summary |
|---|---|
| public boolean isRemoteInitiated() Returns true if this stream is remote initiated.
| |
| isServerInitiated | back to summary |
|---|---|
| public boolean isServerInitiated() Returns whether this stream is server initiated.
| |
| mode | back to summary |
|---|---|
| public QuicStream. Returns this stream operation mode.
One of
| |
| state | back to summary |
|---|---|
| public QuicStream. Returns the combined stream state. API Note This is mostly used for logging purposes, to log the combined state of a stream.
| |
| streamId | back to summary |
|---|---|
| public long streamId() Returns the stream ID of this stream.
| |
| type | back to summary |
|---|---|
| public int type() The type of this stream, as an int. This is a number between 0 and 3 inclusive, and corresponds to the last two lowest bits of the stream ID.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final QuicStream. | |
| public static final QuicStream. | |
| public static final QuicStream. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this operation mode allows reading data from the streamReturns true if this operation mode allows reading data from the stream. |
| public boolean | Returns: true if this operation mode allows writing data to the streamReturns true if this operation mode allows writing data to the stream. |
| public static QuicStream. | |
| public static QuicStream. |
| READ_ONLY | back to summary |
|---|---|
| public static final QuicStream. | |
| READ_WRITE | back to summary |
|---|---|
| public static final QuicStream. | |
| WRITE_ONLY | back to summary |
|---|---|
| public static final QuicStream. | |
| StreamMode | back to summary |
|---|---|
| private StreamMode() | |
| isReadable | back to summary |
|---|---|
| public boolean isReadable() Returns true if this operation mode allows reading data from the stream.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() Returns true if this operation mode allows writing data to the stream.
| |
| valueOf | back to summary |
|---|---|
| public static QuicStream. | |
| values | back to summary |
|---|---|
| public static QuicStream. | |
API Note
This is mostly used for logging purposes, to log the combined state of a stream.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String |
| isTerminal | back to summary |
|---|---|
| public boolean isTerminal() Returns true if this is a terminal state.
| |
| name | back to summary |
|---|---|
| public String name() | |