Package com.jogamp.common.util
Interface InterruptSource
- All Known Implementing Classes:
InterruptSource.Thread
public interface InterruptSource
Interface exposing
Thread.interrupt() source,
intended for Thread specializations.- Since:
- 2.3.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidClears source and count ofThread.interrupt()calls, if any.intgetInterruptCounter(boolean clear) Returns the count ofThread.interrupt()calls.getInterruptSource(boolean clear) Returns the source of the last#interrupt()call.
-
Method Details
-
getInterruptSource
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.
-