|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--de.jadv.server.manager.EventManager
EventManager This implements the main EventManager. It starts and controls the EventThreads.
Field Summary | |
private long |
_oldCounter
|
private java.util.Timer |
_Timer
|
long |
counter
|
private EventThread |
eThread
|
private EventList |
eventList
|
Event |
LastHandledEvent
|
private boolean |
shouldStop
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
EventManager()
|
Method Summary | |
void |
addEvent(Event evt)
Add an Event to the Event Queue |
void |
addHeartBeatTask(JAdvObject obj,
long time)
Add the HeartBeat for an Object. |
void |
addTimer(JAdvObject obj,
long time)
Add the timer for an Object |
void |
clearEvent()
clear the last handled Event This should be done from the EventThread directly after working on the Event. |
Event |
getEvent()
Get an Event from the EventQueue |
void |
run()
Main function of the EventManager |
void |
stopThread()
Stop the main function of the EventManager |
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, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public long counter
private long _oldCounter
private boolean shouldStop
public Event LastHandledEvent
private EventList eventList
private java.util.Timer _Timer
private EventThread eThread
Constructor Detail |
public EventManager()
Method Detail |
public void addHeartBeatTask(JAdvObject obj, long time)
obj
- - Object for HeartBeattime
- - Time in secondspublic void addTimer(JAdvObject obj, long time)
obj
- - Object for Timertime
- - Time in secondspublic void clearEvent()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void stopThread()
public void addEvent(Event evt)
evt
- public Event getEvent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |