Package org.jppf.node.protocol
Interface Interruptibility
- All Known Implementing Classes:
AbstractTask,AbstractTaskNode,CommandLineTask,CrossoverTask,FitnessTask,JPPFAnnotatedTask,JPPFExceptionResult,JPPFExceptionResultEx,JPPFTask,ScriptedTask
public interface Interruptibility
This interface should be implemented by JPPF task classes that wish to control
whether they can be interrupted upon cancellation or timeout.
- Since:
- 4.2.5
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the thread executing the task can be interrupted.
-
Method Details
-
isInterruptible
boolean isInterruptible()Determine whether the thread executing the task can be interrupted.- Returns:
trueif the task can be interrupted,falseotherwise.
-