jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Classes | Public Member Functions | List of all members
org.jau.lang.InterruptSource Interface Reference

Interface exposing java.lang.Thread#interrupt() source, intended for java.lang.Thread specializations. More...

Inheritance diagram for org.jau.lang.InterruptSource:
Collaboration diagram for org.jau.lang.InterruptSource:

Classes

class  Thread
 java.lang.Thread specialization implementing InterruptSource to track java.lang.Thread#interrupt() calls. More...
 
class  Util
 

Public Member Functions

Throwable getInterruptSource (final boolean clear)
 Returns the source of the last interrupt() call. More...
 
int getInterruptCounter (final boolean clear)
 Returns the count of java.lang.Thread#interrupt() calls. More...
 
void clearInterruptSource ()
 Clears source and count of java.lang.Thread#interrupt() calls, if any. More...
 

Detailed Description

Interface exposing java.lang.Thread#interrupt() source, intended for java.lang.Thread specializations.

Since
0.3.0

Definition at line 34 of file InterruptSource.java.

Member Function Documentation

◆ clearInterruptSource()

void org.jau.lang.InterruptSource.clearInterruptSource ( )

Clears source and count of java.lang.Thread#interrupt() calls, if any.

Implemented in org.jau.lang.InterruptSource.Thread.

◆ getInterruptCounter()

int org.jau.lang.InterruptSource.getInterruptCounter ( final boolean  clear)

Returns the count of java.lang.Thread#interrupt() calls.

Parameters
clearif true, issues clearInterruptSource()

Implemented in org.jau.lang.InterruptSource.Thread.

◆ getInterruptSource()

Throwable org.jau.lang.InterruptSource.getInterruptSource ( final boolean  clear)

Returns the source of the last interrupt() call.

Parameters
clearif true, issues clearInterruptSource()

Implemented in org.jau.lang.InterruptSource.Thread.

Here is the caller graph for this function:

The documentation for this interface was generated from the following file: