Package com.google.gerrit.server.git
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setCanceledWhileRunning()
Notifies the runnable it was canceled during execution.-
Methods inherited from interface com.google.gerrit.server.git.WorkQueue.CancelableRunnable
cancel
-
-