public static interface H2ProtocolConfig.KeepAlivePolicy
Modifier and Type | Method and Description |
---|---|
java.time.Duration |
ackTimeout()
Duration to wait for acknowledgment from the peer after a
ping is sent. |
java.time.Duration |
idleDuration()
Duration of time the connection has to be idle before a
ping is sent. |
boolean |
withoutActiveStreams()
Whether this policy allows to send pings
even if there are no streams active on the connection.
|
java.time.Duration idleDuration()
Duration
of time the connection has to be idle before a
ping is sent.Duration
of time the connection has to be idle before a
ping is sent.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.Duration
to wait for acknowledgment from the peer after a
ping is sent.