Package ai.libs.jaicore.concurrent
Class CancellationTimerTask
- java.lang.Object
-
- java.util.TimerTask
-
- ai.libs.jaicore.concurrent.NamedTimerTask
-
- ai.libs.jaicore.concurrent.CancellationTimerTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class CancellationTimerTask extends NamedTimerTask
-
-
Constructor Summary
Constructors Constructor Description CancellationTimerTask(java.lang.String descriptor, Cancelable thingToBeCanceled)CancellationTimerTask(java.lang.String descriptor, Cancelable cancelable, java.lang.Runnable hookToExecutePriorToInterruption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancelablegetCancelable()java.lang.RunnablegetHookToExecutePriorToInterruption()voidrun()-
Methods inherited from class ai.libs.jaicore.concurrent.NamedTimerTask
getDescriptor, setDescriptor, toString
-
-
-
-
Constructor Detail
-
CancellationTimerTask
public CancellationTimerTask(java.lang.String descriptor, Cancelable cancelable, java.lang.Runnable hookToExecutePriorToInterruption)
-
CancellationTimerTask
public CancellationTimerTask(java.lang.String descriptor, Cancelable thingToBeCanceled)
-
-
Method Detail
-
getCancelable
public Cancelable getCancelable()
-
getHookToExecutePriorToInterruption
public java.lang.Runnable getHookToExecutePriorToInterruption()
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Specified by:
runin classjava.util.TimerTask
-
-