Class ComplexCancellable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicMarkableReference<Cancellable> dependencyRef  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel()
      Cancels the ongoing operation or process.
      boolean isCancelled()
      Determines whether the process or operation has been cancelled.
      void setDependency​(Cancellable dependency)
      Sets Cancellable dependency on another ongoing process or operation represented by Cancellable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dependencyRef

        private final java.util.concurrent.atomic.AtomicMarkableReference<Cancellable> dependencyRef
    • Constructor Detail

      • ComplexCancellable

        public ComplexCancellable()
    • Method Detail

      • 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.