Top Description Fields Constructors Methods
org.apache.hc.core5.http2.nio.command

public final Class PingCommand

extends Object
implements Command
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.reactor.Command, org.apache.hc.core5.concurrent.Cancellable
Annotations
@Internal
Imports
org.apache.hc.core5.annotation.Internal, org.apache.hc.core5.http2.nio.AsyncPingHandler, org.apache.hc.core5.reactor.Command, org.apache.hc.core5.util.Args

HTTP/2 ping command.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final AsyncPingHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
cancel()

Implements org.apache.hc.core5.concurrent.Cancellable.cancel.

Cancels the ongoing operation or process.
public AsyncPingHandler
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
private final AsyncPingHandler handler

Constructor Detail

PingCommandback to summary
public PingCommand(final AsyncPingHandler handler)

Method Detail

cancelback to summary
public boolean cancel()

Implements org.apache.hc.core5.concurrent.Cancellable.cancel.

Doc from org.apache.hc.core5.concurrent.Cancellable.cancel.

Cancels the ongoing operation or process.

Returns:boolean

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.

Annotations
@Override
getHandlerback to summary
public AsyncPingHandler getHandler()