Package ai.libs.jaicore.concurrent
Class CancellationTimerTask
- java.lang.Object
-
- java.util.TimerTask
-
- ai.libs.jaicore.concurrent.TrackableTimerTask
-
- ai.libs.jaicore.concurrent.ANamedTimerTask
-
- ai.libs.jaicore.concurrent.CancellationTimerTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class CancellationTimerTask extends ANamedTimerTask
-
-
Constructor Summary
Constructors Constructor Description CancellationTimerTask(java.lang.String descriptor, org.api4.java.common.control.ICancelable thingToBeCanceled)
CancellationTimerTask(java.lang.String descriptor, org.api4.java.common.control.ICancelable cancelable, java.lang.Runnable hookToExecutePriorToInterruption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exec()
org.api4.java.common.control.ICancelable
getCancelable()
java.lang.Runnable
getHookToExecutePriorToInterruption()
-
Methods inherited from class ai.libs.jaicore.concurrent.ANamedTimerTask
getDescriptor, setDescriptor, toString
-
Methods inherited from class ai.libs.jaicore.concurrent.TrackableTimerTask
cancel, get, getLastExecution, hasBeenExecuted, isCanceled, isFinished, run
-
-
-
-
Constructor Detail
-
CancellationTimerTask
public CancellationTimerTask(java.lang.String descriptor, org.api4.java.common.control.ICancelable cancelable, java.lang.Runnable hookToExecutePriorToInterruption)
-
CancellationTimerTask
public CancellationTimerTask(java.lang.String descriptor, org.api4.java.common.control.ICancelable thingToBeCanceled)
-
-
Method Detail
-
getCancelable
public org.api4.java.common.control.ICancelable getCancelable()
-
getHookToExecutePriorToInterruption
public java.lang.Runnable getHookToExecutePriorToInterruption()
-
exec
public void exec()
- Specified by:
exec
in classTrackableTimerTask
-
-