Interface WorkQueue.CancelableRunnable

All Superinterfaces:
Runnable
All Known Subinterfaces:
WorkQueue.CanceledWhileRunning
Enclosing class:
WorkQueue

public static interface WorkQueue.CancelableRunnable extends Runnable
Runnable needing to know it was canceled. Note that cancel is called only in case the task is not in progress already.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies the runnable it was canceled.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • cancel

      void cancel()
      Notifies the runnable it was canceled.