| Modifier and Type | Field and Description |
|---|---|
| private final QuicConnectionImpl | |
| private final Logger | |
| private final CompletableFuture | |
| private final String | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | appLayerMaxIdle(final Duration maxIdle, final Supplier<Boolean> trafficGenerationCheck)
Implements jdk. Instructs the connection terminator that the application layer allows the
connection to stay idle for the given |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| pack-priv CompletableFuture | |
| pack-priv TerminationCause | |
| private void | immediateClose(final ConnectionCloseFrame closeFrame, final QuicTLSEngine.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv ByteBuffer | Returns: the datagram containing the QUIC packet with a CONNECTION_CLOSE frameReturns a |
| private boolean | |
| public void | markActive()
Implements jdk. Instructs the connection terminator to consider the connection as active at the present point in time. |
| private boolean | |
| private boolean | |
| private boolean | |
| private void | pushConnectionCloseFrame(final QuicTLSEngine.
the KeySpace to use for sending the packet keySpace,the CONNECTION_CLOSE frame frame)CONNECTION_CLOSE frame is not congestion controlled (RFC-9002 section 3 and RFC-9000 section 12.4, table 3), nor is it queued or scheduled for sending. |
| private void | silentTerminate(final TerminationCause.
Called only when the connection is expected to be discarded without being required to inform the peer. |
| public void | terminate(final TerminationCause cause)
Implements jdk. Terminates the connection, if not already terminated, with the given cause. |
| public boolean | tryReserveForUse()
Implements jdk. Returns |
| private void |
| connection | back to summary |
|---|---|
| private final QuicConnectionImpl connection | |
| debug | back to summary |
|---|---|
| private final Logger debug | |
| futureTC | back to summary |
|---|---|
| private final CompletableFuture<TerminationCause> futureTC | |
| logTag | back to summary |
|---|---|
| private final String logTag | |
| terminationCause | back to summary |
|---|---|
| private final AtomicReference<TerminationCause> terminationCause | |
| ConnectionTerminatorImpl | back to summary |
|---|---|
| pack-priv ConnectionTerminatorImpl(final QuicConnectionImpl connection) | |
| appLayerMaxIdle | back to summary |
|---|---|
| public void appLayerMaxIdle(final Duration maxIdle, final Supplier<Boolean> trafficGenerationCheck) Implements jdk. Doc from jdk. Instructs the connection terminator that the application layer allows the
connection to stay idle for the given
When the
If the application layer wishes to never idle terminate the connection, then
a
| |
| discardConnectionState | back to summary |
|---|---|
| private void discardConnectionState() | |
| doTerminate | back to summary |
|---|---|
| private void doTerminate(final TerminationCause cause) | |
| drain | back to summary |
|---|---|
| private void drain(final ConnectionCloseFrame incomingFrame) | |
| failHandshakeCFs | back to summary |
|---|---|
| private void failHandshakeCFs() | |
| failHandshakeCFs | back to summary |
|---|---|
| private void failHandshakeCFs(final Throwable cause) | |
| futureTerminationCause | back to summary |
|---|---|
| pack-priv CompletableFuture | |
| getTerminationCause | back to summary |
|---|---|
| pack-priv TerminationCause getTerminationCause() | |
| immediateClose | back to summary |
|---|---|
| private void immediateClose(final ConnectionCloseFrame closeFrame, final QuicTLSEngine. | |
| incomingConnectionCloseFrame | back to summary |
|---|---|
| pack-priv void incomingConnectionCloseFrame(final ConnectionCloseFrame frame) | |
| incomingStatelessReset | back to summary |
|---|---|
| pack-priv void incomingStatelessReset() | |
| makeConnectionCloseDatagram | back to summary |
|---|---|
| pack-priv ByteBuffer makeConnectionCloseDatagram() throws QuicKeyUnavailableException, QuicTransportException Returns a
This method should only be invoked when the
| |
| mark | back to summary |
|---|---|
| private boolean mark(final int mask, final TerminationCause cause) | |
| markActive | back to summary |
|---|---|
| public void markActive() Implements jdk. Doc from jdk. Instructs the connection terminator to consider the connection as active at the present point in time. The connection terminator will then restart its idle timeout timer from this point in time. This method must be called when an incoming packet is processed successfully or when an ack-eliciting packet is sent by the local endpoint on the connection.
| |
| markClosed | back to summary |
|---|---|
| private boolean markClosed(final TerminationCause terminationCause) | |
| markClosing | back to summary |
|---|---|
| private boolean markClosing(final TerminationCause terminationCause) | |
| markDraining | back to summary |
|---|---|
| private boolean markDraining(final TerminationCause terminationCause) | |
| pushConnectionCloseFrame | back to summary |
|---|---|
| private void pushConnectionCloseFrame(final QuicTLSEngine. CONNECTION_CLOSE frame is not congestion controlled (RFC-9002 section 3
and RFC-9000 section 12.4, table 3), nor is it queued or scheduled for sending.
This method constructs a
| |
| silentTerminate | back to summary |
|---|---|
| private void silentTerminate(final TerminationCause. Called only when the connection is expected to be discarded without being required to inform the peer. Discards all state, no CONNECTION_CLOSE is sent, nor does the connection enter closing or discarding state. | |
| terminate | back to summary |
|---|---|
| public void terminate(final TerminationCause cause) Implements jdk. Doc from jdk. Terminates the connection, if not already terminated, with the given cause.
A connection is terminated only once with a
| |
| tryReserveForUse | back to summary |
|---|---|
| public boolean tryReserveForUse() Implements jdk. Doc from jdk. Returns
This method is typically called when a connection that has been idle, is about to be used
for handling some request. This method allows for co-ordination between the connection usage
and the connection terminator to prevent the connection from being idle timed out when it is
about to be used for some request. The connection must only be used if this method
returns
| |
| unregisterConnFromEndpoint | back to summary |
|---|---|
| private void unregisterConnFromEndpoint() | |