|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.timeout.TimeoutFactory
The timeout factory.
This is written with performance in mind. In case of n
active timeouts, creating, cancelling and firing timeouts all operate
in time O(log(n))
.
If a timeout is cancelled, the timeout is not discarded. Instead the
timeout is saved to be reused for another timeout. This means that if
no timeouts are fired, this class will eventually operate without
allocating anything on the heap.
Method Summary | |
static Timeout (src) |
createTimeout(long time,
TimeoutTarget (src) target)
Schedule a new timeout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Timeout (src) createTimeout(long time, TimeoutTarget (src) target)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |