Class TimerIntervalObserver
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.observer.TimerIntervalObserver
- All Implemented Interfaces:
EventObserver
,ScheduleHandleCallback
Observer that will wait a certain interval before indicating true (raising an event).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTimerIntervalObserver
(long deltaTime, 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
-
TimerIntervalObserver
public TimerIntervalObserver(long deltaTime, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator) Ctor.- Parameters:
deltaTime
- - the time deltaTimebeginState
- - start stateobserverEventEvaluator
- - receiver for events
-
-
Method Details
-
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
-
getBeginState
- Specified by:
getBeginState
in interfaceEventObserver
-
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
-