|
||||||||||
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.
Constructor Summary | |
---|---|
TimerServiceImpl(long msecTimerResolution)
Constructor. |
Method Summary | |
---|---|
long |
getMsecTimerResolution()
Returns the timer resolution. |
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 |
---|
public TimerServiceImpl(long msecTimerResolution)
msecTimerResolution
- is the millisecond resolution or interval the internal timer thread
processes schedulesMethod Detail |
---|
public long getMsecTimerResolution()
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.
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |