Package org.apache.coyote.http2
Class Http2AsyncUpgradeHandler.AsyncPingManager
- java.lang.Object
-
- org.apache.coyote.http2.Http2AsyncUpgradeHandler.AsyncPingManager
-
- Enclosing class:
- Http2AsyncUpgradeHandler
protected class Http2AsyncUpgradeHandler.AsyncPingManager extends java.lang.ObjectAsynchronous ping manager for HTTP/2 connections.
-
-
Constructor Summary
Constructors Constructor Description AsyncPingManager()Constructs a new AsyncPingManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreceivePing(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.
-
-
-
Method Detail
-
sendPing
public void sendPing(boolean force) throws java.io.IOExceptionCheck 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:
java.io.IOException- If an I/O issue prevents the ping from being sent
-
receivePing
public void receivePing(byte[] payload, boolean ack) throws java.io.IOExceptionHandle a received PING frame.- Parameters:
payload- the PING payloadack- whether this is a PING ACK- Throws:
java.io.IOException- if an I/O error occurs
-
-