QuicSenderStream
and QuicReceiverStream.
| Modifier and Type | Field and Description |
|---|---|
| private final QuicReceiverStreamImpl | |
| private final QuicSenderStreamImpl |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private | QuicBidiStreamImpl(QuicConnectionImpl connection, long streamId, QuicSenderStreamImpl sender, QuicReceiverStreamImpl receiver)
|
| Modifier and Type | Method and Description |
|---|---|
| public QuicStreamReader | connectReader(SequentialScheduler scheduler)
Implements jdk. Connects an unstarted reader to the receiver end of this stream. |
| public QuicStreamWriter | connectWriter(SequentialScheduler scheduler)
Implements jdk. Connects a writer to the sending end of this stream. |
| public long | dataReceived()
Implements jdk. Returns the amount of data that has been received so far. |
| public long | dataSent()
Implements jdk. Returns the amount of data that has been sent. |
| public void | disconnectReader(QuicStreamReader reader)
Implements jdk. Disconnect the reader, so that a new reader can be connected. |
| public void | disconnectWriter(QuicStreamWriter writer)
Implements jdk. Disconnect the writer, so that a new writer can be connected. |
| public boolean | isDone()
Implements abstract jdk. Returns true if this stream isn't expecting anything from the peer and can be removed from the streams map. |
| public boolean | |
| public long | maxStreamData()
Implements jdk. Returns the maximum amount of data that can be received on this stream. |
| public long | rcvErrorCode()
Implements jdk. Returns the error code for this stream, or |
| public QuicReceiverStreamImpl | Returns: the receiver part implementation of this bidirectional streamReturns the receiver part implementation of this bidirectional stream. |
| public QuicReceiverStream. | receivingState()
Implements jdk. Returns the receiving state of the stream. |
| public void | requestStopSending(long errorCode)
Implements jdk. Cancels the reading side of this stream by sending a STOP_SENDING frame. |
| public void | reset(long errorCode)
Implements jdk. Abruptly closes the writing side of a stream by sending a RESET_STREAM frame. |
| public QuicSenderStreamImpl | Returns: the sender part implementation of this bidirectional streamReturns the sender part implementation of this bidirectional stream. |
| public QuicSenderStream. | sendingState()
Implements jdk. Returns the sending state of the stream. |
| public long | sndErrorCode()
Implements jdk. Returns the error code for this stream, or |
| public boolean | stopSendingReceived()
Implements jdk. Returns true if STOP_SENDING was received. |
| receiverPart | back to summary |
|---|---|
| private final QuicReceiverStreamImpl receiverPart | |
| senderPart | back to summary |
|---|---|
| private final QuicSenderStreamImpl senderPart | |
| QuicBidiStreamImpl | back to summary |
|---|---|
| pack-priv QuicBidiStreamImpl(QuicConnectionImpl connection, long streamId) | |
| QuicBidiStreamImpl | back to summary |
|---|---|
| private QuicBidiStreamImpl(QuicConnectionImpl connection, long streamId, QuicSenderStreamImpl sender, QuicReceiverStreamImpl receiver) | |
| connectReader | back to summary |
|---|---|
| public QuicStreamReader connectReader(SequentialScheduler scheduler) Implements jdk. Doc from jdk. Connects an unstarted reader to the receiver end of this stream.
| |
| connectWriter | back to summary |
|---|---|
| public QuicStreamWriter connectWriter(SequentialScheduler scheduler) Implements jdk. Doc from jdk. Connects a writer to the sending end of this stream.
| |
| dataReceived | back to summary |
|---|---|
| public long dataReceived() Implements jdk. Doc from jdk. Returns the amount of data that has been received so far.
| |
| dataSent | back to summary |
|---|---|
| public long dataSent() Implements jdk. Doc from jdk. Returns the amount of data that has been sent.
| |
| disconnectReader | back to summary |
|---|---|
| public void disconnectReader(QuicStreamReader reader) Implements jdk. Doc from jdk. Disconnect the reader, so that a new reader can be connected.
| |
| disconnectWriter | back to summary |
|---|---|
| public void disconnectWriter(QuicStreamWriter writer) Implements jdk. Doc from jdk. Disconnect the writer, so that a new writer can be connected.
| |
| isDone | back to summary |
|---|---|
| public boolean isDone() Implements abstract jdk. Doc from jdk. Returns true if this stream isn't expecting anything from the peer and can be removed from the streams map.
| |
| isStopSendingRequested | back to summary |
|---|---|
| public boolean isStopSendingRequested() Overrides default jdk.
| |
| maxStreamData | back to summary |
|---|---|
| public long maxStreamData() Implements jdk. Doc from jdk. Returns the maximum amount of data that can be received on this stream.
| |
| rcvErrorCode | back to summary |
|---|---|
| public long rcvErrorCode() Implements jdk. Doc from jdk. Returns the error code for this stream, or
| |
| receiverPart | back to summary |
|---|---|
| public QuicReceiverStreamImpl receiverPart() Returns the receiver part implementation of this bidirectional stream.
| |
| receivingState | back to summary |
|---|---|
| public QuicReceiverStream. Implements jdk. Doc from jdk. Returns the receiving state of the stream.
| |
| requestStopSending | back to summary |
|---|---|
| public void requestStopSending(long errorCode) Implements jdk. Doc from jdk. Cancels the reading side of this stream by sending a STOP_SENDING frame.
| |
| reset | back to summary |
|---|---|
| public void reset(long errorCode) throws IOException Implements jdk. Doc from jdk. Abruptly closes the writing side of a stream by sending a RESET_STREAM frame.
| |
| senderPart | back to summary |
|---|---|
| public QuicSenderStreamImpl senderPart() Returns the sender part implementation of this bidirectional stream.
| |
| sendingState | back to summary |
|---|---|
| public QuicSenderStream. Implements jdk. Doc from jdk. Returns the sending state of the stream.
| |
| sndErrorCode | back to summary |
|---|---|
| public long sndErrorCode() Implements jdk. Doc from jdk. Returns the error code for this stream, or
| |
| stopSendingReceived | back to summary |
|---|---|
| public boolean stopSendingReceived() Implements jdk. Doc from jdk. Returns true if STOP_SENDING was received.
| |