Class PingCommand
- java.lang.Object
-
- org.apache.hc.core5.http2.nio.command.PingCommand
-
- All Implemented Interfaces:
Cancellable
,Command
@Internal public final class PingCommand extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private AsyncPingHandler
handler
-
Constructor Summary
Constructors Constructor Description PingCommand(AsyncPingHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel()
Cancels the ongoing operation or process.AsyncPingHandler
getHandler()
-
-
-
Field Detail
-
handler
private final AsyncPingHandler handler
-
-
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 interfaceCancellable
- Returns:
true
if the operation or process has been cancelled as a result of this method call orfalse
if it has already been cancelled or not started.
-
-