Class TimerAtObserverFactory
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.observer.TimerAtObserverFactory
- All Implemented Interfaces:
ObserverFactory
Factory for 'crontab' observers that indicate truth when a time point was reached.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeSpec
(MatchedEventMap beginState, PatternAgentInstanceContext context) boolean
makeObserver
(PatternAgentInstanceContext context, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator, Object observerState, boolean isFilterChildNonQuitting) Make an observer instance.void
setOptionalConvertor
(MatchedEventConvertor optionalConvertor) void
setParameters
(ExprEvaluator[] parameters) void
setScheduleCallbackId
(int scheduleCallbackId) void
setSpec
(ScheduleSpec spec)
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
TimerAtObserverFactory
public TimerAtObserverFactory()
-
-
Method Details
-
setParameters
-
setOptionalConvertor
-
setSpec
-
setScheduleCallbackId
public void setScheduleCallbackId(int scheduleCallbackId) -
computeSpec
-
makeObserver
public EventObserver makeObserver(PatternAgentInstanceContext context, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator, Object observerState, boolean isFilterChildNonQuitting) Description copied from interface:ObserverFactory
Make an observer instance.- Specified by:
makeObserver
in interfaceObserverFactory
- Parameters:
context
- - services that may be required by observer implementationbeginState
- - start state for observerobserverEventEvaluator
- - receiver for events observedobserverState
- - state node for observerisFilterChildNonQuitting
- true for non-quitting filter- Returns:
- observer instance
-
isNonRestarting
public boolean isNonRestarting()- Specified by:
isNonRestarting
in interfaceObserverFactory
-