org.apache.hc.core5.http2.nio.command

## Class PingCommand

- java.lang.Object
- - org.apache.hc.core5.http2.nio.command.PingCommand

- All Implemented Interfaces:
    Cancellable, Command

      @Internal
      public final class PingCommand
      extends Object
      implements Command

  HTTP/2 ping command.
  Since:
    5.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.hc.core5.reactor.Command

      `Command.Priority`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PingCommand(AsyncPingHandler handler)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `cancel()` Cancels the ongoing operation or process.
    `AsyncPingHandler` | `getHandler()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PingCommand

          public PingCommand(AsyncPingHandler handler)

  - ### Method Detail

    - #### getHandler

          public AsyncPingHandler getHandler()

    - #### cancel

          public boolean cancel()

      Description copied from interface: `Cancellable`
      Cancels the ongoing operation or process.
      Specified by:
        `cancel` in interface `Cancellable`
      Returns:
        `true` if the operation or process has been cancelled as a result of this method call or `false` if it has already been cancelled or not started.

Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.