public class Interruptable extends Object implements Runnable
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
Interruptable.CallBack |
| Constructor and Description |
|---|
Interruptable(Runnable run,
Collection<Interruptable> col) |
Interruptable(Runnable run,
Collection<Interruptable> col,
Interruptable.CallBack s,
Interruptable.CallBack r) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
Throwable |
getRunException() |
Date |
getStartTime() |
boolean |
interrupt() |
boolean |
isAlive() |
void |
run() |
public Interruptable(Runnable run, Collection<Interruptable> col)
public Interruptable(Runnable run, Collection<Interruptable> col, Interruptable.CallBack s, Interruptable.CallBack r)
run - The runnable wrapped by this Interrupted, which is to be executed in run().col - A modifiable collection or null If not null, this interruptable is
added to it just before running, and removed from it just after running.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}