Package com.qfs.util

Interface IInterruptionChecker

    • Method Detail

      • 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