Package ai.libs.jaicore.interrupt
Class InterruptionTimerTask
- java.lang.Object
-
- java.util.TimerTask
-
- ai.libs.jaicore.concurrent.NamedTimerTask
-
- ai.libs.jaicore.interrupt.InterruptionTimerTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class InterruptionTimerTask extends NamedTimerTask
-
-
Constructor Summary
Constructors Constructor Description InterruptionTimerTask(java.lang.String descriptor)
InterruptionTimerTask(java.lang.String descriptor, java.lang.Runnable hookToExecutePriorToInterruption)
InterruptionTimerTask(java.lang.String descriptor, java.lang.Thread threadToBeInterrupted)
InterruptionTimerTask(java.lang.String descriptor, java.lang.Thread threadToBeInterrupted, java.lang.Object reason, java.lang.Runnable hookToExecutePriorToInterruption)
InterruptionTimerTask(java.lang.String descriptor, java.lang.Thread threadToBeInterrupted, java.lang.Runnable hookToExecutePriorToInterruption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Runnable
getHookToExecutePriorToInterruption()
java.lang.Thread
getThreadToBeInterrupted()
boolean
isFinished()
boolean
isTriggered()
void
run()
-
Methods inherited from class ai.libs.jaicore.concurrent.NamedTimerTask
getDescriptor, setDescriptor, toString
-
-
-
-
Constructor Detail
-
InterruptionTimerTask
public InterruptionTimerTask(java.lang.String descriptor, java.lang.Thread threadToBeInterrupted, java.lang.Object reason, java.lang.Runnable hookToExecutePriorToInterruption)
-
InterruptionTimerTask
public InterruptionTimerTask(java.lang.String descriptor, java.lang.Thread threadToBeInterrupted, java.lang.Runnable hookToExecutePriorToInterruption)
-
InterruptionTimerTask
public InterruptionTimerTask(java.lang.String descriptor, java.lang.Thread threadToBeInterrupted)
-
InterruptionTimerTask
public InterruptionTimerTask(java.lang.String descriptor, java.lang.Runnable hookToExecutePriorToInterruption)
-
InterruptionTimerTask
public InterruptionTimerTask(java.lang.String descriptor)
-
-
Method Detail
-
getThreadToBeInterrupted
public java.lang.Thread getThreadToBeInterrupted()
-
getHookToExecutePriorToInterruption
public java.lang.Runnable getHookToExecutePriorToInterruption()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Specified by:
run
in classjava.util.TimerTask
-
isTriggered
public boolean isTriggered()
-
isFinished
public boolean isFinished()
-
-