Package com.jogamp.common.util
Interface InterruptSource
-
- All Known Implementing Classes:
InterruptSource.Thread
public interface InterruptSourceInterface exposingThread.interrupt()source, intended forThreadspecializations.- Since:
- 2.3.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInterruptSource.Threadstatic classInterruptSource.Util
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearInterruptSource()Clears source and count ofThread.interrupt()calls, if any.intgetInterruptCounter(boolean clear)Returns the count ofThread.interrupt()calls.ThrowablegetInterruptSource(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.
-
-