org.apache.hc.core5.concurrent

## Interface Cancellable

- All Known Subinterfaces:
    CancellableDependency, Command
  All Known Implementing Classes:
    BasicFuture, CompletedFuture, ComplexCancellable, ComplexFuture, ExecutableCommand, PingCommand, RequestExecutionCommand, ShutdownCommand

      public interface Cancellable

  A `Cancellable` represents a process or an operation that can be canceled.
  Since:
    4.2

- - ### Method Summary

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

- - ### Method Detail

    - #### cancel

          boolean cancel()

      Cancels the ongoing operation or process.
      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–2021 The Apache Software Foundation. All rights reserved.