org.apache.hc.core5.concurrent

## Interface CancellableDependency

- All Superinterfaces:
    Cancellable
  All Known Implementing Classes:
    ComplexCancellable, ComplexFuture

      public interface CancellableDependency
      extends Cancellable

  This interface represents `Cancellable` object dependent on another ongoing process or operation.
  Since:
    5.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isCancelled()` Determines whether the process or operation has been cancelled.
    `void` | `setDependency(Cancellable cancellable)` Sets `Cancellable` dependency on another ongoing process or operation represented by `Cancellable`.

    - ### Methods inherited from interface org.apache.hc.core5.concurrent.Cancellable

      `cancel`

- - ### Method Detail

    - #### setDependency

          void setDependency(Cancellable cancellable)

      Sets `Cancellable` dependency on another ongoing process or operation represented by `Cancellable`.
      Parameters:
        `cancellable` - another ongoing process or operation.

    - #### isCancelled

          boolean isCancelled()

      Determines whether the process or operation has been cancelled.
      Returns:
        cancelled flag.

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.