Class TimerIntervalObserverForge
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.observer.TimerIntervalObserverForge
- All Implemented Interfaces:
ObserverForge
,ScheduleHandleCallbackProvider
public class TimerIntervalObserverForge
extends Object
implements ObserverForge, ScheduleHandleCallbackProvider
Factory for making observer instances.
-
Field Summary
Modifier and TypeFieldDescriptionprotected MatchedEventConvertorForge
protected ExprNode
protected int
protected TimeAbacus
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectSchedule
(short factoryNodeId, Function<Short, CallbackAttribution> scheduleAttribution, List<ScheduleHandleTracked> schedules) int
makeCodegen
(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) void
setObserverParameters
(List<ExprNode> parameters, MatchedEventConvertorForge convertor, ExprValidationContext validationContext) Sets the observer object parameters.void
setScheduleCallbackId
(int id)
-
Field Details
-
parameter
-
scheduleCallbackId
protected int scheduleCallbackId -
timeAbacus
-
convertor
-
-
Constructor Details
-
TimerIntervalObserverForge
public TimerIntervalObserverForge()
-
-
Method Details
-
setObserverParameters
public void setObserverParameters(List<ExprNode> parameters, MatchedEventConvertorForge convertor, ExprValidationContext validationContext) throws ObserverParameterException Description copied from interface:ObserverForge
Sets the observer object parameters.- Specified by:
setObserverParameters
in interfaceObserverForge
- Parameters:
parameters
- is a list of parametersconvertor
- for converting partial pattern matches to event-per-stream for expressionsvalidationContext
- context- Throws:
ObserverParameterException
- thrown to indicate a parameter problem
-
setScheduleCallbackId
public void setScheduleCallbackId(int id) - Specified by:
setScheduleCallbackId
in interfaceScheduleHandleCallbackProvider
-
getScheduleCallbackId
public int getScheduleCallbackId()- Specified by:
getScheduleCallbackId
in interfaceScheduleHandleCallbackProvider
-
collectSchedule
public void collectSchedule(short factoryNodeId, Function<Short, CallbackAttribution> scheduleAttribution, List<ScheduleHandleTracked> schedules) - Specified by:
collectSchedule
in interfaceObserverForge
-
makeCodegen
public CodegenExpression makeCodegen(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) - Specified by:
makeCodegen
in interfaceObserverForge
-