Class TimerScheduleObserver
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.observer.TimerScheduleObserver
- All Implemented Interfaces:
EventObserver
,ScheduleHandleCallback
Observer implementation for indicating that a certain time arrived, similar to "crontab".
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
protected Calendar
protected MatchedEventMap
protected boolean
static final String
protected final ObserverEventEvaluator
protected EPStatementHandleCallbackSchedule
protected final long
-
Constructor Summary
ConstructorDescriptionTimerScheduleObserver
(TimerScheduleSpec spec, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator, boolean isFilterChildNonQuitting) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(EventObserverVisitor visitor) final void
Callback that is invoked as indicated by a schedule added to the scheduling service.void
Start observing.void
Stop observing.
-
Field Details
-
NAME_AUDITPROVIDER_SCHEDULE
- See Also:
-
scheduleSlot
protected final long scheduleSlot -
beginState
-
observerEventEvaluator
-
anchorTime
-
anchorRemainder
protected long anchorRemainder -
isTimerActive
protected boolean isTimerActive -
scheduleHandle
-
-
Constructor Details
-
TimerScheduleObserver
public TimerScheduleObserver(TimerScheduleSpec spec, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator, boolean isFilterChildNonQuitting)
-
-
Method Details
-
getBeginState
- Specified by:
getBeginState
in interfaceEventObserver
-
scheduledTrigger
public final void scheduledTrigger()Description copied from interface:ScheduleHandleCallback
Callback that is invoked as indicated by a schedule added to the scheduling service.- Specified by:
scheduledTrigger
in interfaceScheduleHandleCallback
-
startObserve
public void startObserve()Description copied from interface:EventObserver
Start observing.- Specified by:
startObserve
in interfaceEventObserver
-
stopObserve
public void stopObserve()Description copied from interface:EventObserver
Stop observing.- Specified by:
stopObserve
in interfaceEventObserver
-
accept
- Specified by:
accept
in interfaceEventObserver
-