rcf.core.concurrent.schedule
Class AbstractInterruptibleTask
java.lang.Object
rcf.core.concurrent.events.AbstractEventSource
rcf.core.concurrent.schedule.AbstractTask
rcf.core.concurrent.schedule.AbstractInterruptibleTask
- All Implemented Interfaces:
- Runnable, EventSource, InterruptibleTask, RunnableTask, Task
- Direct Known Subclasses:
- AbstractApplication, TimerTask.Abstract
@Revision(value="$Revision: 1.1 $",
date="$Date: 2006/12/11 21:29:06 $",
tag="$Name: $")
public abstract class AbstractInterruptibleTask- extends AbstractTask
- implements InterruptibleTask
TODO: Javadoc
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize
TODO: equals, hashCode, toString
- Version:
- $Revision: 1.1 $
- Author:
- Greg Gibeling
| Nested classes/interfaces inherited from interface rcf.core.concurrent.schedule.Task |
Task.State |
|
Method Summary |
protected abstract void |
inner()
TODO: Javadoc |
void |
interrupt()
TODO: Javadoc
Interrupt the task while it's running. |
void |
run()
TODO: Javadoc
taskState(): Runnable -> Running -> Finished |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rcf.core.concurrent.schedule.Task |
taskState |
thread
private Thread thread
- TODO: Javadoc
interrupt
protected volatile boolean interrupt
- TODO: Javadoc
AbstractInterruptibleTask
public AbstractInterruptibleTask()
inner
protected abstract void inner()
- TODO: Javadoc
interrupt
public void interrupt()
- Description copied from interface:
InterruptibleTask
- TODO: Javadoc
Interrupt the task while it's running. Some tasks will respond to this
by aborting and rolling back state changes.
- Specified by:
interrupt in interface InterruptibleTask
run
public void run()
- Description copied from interface:
RunnableTask
- TODO: Javadoc
taskState(): Runnable -> Running -> Finished
- Specified by:
run in interface Runnable- Specified by:
run in interface RunnableTask
- See Also:
Runnable.run()