Enum Class Timer

java.lang.Object
java.lang.Enum<Timer>
io.github.mahmoudimus.quic.connection.Timer
All Implemented Interfaces:
Serializable, Comparable<Timer>, Constable

public enum Timer extends Enum<Timer>
The timers of a connection, kept in a TimerTable.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The end of the closing or draining period (RFC 9000 section 10.2): the connection is gone.
    The idle timeout (RFC 9000 section 10.1): the connection is silently closed.
    When to send a PING to keep the connection alive.
    When old keys (0-RTT or the previous 1-RTT generation) are discarded.
    Time-threshold loss detection, or the probe timeout (RFC 9002 section 6.2).
    When an ACK is due because max_ack_delay expired (RFC 9000 section 13.2.1).
    When pacing allows the next packet.
    When a client sends its probe of a new path again, or gives up on it.
    When a server's validation of the peer's new path is abandoned, and the connection goes back to the previous path.
    When to retire old connection IDs and push new ones with NEW_CONNECTION_ID.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Timer
    Returns the enum constant of this class with the specified name.
    static Timer[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LOSS_DETECTION

      public static final Timer LOSS_DETECTION
      Time-threshold loss detection, or the probe timeout (RFC 9002 section 6.2).
    • IDLE

      public static final Timer IDLE
      The idle timeout (RFC 9000 section 10.1): the connection is silently closed.
    • CLOSE

      public static final Timer CLOSE
      The end of the closing or draining period (RFC 9000 section 10.2): the connection is gone.
    • KEY_DISCARD

      public static final Timer KEY_DISCARD
      When old keys (0-RTT or the previous 1-RTT generation) are discarded.
    • PATH_VALIDATION

      public static final Timer PATH_VALIDATION
      When a server's validation of the peer's new path is abandoned, and the connection goes back to the previous path.
    • PATH_PROBE

      public static final Timer PATH_PROBE
      When a client sends its probe of a new path again, or gives up on it.
    • KEEP_ALIVE

      public static final Timer KEEP_ALIVE
      When to send a PING to keep the connection alive.
    • PACING

      public static final Timer PACING
      When pacing allows the next packet.
    • PUSH_NEW_CID

      public static final Timer PUSH_NEW_CID
      When to retire old connection IDs and push new ones with NEW_CONNECTION_ID.
    • MAX_ACK_DELAY

      public static final Timer MAX_ACK_DELAY
      When an ACK is due because max_ack_delay expired (RFC 9000 section 13.2.1).
  • Method Details

    • values

      public static Timer[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Timer valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null