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 Summary

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

    Methods inherited from interface java.lang.Runnable

    run

    Methods inherited from interface com.google.gerrit.server.git.WorkQueue.CancelableRunnable

    cancel
  • Method Details

    • setCanceledWhileRunning

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