Interface H2ProtocolConfig.KeepAlivePolicy

  • Enclosing interface:
    H2ProtocolConfig

    public static interface H2ProtocolConfig.KeepAlivePolicy
    A policy for sending PING frames to the peer.
    • Method Detail

      • idleDuration

        java.time.Duration idleDuration()
        Duration of time the connection has to be idle before a ping is sent.
        Returns:
        Duration of time the connection has to be idle before a ping is sent.
      • ackTimeout

        java.time.Duration ackTimeout()
        Duration to wait for acknowledgment from the peer after a ping is sent. If no acknowledgment is received, a closure of the connection will be initiated.
        Returns:
        Duration to wait for acknowledgment from the peer after a ping is sent.
      • withoutActiveStreams

        boolean withoutActiveStreams()
        Whether this policy allows to send pings even if there are no streams active on the connection.
        Returns:
        true if this policy allows to send pings even if there are no streams active on the connection.