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 TypeMethodDescriptionvoidChecks if the current thread has been interrupted.
-
Method Details
-
checkInterruption
Checks if the current thread has been interrupted. If this is the case, exit the current task by throwing aInterruptedTaskException.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
-