Class StaleCheckCommand
java.lang.Object
org.apache.hc.core5.http.nio.command.StaleCheckCommand
- All Implemented Interfaces:
Cancellable,Command
Stale check command. The
callback will be invoked after the client's event loop has finished processing
all pending reads on the connection. If the connection is still active at that point, the callback will be completed
with true. In any other event, the callback will be cancelled, failed, or completed with false.- Since:
- 5.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hc.core5.reactor.Command
Command.Priority -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StaleCheckCommand
-
-
Method Details
-
getCallback
-
cancel
public boolean cancel()Description copied from interface:CancellableCancels the ongoing operation or process.- Specified by:
cancelin interfaceCancellable- Returns:
trueif the operation or process has been cancelled as a result of this method call orfalseif it has already been cancelled or not started.
-