Interface Cancellable


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

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

      • NULL

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

      • cancel

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