Package org.apache.coyote.http2
Class Http2AsyncUpgradeHandler.AsyncPingManager
java.lang.Object
org.apache.coyote.http2.Http2AsyncUpgradeHandler.AsyncPingManager
- Enclosing class:
Http2AsyncUpgradeHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
receivePing
(byte[] payload, boolean ack) void
sendPing
(boolean force) Check to see if a ping was sent recently and, if not, send one.
-
Constructor Details
-
AsyncPingManager
protected AsyncPingManager()
-
-
Method Details
-
sendPing
Check to see if a ping was sent recently and, if not, send one.- Parameters:
force
- Send a ping, even if one was sent recently- Throws:
IOException
- If an I/O issue prevents the ping from being sent
-
receivePing
- Throws:
IOException
-