|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
javax.realtime.RealtimeThread
javax.realtime.DSS.PeriodicTimerThread
Thread class for
PeriodicTimer
objects
Field Summary | |
protected AsyncEvent |
event
|
protected RelativeTime |
interval
|
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 | |
PeriodicTimerThread(java.lang.String name,
int basePriority,
RelativeTime interval,
AsyncEvent event)
Constructor |
Method Summary | |
void |
body()
Where all the application work gets done. |
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 |
protected RelativeTime interval
protected AsyncEvent event
Constructor Detail |
public PeriodicTimerThread(java.lang.String name, int basePriority, RelativeTime interval, AsyncEvent event)
name
- The name of this threadbasePriority
- The base priority of this threadinterval
- the delay between cycles of this threadevent
- the event to fire on each cycleMethod Detail |
public void body() throws java.lang.InterruptedException
Thread.run()
,
but that method is used as a wrapper
RealTimeThread
to initialize, passivate and clean up this
RealTimeThread
.
body
in class RealtimeThread
InterruptedException
- thrown if a wait()
is
interrupted
java.lang.InterruptedException
- thrown if a wait()
is
interrupted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |