|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.timer.TimerServiceImpl
public final class TimerServiceImpl
Implementation of the internal clocking service interface.
Field Summary |
---|
Fields inherited from interface net.esper.timer.TimerService |
---|
INTERNAL_CLOCK_RESOLUTION_MSEC |
Constructor Summary | |
---|---|
protected |
TimerServiceImpl()
Constructor. |
Method Summary | |
---|---|
void |
setCallback(TimerCallback timerCallback)
Set the callback method to invoke for clock ticks. |
void |
startInternalClock()
Start clock expecting callbacks at regular intervals and a fixed rate. |
void |
stopInternalClock(boolean warnIfNotStarted)
Stop internal clock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TimerServiceImpl()
Method Detail |
---|
public void setCallback(TimerCallback timerCallback)
TimerService
setCallback
in interface TimerService
timerCallback
- is the callbackpublic final void startInternalClock()
TimerService
startInternalClock
in interface TimerService
public final void stopInternalClock(boolean warnIfNotStarted)
TimerService
stopInternalClock
in interface TimerService
warnIfNotStarted
- use true to indicate whether to warn if the clock is not started, use false to not warn
and expect the clock to be not started.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |