| Package | Description |
|---|---|
| uniol.apt.util.interrupt |
| Modifier and Type | Class and Description |
|---|---|
class |
ChainedInterrupter
Interrupter that checks if any out of a given list of interrupters triggered.
|
class |
NoOpInterrupter
Interrupter that never interrupts modules.
|
class |
ThreadStatusInterrupter
Interrupter that checks
Thread.isInterrupted() to determine if a
module should be interrupted. |
class |
TimeoutInterrupter
Interrupter that takes a timestamp when created and uses that to implement a timeout.
|
| Modifier and Type | Method and Description |
|---|---|
static Interrupter |
InterrupterRegistry.getCurrentThreadInterrupter()
Returns the interrupter for the currently executing (calling) thread.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
InterrupterRegistry.setCurrentThreadInterrupter(Interrupter interrupter)
Set the interrupter for the currently executing (calling) thread.
|
| Constructor and Description |
|---|
ChainedInterrupter(Interrupter... interrupters)
Create a new instance of this class checking the given interrupters.
|