Package io.servicetalk.http.netty
Interface H2ProtocolConfig.KeepAlivePolicy
-
- Enclosing interface:
- H2ProtocolConfig
public static interface H2ProtocolConfig.KeepAlivePolicyA policy for sending PING frames to the peer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.DurationackTimeout()Durationto wait for acknowledgment from the peer after a ping is sent.java.time.DurationidleDuration()Durationof time the connection has to be idle before a ping is sent.booleanwithoutActiveStreams()Whether this policy allows to send pings even if there are no streams active on the connection.
-
-
-
Method Detail
-
idleDuration
java.time.Duration idleDuration()
Durationof time the connection has to be idle before a ping is sent.- Returns:
Durationof time the connection has to be idle before a ping is sent.
-
ackTimeout
java.time.Duration ackTimeout()
Durationto 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:
Durationto wait for acknowledgment from the peer after a ping is sent.
-
-