Interface Interruptibility

All Known Subinterfaces:
Task<T>, TaskNode<T>
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 Type
    Method
    Description
    boolean
    Determine 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:
      true if the task can be interrupted, false otherwise.