Class Http2AsyncUpgradeHandler.AsyncPingManager
java.lang.Object
org.apache.coyote.http2.Http2AsyncUpgradeHandler.AsyncPingManager
- Enclosing class:
Http2AsyncUpgradeHandler
Asynchronous ping manager for HTTP/2 connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreceivePing(byte[] payload, boolean ack) Handle a received PING frame.voidsendPing(boolean force) Check to see if a ping was sent recently and, if not, send one.
-
Constructor Details
-
AsyncPingManager
public AsyncPingManager()Constructs a new 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
Handle a received PING frame.- Parameters:
payload- the PING payloadack- whether this is a PING ACK- Throws:
IOException- if an I/O error occurs
-