|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.util.WatchDog
public class WatchDog
Class
Method Summary | |
---|---|
static WatchDog |
getInstance()
|
void |
register(TimedEntry timedEntry,
long timeUntilTimeout)
Registers timed object to observe. |
void |
run()
Starts thread to remove timed out message requests. |
void |
stop()
Stops thread, which handles timed entries. |
void |
unregister(TimedEntry timedEntry)
Disables timed entry from managed objects of watchdog. |
void |
update(TimedEntry timedEntry,
long timeUntilTimeout)
Updates timed entry with new time until timeout within managed objects of watchdog. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WatchDog getInstance()
public void register(TimedEntry timedEntry, long timeUntilTimeout)
timedEntry
- timeUntilTimeout
- public void unregister(TimedEntry timedEntry)
timedEntry
- public void update(TimedEntry timedEntry, long timeUntilTimeout)
timedEntry
- timeUntilTimeout
- public void run()
run
in interface java.lang.Runnable
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |