public class TimerScheduleObserverFactory extends Object implements ObserverFactory, MetaDefItem, Serializable
Modifier and Type | Field and Description |
---|---|
protected MatchedEventConvertor |
convertor |
protected com.espertech.esper.pattern.observer.TimerScheduleObserverFactory.TimerScheduleSpecCompute |
scheduleComputer
Convertor.
|
protected TimerScheduleSpec |
spec |
Constructor and Description |
---|
TimerScheduleObserverFactory() |
Modifier and Type | Method and Description |
---|---|
TimerScheduleSpec |
computeSpecDynamic(MatchedEventMap beginState,
PatternAgentInstanceContext context) |
boolean |
isNonRestarting() |
EventObserver |
makeObserver(PatternAgentInstanceContext context,
MatchedEventMap beginState,
ObserverEventEvaluator observerEventEvaluator,
EvalStateNodeNumber stateNodeId,
Object observerState,
boolean isFilterChildNonQuitting)
Make an observer instance.
|
void |
setObserverParameters(List<ExprNode> parameters,
MatchedEventConvertor convertor,
ExprValidationContext validationContext)
Sets the observer object parameters.
|
protected transient com.espertech.esper.pattern.observer.TimerScheduleObserverFactory.TimerScheduleSpecCompute scheduleComputer
protected transient MatchedEventConvertor convertor
protected TimerScheduleSpec spec
public void setObserverParameters(List<ExprNode> parameters, MatchedEventConvertor convertor, ExprValidationContext validationContext) throws ObserverParameterException
ObserverFactory
setObserverParameters
in interface ObserverFactory
parameters
- is a list of parametersconvertor
- for converting partial pattern matches to event-per-stream for expressionsvalidationContext
- contextObserverParameterException
- thrown to indicate a parameter problempublic EventObserver makeObserver(PatternAgentInstanceContext context, MatchedEventMap beginState, ObserverEventEvaluator observerEventEvaluator, EvalStateNodeNumber stateNodeId, Object observerState, boolean isFilterChildNonQuitting)
ObserverFactory
makeObserver
in interface ObserverFactory
context
- - services that may be required by observer implementationbeginState
- - start state for observerobserverEventEvaluator
- - receiver for events observedstateNodeId
- - optional id for the associated pattern state nodeobserverState
- - state node for observerisFilterChildNonQuitting
- true for non-quitting filterpublic boolean isNonRestarting()
isNonRestarting
in interface ObserverFactory
public TimerScheduleSpec computeSpecDynamic(MatchedEventMap beginState, PatternAgentInstanceContext context)