Class StaleCheckCommand

java.lang.Object
org.apache.hc.core5.http.nio.command.StaleCheckCommand
All Implemented Interfaces:
Cancellable, Command

@Internal public final class StaleCheckCommand extends Object implements 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
  • Constructor Details

  • Method Details

    • getCallback

      public Consumer<Boolean> getCallback()
    • 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.