|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--moka.lang.Object | +--moka.event.Interrupt
The Interrupt interfaces for executing code while a thread is running.
Field Summary | |
static boolean |
busy
Setting this flag to true will stop the interrupts execution. |
Constructor Summary | |
Interrupt()
Creates a new Interrupt. |
Method Summary | |
abstract boolean |
check()
Used by a thread to verify if this interrupt should be executed. |
void |
finalize()
Frees the ressources used by this Interrupt. |
static void |
register(moka.event.Interrupt item)
Registers the specified interrupt. |
abstract void |
run()
Handles the code to execute when this object interrupts. |
static void |
unregister(moka.event.Interrupt item)
Unregisters the specified interrupt. |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static boolean busy
Constructor Detail |
public Interrupt()
Method Detail |
public static void register(moka.event.Interrupt item)
item
- the interrupt to be registered.public static void unregister(moka.event.Interrupt item)
item
- the interrupt to be unregistered.public void finalize()
finalize
in class Object
public abstract boolean check()
public abstract void run()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |