Package com.qfs.util
Interface IInterruptionChecker
-
- All Known Implementing Classes:
InterruptionChecker,PeriodicInterruptionChecker
public interface IInterruptionCheckerDefinition of an object checking task interruption.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckInterruption()Checks if the current thread has been interrupted.
-
-
-
Method Detail
-
checkInterruption
void checkInterruption() throws InterruptedTaskExceptionChecks 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
-
-