Package com.jogamp.common.util
Interface InterruptSource
-
- All Known Implementing Classes:
InterruptSource.Thread
public interface InterruptSource
Interface exposingThread.interrupt()
source, intended forThread
specializations.- Since:
- 2.3.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
InterruptSource.Thread
static class
InterruptSource.Util
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearInterruptSource()
Clears source and count ofThread.interrupt()
calls, if any.int
getInterruptCounter(boolean clear)
Returns the count ofThread.interrupt()
calls.Throwable
getInterruptSource(boolean clear)
Returns the source of the last#interrupt()
call.
-
-
-
Method Detail
-
getInterruptSource
Throwable getInterruptSource(boolean clear)
Returns the source of the last#interrupt()
call.- Parameters:
clear
- if true, issuesclearInterruptSource()
-
getInterruptCounter
int getInterruptCounter(boolean clear)
Returns the count ofThread.interrupt()
calls.- Parameters:
clear
- if true, issuesclearInterruptSource()
-
clearInterruptSource
void clearInterruptSource()
Clears source and count ofThread.interrupt()
calls, if any.
-
-