javax.realtime.DSS
Class OneShotTimerThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjavax.realtime.RealtimeThread
          extended byjavax.realtime.DSS.OneShotTimerThread
All Implemented Interfaces:
java.lang.Runnable, Schedulable

public class OneShotTimerThread
extends RealtimeThread


Field Summary
 boolean canceled
          Has the event been cancelled?
 
Fields inherited from class javax.realtime.RealtimeThread
activePhaseToDo, currentEventNotice, currentPriority, defaultPriority, endTime, lastPriorityChangeNanos, lastWaitStart, logic, memoryArea, memoryParameters, processingGroup, releaseParameters, resourcesHeld, scheduler, scheduling, startAbsoluteMillis, started, startTime, terminated, timeWeightedPriority, waitingForResource, waitTime
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OneShotTimerThread(java.lang.String name, int basePriority, RelativeTime delay, AsyncEvent event)
          Constructor
 
Method Summary
 void body()
          Where all the application work gets done.
 
Methods inherited from class javax.realtime.RealtimeThread
addToFeasibility, addToWaitTime, averagePriority, dynamicPriority, exit, getBasePriority, getLastWaitStart, getMemoryParameters, getProcessingGroupParameters, getReleaseParameters, getScheduler, getSchedulingParameters, initialize, isActive, notifyPriorityChange, printAllStatistics, printResourcesHeld, printStatistics, printTimes, removeFromFeasibility, run, setLastWaitStart, setMemoryParameters, setMemoryParametersIfFeasible, setProcessingGroupParameters, setProcessingGroupParametersIfFeasible, setReleaseParameters, setReleaseParametersIfFeasible, setScheduler, setScheduler, setSchedulingParameters, setSchedulingParametersIfFeasible, toString
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

canceled

public boolean canceled
Has the event been cancelled?

Constructor Detail

OneShotTimerThread

public OneShotTimerThread(java.lang.String name,
                          int basePriority,
                          RelativeTime delay,
                          AsyncEvent event)
Constructor

Parameters:
name - The name of this OneShotTimerThread
basePriority - The base priority of this thread
delay - The delay until the event fires
event - The event to fire
Method Detail

body

public void body()
          throws java.lang.InterruptedException
Where all the application work gets done. Analogous to Thread.run(), but that method is used as a wrapper RealTimeThread to initialize, passivate and clean up this RealTimeThread.

Specified by:
body in class RealtimeThread
Throws:
InterruptedException - thrown if a wait() is interrupted
java.lang.InterruptedException - thrown if a wait() is interrupted