public class TimerIntervalObserverFactory extends Object implements ObserverFactory, MetaDefItem, Serializable
Modifier and Type | Field and Description |
---|---|
protected MatchedEventConvertor |
convertor
Convertor to events-per-stream.
|
protected ExprNode |
parameter
Parameters.
|
Constructor and Description |
---|
TimerIntervalObserverFactory() |
Modifier and Type | Method and Description |
---|---|
long |
computeDelta(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 ExprNode parameter
protected transient MatchedEventConvertor convertor
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 long computeDelta(MatchedEventMap beginState, PatternAgentInstanceContext context)
public 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