Package org.jppf.node.protocol
Interface CancellationHandler
- All Known Implementing Classes:
JPPFAnnotatedTask
public interface CancellationHandler
This interface should be implemented by tasks that wish a callback invoked as soon
as they are cancelled. This differs from the
Task.onCancel()
callback in that onCancel() is called after the task has ended, whether the cancellation succeeded or not.- Since:
- 5.0
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked immediately when a task is cancelled.
-
Method Details
-
doCancelAction
Invoked immediately when a task is cancelled.- Throws:
Exception- if any error occurs while this callback is executing.
-