Class ContextControllerConditionPattern
java.lang.Object
com.espertech.esper.common.internal.context.controller.condition.ContextControllerConditionPattern
- All Implemented Interfaces:
ContextControllerCondition
,ContextControllerConditionNonHA
,PatternMatchCallback
public class ContextControllerConditionPattern
extends Object
implements ContextControllerConditionNonHA, PatternMatchCallback
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContextControllerConditionPattern
(IntSeqKey conditionPath, Object[] partitionKeys, ContextConditionDescriptorPattern pattern, ContextControllerConditionCallback callback, ContextController controller) -
Method Summary
Modifier and TypeMethodDescriptionboolean
activate
(EventBean optionalTriggeringEvent, ContextControllerEndConditionMatchEventProvider endConditionMatchEventProvider, Map<String, Object> optionalTriggeringPattern) void
boolean
boolean
void
matchFound
(Map<String, Object> matchEvent, EventBean optionalTriggeringEvent) Indicate matching events.void
-
Field Details
-
patternStopCallback
-
-
Constructor Details
-
ContextControllerConditionPattern
public ContextControllerConditionPattern(IntSeqKey conditionPath, Object[] partitionKeys, ContextConditionDescriptorPattern pattern, ContextControllerConditionCallback callback, ContextController controller)
-
-
Method Details
-
activate
public boolean activate(EventBean optionalTriggeringEvent, ContextControllerEndConditionMatchEventProvider endConditionMatchEventProvider, Map<String, Object> optionalTriggeringPattern) - Specified by:
activate
in interfaceContextControllerConditionNonHA
-
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceContextControllerConditionNonHA
-
matchFound
Description copied from interface:PatternMatchCallback
Indicate matching events.- Specified by:
matchFound
in interfacePatternMatchCallback
- Parameters:
matchEvent
- contains a map of event tags and event objectsoptionalTriggeringEvent
- in case the pattern fired as a result of an event arriving, provides the event
-
isImmediate
public boolean isImmediate()- Specified by:
isImmediate
in interfaceContextControllerCondition
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceContextControllerConditionNonHA
-
getExpectedEndTime
- Specified by:
getExpectedEndTime
in interfaceContextControllerCondition
-
getDescriptor
- Specified by:
getDescriptor
in interfaceContextControllerCondition
-
transfer
- Specified by:
transfer
in interfaceContextControllerCondition
-