|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimeoutMonitor<T extends Timeoutable<T>>
This interface works in conjunction with the Timeoutable interface to provide a simple timeout mechanism
| Field Summary | |
|---|---|
static long |
DEFAULT_MONITOR_FREQUENCY
5 minutes |
| Method Summary | |
|---|---|
void |
addTimeoutable(T timeoutable)
Adds the Timeoutable to this monitor |
void |
destroy()
Destroys this monitor, stopping its background thread and clearing its Timeoutable cache. |
void |
init()
Initializes this monitor, beginning a background thread for monitoring its Timeoutables. |
void |
removeTimeoutable(T timeoutable)
Removes this Timeoutable from this monitor |
void |
setMonitoringFrequency(long frequencyMillis)
The frequency, in milliseconds, that this monitor will check its Timeoutables for their remaining times. |
| Field Detail |
|---|
static final long DEFAULT_MONITOR_FREQUENCY
| Method Detail |
|---|
void setMonitoringFrequency(long frequencyMillis)
Timeoutables for their remaining times.
It should be noted that the frequency is guaranteed to not be less the the given time, but it
may incrementally exceed the given time as more Timeoutables are added. This is due
to the time required to check each of the Timeoutables.
frequencyMillis - void addTimeoutable(T timeoutable)
Timeoutable to this monitor
timeoutable - void removeTimeoutable(T timeoutable)
Timeoutable from this monitor
timeoutable - void init()
Timeoutables.
void destroy()
Timeoutable cache.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||