Class TimerAtObserver
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.observer.TimerAtObserver
- All Implemented Interfaces:
EventObserver
,ScheduleHandleCallback
Observer implementation for indicating that a certain time arrived, similar to "crontab".
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTimerAtObserver
(ScheduleSpec scheduleSpec, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator) Ctor. -
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:
-
-
Constructor Details
-
TimerAtObserver
public TimerAtObserver(ScheduleSpec scheduleSpec, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator) Ctor.- Parameters:
scheduleSpec
- - specification containing the crontab schedulebeginState
- - start stateobserverEventEvaluator
- - receiver for events
-
-
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
-