public class TimeoutInterrupter extends java.lang.Object implements Interrupter
| Constructor and Description |
|---|
TimeoutInterrupter(long timeoutNanoSeconds)
Create a new instance of this class applying the given timeout.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInterruptRequested()
Determines if a task should be aborted.
|
public TimeoutInterrupter(long timeoutNanoSeconds)
timeoutNanoSeconds - Number of nano seconds into the future when this interrupter is triggered.public boolean isInterruptRequested()
InterrupterisInterruptRequested in interface Interrupter