public class InterruptionChecker extends Object
Constructor and Description |
---|
InterruptionChecker() |
Modifier and Type | Method and Description |
---|---|
void |
check()
Check if this thread or any other thread sharing this InterruptChecker has been interrupted, and if so, throw
ScanInterruptedException.
|
void |
interrupt()
Interrupt all threads sharing this InterruptChecker, and throw ScanInterruptedException in this thread.
|
public void check()
public void interrupt()
Copyright © 2016. All rights reserved.