Interface Cancellable


public interface Cancellable
A handle for a specific cancellable running operation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Cancellable
    An empty implementation which does nothing when a cancel is requested.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Attempt to cancel this operation.
  • Field Details

    • NULL

      static final Cancellable NULL
      An empty implementation which does nothing when a cancel is requested.
  • Method Details

    • cancel

      boolean cancel()
      Attempt to cancel this operation.
      Returns:
      false if the task could not be cancelled; true otherwise