rcf.core.concurrent.schedule
Interface InterruptibleTask
- All Superinterfaces:
- EventSource, Runnable, RunnableTask, Task
- All Known Subinterfaces:
- Application, ConcurrentRunnableTask, Framework, InterruptibleFuture, Service, TimerTask
- All Known Implementing Classes:
- AbstractApplication, AbstractInterruptibleTask, AbstractRADService.RefreshTask, AbstractRADService.UpdateTask, AbstractService, Framework.Default, HAProxyLinux.ConfigTask, LigHTTPDLinux.ConfigTask, Main, MySQLFedora.ConfigTask, RoRServerLinux.ConfigDatabaseTask, RoRServerLinux.ConfigEnvironmentTask, TimerTask.Abstract, TimerTask.Default
@Revision(value="$Revision: 1.4 $",
date="$Date: 2006/11/23 23:07:30 $",
tag="$Name: $")
public interface InterruptibleTask- extends RunnableTask
TODO: Javadoc
TODO: Turn state names into hyperlinks
Normal states: Runnable -> Running -> Committed
Can be interrupted! (Goes into Interrupting -> Interrupted)
May also go into Aborting -> Aborted for some tasks, since that's generally a better condition.
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize
TODO: equals, hashCode, toString
- Version:
- $Revision: 1.4 $
- Author:
- Greg Gibeling
| Nested classes/interfaces inherited from interface rcf.core.concurrent.schedule.Task |
Task.State |
|
Method Summary |
void |
interrupt()
TODO: Javadoc
Interrupt the task while it's running. |
| Methods inherited from interface rcf.core.concurrent.schedule.RunnableTask |
run |
| Methods inherited from interface rcf.core.concurrent.schedule.Task |
taskState |
interrupt
void interrupt()
- TODO: Javadoc
Interrupt the task while it's running. Some tasks will respond to this
by aborting and rolling back state changes.