Represents an established stateful connection with a remote peer for a specific QUIC connection ID.
Differently from QuicSession, which is created during the initial phases of connection establishment
and it is not specific to a protocol, ProtocolSession is created only when the connection is established,
and it is protocol specific, depending on the protocol negotiated during the connection establishment.
QuicSession
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ProtocolSession.
A factory for protocol specific instances of |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final ProtocolSession. | |
| private final QuicSession | |
| private final AdaptiveExecutionStrategy |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public int | |
| public QuicStreamEndPoint | |
| public abstract Runnable | |
| public QuicSession | |
| public QuicStreamEndPoint | |
| public void | |
| public void | |
| protected abstract void | |
| protected void | |
| protected boolean | |
| protected abstract boolean | |
| protected void | |
| public void | |
| public void | |
| protected boolean | |
| protected void | |
| protected void | |
| public CompletableFuture | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| producer | back to summary |
|---|---|
| private final ProtocolSession. | |
| session | back to summary |
|---|---|
| private final QuicSession session | |
| strategy | back to summary |
|---|---|
| private final AdaptiveExecutionStrategy strategy | |
| ProtocolSession | back to summary |
|---|---|
| public ProtocolSession(QuicSession session) | |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getMaxLocalStreams | back to summary |
|---|---|
| public int getMaxLocalStreams() | |
| getOrCreateStreamEndPoint | back to summary |
|---|---|
| public QuicStreamEndPoint getOrCreateStreamEndPoint(long streamId, Consumer<QuicStreamEndPoint> consumer) | |
| getProducerTask | back to summary |
|---|---|
| public abstract Runnable getProducerTask() | |
| getQuicSession | back to summary |
|---|---|
| public QuicSession getQuicSession() | |
| getStreamEndPoint | back to summary |
|---|---|
| public QuicStreamEndPoint getStreamEndPoint(long streamId) | |
| inwardClose | back to summary |
|---|---|
| public void inwardClose(long error, String reason) | |
| offer | back to summary |
|---|---|
| public void offer(Runnable task, boolean dispatch) | |
| onClose | back to summary |
|---|---|
| protected abstract void onClose(long error, String reason) | |
| onFailure | back to summary |
|---|---|
| protected void onFailure(long error, String reason, Throwable failure) | |
| onIdleTimeout | back to summary |
|---|---|
| protected boolean onIdleTimeout() | |
| onReadable | back to summary |
|---|---|
| protected abstract boolean onReadable(long readableStreamId) | |
| onWritable | back to summary |
|---|---|
| protected void onWritable(long writableStreamId) | |
| openProtocolEndPoint | back to summary |
|---|---|
| public void openProtocolEndPoint(QuicStreamEndPoint endPoint) | |
| outwardClose | back to summary |
|---|---|
| public void outwardClose(long error, String reason) | |
| processReadableStreams | back to summary |
|---|---|
| protected boolean processReadableStreams() | |
| processWritableStreams | back to summary |
|---|---|
| protected void processWritableStreams() | |
| produce | back to summary |
|---|---|
| protected void produce() | |
| shutdown | back to summary |
|---|---|
| public CompletableFuture | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
A factory for protocol specific instances of ProtocolSession.
| Modifier and Type | Method and Description |
|---|---|
| public ProtocolSession |
| newProtocolSession | back to summary |
|---|---|
| public ProtocolSession newProtocolSession(QuicSession quicSession, Map<String, Object> context) | |
| Modifier and Type | Field and Description |
|---|---|
| private final AutoLock | |
| private final Queue |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private Runnable | |
| public Runnable | produce()
Implements org. Produces a task to be executed. |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| tasks | back to summary |
|---|---|
| private final Queue<Runnable> tasks | |
| StreamsProducer | back to summary |
|---|---|
| private StreamsProducer() | |
| offer | back to summary |
|---|---|
| public void offer(Runnable task) | |
| poll | back to summary |
|---|---|
| private Runnable poll() | |
| produce | back to summary |
|---|---|
| public Runnable produce() Implements org. Doc from org. Produces a task to be executed.
| |