|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.util.AlarmClock
public class AlarmClock
The alarm class provides a lightweight event scheduler. This allows an objects to schedule a timeout without creating a new thread.
A separate thread periodically tests the queue for alarms ready.
| Constructor Summary | |
|---|---|
AlarmClock()
|
|
| Method Summary | |
|---|---|
long |
extractAlarm(long now,
boolean isTest)
Returns the next alarm ready to run |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlarmClock()
| Method Detail |
|---|
public long extractAlarm(long now,
boolean isTest)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||