public interface InterruptSource
Thread.interrupt() source,
intended for Thread specializations.| Modifier and Type | Interface and Description |
|---|---|
static class |
InterruptSource.Thread
|
static class |
InterruptSource.Util |
| Modifier and Type | Method and Description |
|---|---|
void |
clearInterruptSource()
Clears source and count of
Thread.interrupt() calls, if any. |
int |
getInterruptCounter(boolean clear)
Returns the count of
Thread.interrupt() calls. |
Throwable |
getInterruptSource(boolean clear)
Returns the source of the last
#interrupt() call. |
Throwable getInterruptSource(boolean clear)
#interrupt() call.clear - if true, issues clearInterruptSource()int getInterruptCounter(boolean clear)
Thread.interrupt() calls.clear - if true, issues clearInterruptSource()void clearInterruptSource()
Thread.interrupt() calls, if any.