| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private HTTP3Session. | |
| private GoAwayFrame | |
| private GoAwayFrame | |
| private final AtomicLong | |
| private final Session. | |
| private final AutoLock | |
| private static final Logger | |
| private final ProtocolSession | |
| private CompletableFuture | |
| private final AtomicInteger | |
| private long | |
| private final Map | |
| private final HTTP3Session. | |
| private Runnable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected HTTP3Stream | |
| public void | dump(Appendable out, String indent)
Overrides org. Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| private void | failStreams(Predicate<HTTP3Stream> predicate, long error, String reason, boolean close, Throwable failure)
|
| public long | |
| public Session. | |
| public SocketAddress | getLocalSocketAddress()
Overrides default org. Get the local socket address this session is bound to. |
| public int | |
| protected HTTP3Stream | |
| public ProtocolSession | |
| public SocketAddress | getRemoteSocketAddress()
Overrides default org. Get the remote socket address this session is connected to. |
| protected HTTP3Stream | |
| public long | |
| public Collection | |
| public CompletableFuture | goAway(boolean graceful)
Overrides default org. Initiates the shutdown of this session by sending a GOAWAY frame to the other peer. |
| private CompletableFuture | |
| public void | inwardClose(long
the close error error, String the close reason reason)Called when a an external event wants to initiate the close of this session locally, for example a close at the network level (due to e.g. stopping a component) or a timeout. |
| public boolean | |
| protected GoAwayFrame | |
| private HTTP3Stream | |
| protected abstract HTTP3Stream | |
| private void | |
| private void | |
| private void | |
| private boolean | |
| private Map | |
| private void | |
| public void | |
| public void | onData(long streamId, DataFrame frame)
Overrides default org.
|
| public void | onGoAway(GoAwayFrame frame)
Overrides default org.
|
| public void | onHeaders(long streamId, HeadersFrame frame, boolean wasBlocked)
Overrides default org.
|
| public boolean | |
| public void | |
| public Map | |
| public void | onSessionFailure(long error, String reason, Throwable failure)
Overrides default org.
|
| public void | onSettings(SettingsFrame frame)
Overrides default org.
|
| public void | onStreamFailure(long streamId, long error, Throwable failure)
Overrides default org.
|
| private void | outwardClose(long
the close error error, String the close reason reason)Propagates a close outwards, i.e. towards the network. |
| private void | outwardDisconnect(long
the close error error, String the close reason. reason)Calls |
| public void | |
| pack-priv void | |
| public void | |
| public CompletableFuture | |
| private void | terminate()
Terminates this session at the HTTP/3 level, and possibly notifies the shutdown callback. |
| private void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| private void | |
| private void | |
| public abstract void | |
| public abstract void |
| closeState | back to summary |
|---|---|
| private HTTP3Session. | |
| goAwayRecv | back to summary |
|---|---|
| private GoAwayFrame goAwayRecv | |
| goAwaySent | back to summary |
|---|---|
| private GoAwayFrame goAwaySent | |
| lastStreamId | back to summary |
|---|---|
| private final AtomicLong lastStreamId | |
| listener | back to summary |
|---|---|
| private final Session. | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| session | back to summary |
|---|---|
| private final ProtocolSession session | |
| shutdown | back to summary |
|---|---|
| private CompletableFuture<Void> shutdown | |
| streamCount | back to summary |
|---|---|
| private final AtomicInteger streamCount | |
| streamIdleTimeout | back to summary |
|---|---|
| private long streamIdleTimeout | |
| streams | back to summary |
|---|---|
| private final Map<Long, HTTP3Stream> streams | |
| streamTimeouts | back to summary |
|---|---|
| private final HTTP3Session. | |
| zeroStreamsAction | back to summary |
|---|---|
| private Runnable zeroStreamsAction | |
| HTTP3Session | back to summary |
|---|---|
| public HTTP3Session(ProtocolSession session, Session. | |
| createStream | back to summary |
|---|---|
| protected HTTP3Stream createStream(QuicStreamEndPoint endPoint, Consumer<Throwable> fail) | |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Overrides org. Implements org. Doc from org. Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
| |
| failStreams | back to summary |
|---|---|
| private void failStreams(Predicate<HTTP3Stream> predicate, long error, String reason, boolean close, Throwable failure) | |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getListener | back to summary |
|---|---|
| public Session. | |
| getLocalSocketAddress | back to summary |
|---|---|
| public SocketAddress getLocalSocketAddress() Overrides default org. Doc from org. Get the local socket address this session is bound to.
| |
| getMaxLocalStreams | back to summary |
|---|---|
| public int getMaxLocalStreams() | |
| getOrCreateStream | back to summary |
|---|---|
| protected HTTP3Stream getOrCreateStream(QuicStreamEndPoint endPoint) | |
| getProtocolSession | back to summary |
|---|---|
| public ProtocolSession getProtocolSession() | |
| getRemoteSocketAddress | back to summary |
|---|---|
| public SocketAddress getRemoteSocketAddress() Overrides default org. Doc from org. Get the remote socket address this session is connected to.
| |
| getStream | back to summary |
|---|---|
| protected HTTP3Stream getStream(long streamId) | |
| getStreamIdleTimeout | back to summary |
|---|---|
| public long getStreamIdleTimeout() | |
| getStreams | back to summary |
|---|---|
| public Collection Overrides default org.
| |
| goAway | back to summary |
|---|---|
| public CompletableFuture Overrides default org. Doc from org. Initiates the shutdown of this session by sending a GOAWAY frame to the other peer.
| |
| goAway | back to summary |
|---|---|
| private CompletableFuture | |
| inwardClose | back to summary |
|---|---|
| public void inwardClose(long error, String reason) Called when a an external event wants to initiate the close of this session locally, for example a close at the network level (due to e.g. stopping a component) or a timeout. The correspondent passive event, where it's the remote peer that initiates the close,
is delivered via
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| newGoAwayFrame | back to summary |
|---|---|
| protected GoAwayFrame newGoAwayFrame(boolean graceful) | |
| newHTTP3Stream | back to summary |
|---|---|
| private HTTP3Stream newHTTP3Stream(QuicStreamEndPoint endPoint, Consumer<Throwable> fail, boolean local) | |
| newHTTP3Stream | back to summary |
|---|---|
| protected abstract HTTP3Stream newHTTP3Stream(QuicStreamEndPoint endPoint, boolean local) | |
| notifyDisconnect | back to summary |
|---|---|
| private void notifyDisconnect(long error, String reason) | |
| notifyFailure | back to summary |
|---|---|
| private void notifyFailure(long error, String reason, Throwable failure) | |
| notifyGoAway | back to summary |
|---|---|
| private void notifyGoAway(GoAwayFrame frame) | |
| notifyIdleTimeout | back to summary |
|---|---|
| private boolean notifyIdleTimeout() | |
| notifyPreface | back to summary |
|---|---|
| private Map | |
| notifySettings | back to summary |
|---|---|
| private void notifySettings(SettingsFrame frame) | |
| onClose | back to summary |
|---|---|
| public void onClose(long error, String reason) Called when the local peer receives a close initiated by the remote peer. The correspondent active event, where it's the local peer that initiates the close,
it's delivered via
| |
| onData | back to summary |
|---|---|
| public void onData(long streamId, DataFrame frame) Overrides default org.
| |
| onGoAway | back to summary |
|---|---|
| public void onGoAway(GoAwayFrame frame) Overrides default org.
| |
| onHeaders | back to summary |
|---|---|
| public void onHeaders(long streamId, HeadersFrame frame, boolean wasBlocked) Overrides default org.
| |
| onIdleTimeout | back to summary |
|---|---|
| public boolean onIdleTimeout() | |
| onOpen | back to summary |
|---|---|
| public void onOpen() | |
| onPreface | back to summary |
|---|---|
| public Map | |
| onSessionFailure | back to summary |
|---|---|
| public void onSessionFailure(long error, String reason, Throwable failure) Overrides default org.
| |
| onSettings | back to summary |
|---|---|
| public void onSettings(SettingsFrame frame) Overrides default org.
| |
| onStreamFailure | back to summary |
|---|---|
| public void onStreamFailure(long streamId, long error, Throwable failure) Overrides default org.
| |
| outwardClose | back to summary |
|---|---|
| private void outwardClose(long error, String reason) Propagates a close outwards, i.e. towards the network. This method does not notify
| |
| outwardDisconnect | back to summary |
|---|---|
| private void outwardDisconnect(long error, String reason) Calls
| |
| removeStream | back to summary |
|---|---|
| public void removeStream(HTTP3Stream stream, Throwable failure) | |
| scheduleIdleTimeout | back to summary |
|---|---|
| pack-priv void scheduleIdleTimeout(HTTP3Stream stream) | |
| setStreamIdleTimeout | back to summary |
|---|---|
| public void setStreamIdleTimeout(long streamIdleTimeout) | |
| shutdown | back to summary |
|---|---|
| public CompletableFuture | |
| terminate | back to summary |
|---|---|
| private void terminate() Terminates this session at the HTTP/3 level, and possibly notifies the shutdown callback. Termination at the QUIC level may still be in progress. | |
| terminateAndDisconnect | back to summary |
|---|---|
| private void terminateAndDisconnect(long error, String reason) | |
| 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-
| |
| tryRunZeroStreamsAction | back to summary |
|---|---|
| private void tryRunZeroStreamsAction() | |
| updateLastStreamId | back to summary |
|---|---|
| private void updateLastStreamId(long id) | |
| writeControlFrame | back to summary |
|---|---|
| public abstract void writeControlFrame(Frame frame, Callback callback) | |
| writeMessageFrame | back to summary |
|---|---|
| public abstract void writeMessageFrame(long streamId, Frame frame, Callback callback) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final HTTP3Session. | |
| public static final HTTP3Session. | |
| public static final HTTP3Session. | |
| public static final HTTP3Session. | |
| public static final HTTP3Session. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HTTP3Session. | |
| public static HTTP3Session. |
| CLOSED | back to summary |
|---|---|
| public static final HTTP3Session. | |
| CLOSING | back to summary |
|---|---|
| public static final HTTP3Session. | |
| LOCALLY_CLOSED | back to summary |
|---|---|
| public static final HTTP3Session. | |
| NOT_CLOSED | back to summary |
|---|---|
| public static final HTTP3Session. | |
| REMOTELY_CLOSED | back to summary |
|---|---|
| public static final HTTP3Session. | |
| CloseState | back to summary |
|---|---|
| private CloseState() | |
| valueOf | back to summary |
|---|---|
| public static HTTP3Session. | |
| values | back to summary |
|---|---|
| public static HTTP3Session. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected Iterator | |
| protected boolean | onExpired(HTTP3Stream stream)
Implements abstract org. Invoked during the iteration when the given entity is expired. |
| StreamTimeouts | back to summary |
|---|---|
| private StreamTimeouts(Scheduler scheduler) | |
| iterator | back to summary |
|---|---|
| protected Iterator Implements abstract org.
| |
| onExpired | back to summary |
|---|---|
| protected boolean onExpired(HTTP3Stream stream) Implements abstract org. Doc from org. Invoked during the iteration when the given entity is expired. This method may be invoked multiple times, and even concurrently, for the same expirable entity and therefore the expiration of the entity, if any, should be an idempotent action. When
| |