Class TimerScheduleObserverForge
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.observer.TimerScheduleObserverForge
- All Implemented Interfaces:
ObserverForge
,ScheduleHandleCallbackProvider
public class TimerScheduleObserverForge
extends Object
implements ObserverForge, ScheduleHandleCallbackProvider
Factory for ISO8601 repeating interval observers that indicate truth when a time point was reached.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectSchedule
(short factoryNodeId, Function<Short, CallbackAttribution> callbackAttribution, 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
-
NAME_OBSERVER
- See Also:
-
-
Constructor Details
-
TimerScheduleObserverForge
public TimerScheduleObserverForge()
-
-
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
-
makeCodegen
public CodegenExpression makeCodegen(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) - Specified by:
makeCodegen
in interfaceObserverForge
-
collectSchedule
public void collectSchedule(short factoryNodeId, Function<Short, CallbackAttribution> callbackAttribution, List<ScheduleHandleTracked> schedules) - Specified by:
collectSchedule
in interfaceObserverForge
-