| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final OrderedFlow. | |
| private final String | |
| private final Logger | |
| private final long | |
| private volatile boolean | |
| private volatile long | |
| private volatile long | |
| private static final int | |
| private volatile long | |
| private volatile long | |
| private static final long | |
| private final ConcurrentLinkedQueue | |
| private volatile long | |
| private volatile QuicReceiverStreamImpl. | |
| private volatile long | |
| private volatile QuicReceiverStream. | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void | checkUpdateState(StreamFrame
received stream frame streamFrame)Checks for error conditions: - max stream data errors - max data errors - final size errors If everything checks OK, updates counters and returns, otherwise throws. |
| private void | checkUpdateState(ResetStreamFrame
received reset stream frame resetStreamFrame)Checks for error conditions: - max stream data errors - max data errors - final size errors If everything checks OK, updates counters and returns, otherwise throws. |
| public QuicStreamReader | connectReader(SequentialScheduler scheduler)
Implements jdk. Connects an unstarted reader to the receiver end of this stream. |
| public long | dataReceived()
Implements jdk. Returns the amount of data that has been received so far. |
| pack-priv String | |
| private void | |
| public void | disconnectReader(QuicStreamReader reader)
Implements jdk. Disconnect the reader, so that a new reader can be connected. |
| private void | increaseProcessedData(long newProcessed)
Notifies the connection about received data that is no longer buffered. |
| private void | increaseProcessedDataBy(int diff)
Notifies the connection about received data that is no longer buffered. |
| 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 | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| public long | maxStreamData()
Implements jdk. Returns the maximum amount of data that can be received on this stream. |
| private void | |
| private void | |
| private void | |
| pack-priv void | |
| public void | processIncomingFrame(final StreamFrame
the frame received streamFrame)Receives a QuicFrame from the remote peer. |
| pack-priv void | processIncomingResetFrame(final ResetStreamFrame
the frame received resetStreamFrame)Receives a QuicFrame from the remote peer. |
| public long | rcvErrorCode()
Implements jdk. Returns the error code for this stream, or |
| public QuicReceiverStream. | receivingState()
Implements jdk. Returns the receiving state of the stream. |
| public void | requestStopSending(final long errorCode)
Implements jdk. Cancels the reading side of this stream by sending a STOP_SENDING frame. |
| private void | |
| public QuicStream. | state()
Implements jdk. Returns the combined stream state. |
| private static QuicTransportException | streamControlOverflow(StreamFrame
the stream frame that caused the excess streamFrame, long the value of MAX_STREAM_DATA which was exceeded maxData)Sends a |
| private boolean | switchReceivingState(QuicReceiverStream.
the new state. newStateCalled when a state change is needed |
| pack-priv void | terminate(final TerminationCause
the termination cause terminationCause)Called when the connection is closed |
| private void | updateMaxReceivedData(long
the new max offset - typically obtained
by adding the length of a frame to its
offset newMax, long type of frame received frameType)Update the |
| public void | |
| private static long |
| dataFlow | back to summary |
|---|---|
| private final OrderedFlow. | |
| dbgTag | back to summary |
|---|---|
| private final String dbgTag | |
| debug | back to summary |
|---|---|
| private final Logger debug | |
| desiredBufferSize | back to summary |
|---|---|
| private final long desiredBufferSize | |
| eof | back to summary |
|---|---|
| private volatile boolean eof | |
| errorCode | back to summary |
|---|---|
| private volatile long errorCode | |
| knownSize | back to summary |
|---|---|
| private volatile long knownSize | |
| MAX_SMALL_FRAGMENTS | back to summary |
|---|---|
| private static final int MAX_SMALL_FRAGMENTS | |
| maxReceivedData | back to summary |
|---|---|
| private volatile long maxReceivedData | |
| maxStreamData | back to summary |
|---|---|
| private volatile long maxStreamData | |
| MIN_BUFFER_SIZE | back to summary |
|---|---|
| private static final long MIN_BUFFER_SIZE | |
| orderedQueue | back to summary |
|---|---|
| private final ConcurrentLinkedQueue<ByteBuffer> orderedQueue | |
| processed | back to summary |
|---|---|
| private volatile long processed | |
| reader | back to summary |
|---|---|
| private volatile QuicReceiverStreamImpl. | |
| received | back to summary |
|---|---|
| private volatile long received | |
| receivingState | back to summary |
|---|---|
| private volatile QuicReceiverStream. | |
| requestedStopSending | back to summary |
|---|---|
| private volatile boolean requestedStopSending | |
| QuicReceiverStreamImpl | back to summary |
|---|---|
| pack-priv QuicReceiverStreamImpl(QuicConnectionImpl connection, long streamId) | |
| checkOpened | back to summary |
|---|---|
| pack-priv void checkOpened() throws IOException | |
| checkUpdateState | back to summary |
|---|---|
| private void checkUpdateState(StreamFrame streamFrame) throws QuicTransportException Checks for error conditions: - max stream data errors - max data errors - final size errors If everything checks OK, updates counters and returns, otherwise throws. Implementation Note This method may update counters before throwing. This is OK because we do not expect to use them again in this case.
| |
| checkUpdateState | back to summary |
|---|---|
| private void checkUpdateState(ResetStreamFrame resetStreamFrame) throws QuicTransportException Checks for error conditions: - max stream data errors - max data errors - final size errors If everything checks OK, updates counters and returns, otherwise throws. Implementation Note This method may update counters before throwing. This is OK because we do not expect to use them again in this case.
| |
| 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.
| |
| dataReceived | back to summary |
|---|---|
| public long dataReceived() Implements jdk. Doc from jdk. Returns the amount of data that has been received so far.
| |
| dbgTag | back to summary |
|---|---|
| pack-priv String dbgTag() | |
| demand | back to summary |
|---|---|
| private void demand(final long additional) | |
| 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.
| |
| increaseProcessedData | back to summary |
|---|---|
| private void increaseProcessedData(long newProcessed) Notifies the connection about received data that is no longer buffered. | |
| increaseProcessedDataBy | back to summary |
|---|---|
| private void increaseProcessedDataBy(int diff) Notifies the connection about received data that is no longer buffered. | |
| 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.
| |
| markDataRead | back to summary |
|---|---|
| private boolean markDataRead() | |
| markDataRecvd | back to summary |
|---|---|
| private boolean markDataRecvd() | |
| markResetRead | back to summary |
|---|---|
| private boolean markResetRead() | |
| markResetRecvd | back to summary |
|---|---|
| private boolean markResetRecvd() | |
| markSizeKnown | back to summary |
|---|---|
| private boolean markSizeKnown() | |
| 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.
| |
| notifyTerminalState | back to summary |
|---|---|
| private void notifyTerminalState(QuicReceiverStream. | |
| offer | back to summary |
|---|---|
| private void offer(StreamFrame frame) | |
| offerEof | back to summary |
|---|---|
| private void offerEof() | |
| processIncomingFrame | back to summary |
|---|---|
| pack-priv void processIncomingFrame(final StreamDataBlockedFrame streamDataBlocked) | |
| processIncomingFrame | back to summary |
|---|---|
| public void processIncomingFrame(final StreamFrame streamFrame) throws QuicTransportException Receives a QuicFrame from the remote peer.
| |
| processIncomingResetFrame | back to summary |
|---|---|
| pack-priv void processIncomingResetFrame(final ResetStreamFrame resetStreamFrame) throws QuicTransportException Receives a QuicFrame from the remote peer.
| |
| rcvErrorCode | back to summary |
|---|---|
| public long rcvErrorCode() Implements jdk. Doc from jdk. Returns the error code for this stream, or
| |
| 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(final long errorCode) Implements jdk. Doc from jdk. Cancels the reading side of this stream by sending a STOP_SENDING frame.
| |
| setErrorCode | back to summary |
|---|---|
| private void setErrorCode(long code) | |
| state | back to summary |
|---|---|
| public QuicStream. Implements jdk. Doc from jdk. Returns the combined stream state.
| |
| streamControlOverflow | back to summary |
|---|---|
| private static QuicTransportException streamControlOverflow(StreamFrame streamFrame, long maxData) throws QuicTransportException Sends a
| |
| switchReceivingState | back to summary |
|---|---|
| private boolean switchReceivingState(QuicReceiverStream. Called when a state change is needed
| |
| terminate | back to summary |
|---|---|
| pack-priv void terminate(final TerminationCause terminationCause) Called when the connection is closed
| |
| updateMaxReceivedData | back to summary |
|---|---|
| private void updateMaxReceivedData(long newMax, long frameType) throws QuicTransportException Update the
| |
| updateMaxStreamData | back to summary |
|---|---|
| public void updateMaxStreamData(long newMaxStreamData) Update the value of MAX_STREAM_DATA for this stream | |
| validateStreamId | back to summary |
|---|---|
| private static long validateStreamId(QuicConnectionImpl connection, long streamId) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final VarHandle | |
| pack-priv static final VarHandle | |
| pack-priv static final VarHandle | |
| pack-priv static final VarHandle | |
| pack-priv static final VarHandle | |
| pack-priv static final VarHandle |
| Access | Constructor and Description |
|---|---|
| private |
| ERROR_CODE | back to summary |
|---|---|
| pack-priv static final VarHandle ERROR_CODE | |
| MAX_RECEIVED_DATA | back to summary |
|---|---|
| pack-priv static final VarHandle MAX_RECEIVED_DATA | |
| MAX_STREAM_DATA | back to summary |
|---|---|
| pack-priv static final VarHandle MAX_STREAM_DATA | |
| READER | back to summary |
|---|---|
| pack-priv static final VarHandle READER | |
| RECEIVING_STATE | back to summary |
|---|---|
| pack-priv static final VarHandle RECEIVING_STATE | |
| STOP_SENDING | back to summary |
|---|---|
| pack-priv static final VarHandle STOP_SENDING | |
| Handles | back to summary |
|---|---|
| private Handles() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public boolean | connected()
Implements abstract jdk. Returns true if this reader is connected to its stream. |
| public ByteBuffer | peek()
Implements abstract jdk. Returns the ByteBuffer at the head of the queue, or null if no data is available. |
| public ByteBuffer | poll()
Implements abstract jdk. Returns the ByteBuffer at the head of the queue, or null if no data is available. |
| public QuicReceiverStream. | receivingState()
Implements abstract jdk. Returns the receiving state of the stream. |
| public void | start()
Implements abstract jdk. Starts the reader. |
| public boolean | started()
Implements abstract jdk. Returns true if this reader has been started. |
| public QuicReceiverStream | stream()
Implements abstract jdk. Returns the stream this reader is connected to, or |
| private long | |
| pack-priv void | |
| private boolean |
| PENDING | back to summary |
|---|---|
| pack-priv static final int PENDING | |
| STARTED | back to summary |
|---|---|
| pack-priv static final int STARTED | |
| state | back to summary |
|---|---|
| private int state | |
| QuicStreamReaderImpl | back to summary |
|---|---|
| pack-priv QuicStreamReaderImpl(SequentialScheduler scheduler) | |
| checkConnected | back to summary |
|---|---|
| private void checkConnected() | |
| checkReset | back to summary |
|---|---|
| private void checkReset() throws IOException Checks whether the stream was reset and throws an exception if yes.
| |
| connected | back to summary |
|---|---|
| public boolean connected() Implements abstract jdk. Doc from jdk. Returns true if this reader is connected to its stream.
| |
| peek | back to summary |
|---|---|
| public ByteBuffer peek() throws IOException Implements abstract jdk. Doc from jdk. Returns the ByteBuffer at the head of the queue, or null if no data is available.
| |
| poll | back to summary |
|---|---|
| public ByteBuffer poll() throws IOException Implements abstract jdk. Doc from jdk. 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
| |
| receivingState | back to summary |
|---|---|
| public QuicReceiverStream. Implements abstract jdk. Doc from jdk. Returns the receiving state of the stream.
| |
| start | back to summary |
|---|---|
| public void start() Implements abstract jdk. Doc from jdk. Starts the reader. The scheduler will not be invoked until the reader is started.
| |
| started | back to summary |
|---|---|
| public boolean started() Implements abstract jdk. Doc from jdk. Returns true if this reader has been started.
| |
| stream | back to summary |
|---|---|
| public QuicReceiverStream stream() Implements abstract jdk. Doc from jdk. Returns the stream this reader is connected to, or
| |
| unfulfilled | back to summary |
|---|---|
| private long unfulfilled() | |
| wakeup | back to summary |
|---|---|
| pack-priv void wakeup() | |
| wakeupOnStart | back to summary |
|---|---|
| private boolean wakeupOnStart(int state) | |