Class Http2AsyncUpgradeHandler.AsyncPingManager

  • Enclosing class:
    Http2AsyncUpgradeHandler

    protected class Http2AsyncUpgradeHandler.AsyncPingManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AsyncPingManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void receivePing​(byte[] payload, boolean ack)  
      void sendPing​(boolean force)
      Check to see if a ping was sent recently and, if not, send one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsyncPingManager

        protected AsyncPingManager()
    • Method Detail

      • sendPing

        public void sendPing​(boolean force)
                      throws java.io.IOException
        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:
        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.IOException
        Throws:
        java.io.IOException