Class CancellableExecution

java.lang.Object
org.apache.hc.core5.http2.impl.nio.bootstrap.CancellableExecution
All Implemented Interfaces:
Cancellable, CancellableDependency

final class CancellableExecution extends Object implements CancellableDependency
  • Field Details

  • Constructor Details

    • CancellableExecution

      CancellableExecution()
  • Method Details

    • setDependency

      public void setDependency(Cancellable cancellable)
      Description copied from interface: CancellableDependency
      Sets Cancellable dependency on another ongoing process or operation represented by Cancellable.
      Specified by:
      setDependency in interface CancellableDependency
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: CancellableDependency
      Determines whether the process or operation has been cancelled.
      Specified by:
      isCancelled in interface CancellableDependency
      Returns:
      cancelled flag.
    • 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.