Package com.qfs.util

Interface IInterruptionChecker

All Known Implementing Classes:
InterruptionChecker, PeriodicInterruptionChecker

public interface IInterruptionChecker
Definition of an object checking task interruption.
Author:
ActiveViam
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Checks if the current thread has been interrupted.
  • Method Details

    • checkInterruption

      void checkInterruption() throws InterruptedTaskException
      Checks if the current thread has been interrupted. If this is the case, exit the current task by throwing a InterruptedTaskException.

      Doing this check is not costless and should not for instance be called at each iteration of a tight loop.

      Throws:
      InterruptedTaskException - thrown if the current thread has been interrupted