Interface WorkQueue.CanceledWhileRunning

  • All Superinterfaces:
    Runnable, WorkQueue.CancelableRunnable
    Enclosing class:
    WorkQueue

    public static interface WorkQueue.CanceledWhileRunning
    extends WorkQueue.CancelableRunnable
    Base interface handles the case when task was canceled before actual execution and in case it was started cancel method is not called yet the task itself will be destroyed anyway (it will result in resource opening errors). This interface gives a chance to implementing classes for handling such scenario and act accordingly.
    • Method Detail

      • setCanceledWhileRunning

        void setCanceledWhileRunning()
        Notifies the runnable it was canceled during execution. *