rcf.core.concurrent.schedule
Class AbstractInterruptibleTask

java.lang.Object
  extended by rcf.core.concurrent.events.AbstractEventSource
      extended by rcf.core.concurrent.schedule.AbstractTask
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface rcf.core.concurrent.schedule.Task
Task.State
 
Field Summary
protected  boolean interrupt
          TODO: Javadoc
private  Thread thread
          TODO: Javadoc
 
Fields inherited from class rcf.core.concurrent.schedule.AbstractTask
taskEventTypes
 
Fields inherited from class rcf.core.concurrent.events.AbstractEventSource
syndicate
 
Constructor Summary
AbstractInterruptibleTask()
           
 
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 rcf.core.concurrent.schedule.AbstractTask
events, syndicate, taskEventTypes, taskState, taskState
 
Methods inherited from class rcf.core.concurrent.events.AbstractEventSource
createdSyndicate, destroyedSyndicate, getSequenceNumber, incSequenceNumber, isSyndicated
 
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
 
Methods inherited from interface rcf.core.concurrent.events.EventSource
events, getSequenceNumber, incSequenceNumber, isSyndicated, syndicate
 

Field Detail

thread

private Thread thread
TODO: Javadoc


interrupt

protected volatile boolean interrupt
TODO: Javadoc

Constructor Detail

AbstractInterruptibleTask

public AbstractInterruptibleTask()
Method Detail

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()