Interface Cancellation

  • All Known Implementing Classes:
    DefaultCancellation

    public interface Cancellation
    Interface for cancelling long running operations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getCancel()
      When set to true attempts to cancel a long running operation.
      void setCancel​(boolean value)
      When set to true attempts to cancel a long running operation.
    • Method Detail

      • getCancel

        boolean getCancel()
        When set to true attempts to cancel a long running operation. The value must be set by a thread other than the thread running the operation to be cancelled.
      • setCancel

        void setCancel​(boolean value)
        When set to true attempts to cancel a long running operation. The value must be set by a thread other than the thread running the operation to be cancelled.