| Modifier and Type | Method and Description |
|---|---|
| public void | appLayerMaxIdle(Duration
the maximum idle duration of the connection,
at the application layer maxIdle, Supplier<Boolean> the callback that will be invoked by the connection
terminator to decide if the QUIC layer should generate
any traffic to prevent the connection from idle terminating trafficGenerationCheck)Instructs the connection terminator that the application layer allows the
connection to stay idle for the given |
| public void | markActive()
Instructs the connection terminator to consider the connection as active at the present point in time. |
| public void | terminate(TerminationCause
the termination cause cause)Terminates the connection, if not already terminated, with the given cause. |
| public boolean | Returns: true if the connection can be used, false otherwiseReturns |
| appLayerMaxIdle | back to summary |
|---|---|
| public void appLayerMaxIdle(Duration maxIdle, Supplier<Boolean> trafficGenerationCheck) 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
| |
| markActive | back to summary |
|---|---|
| public void markActive() 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. | |
| terminate | back to summary |
|---|---|
| public void terminate(TerminationCause cause) 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() 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
| |