Package io.servicetalk.http.netty
Interface H2ProtocolConfig.KeepAlivePolicy
-
- Enclosing interface:
- H2ProtocolConfig
public static interface H2ProtocolConfig.KeepAlivePolicy
A policy for sending PING frames to the peer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
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.
-
-