public class ContextControllerConditionPattern extends Object implements ContextControllerConditionNonHA, PatternMatchCallback
Modifier and Type | Class and Description |
---|---|
static class |
ContextControllerConditionPattern.ConditionPatternMatchCallback |
Modifier and Type | Field and Description |
---|---|
protected EvalRootState |
patternStopCallback |
Constructor and Description |
---|
ContextControllerConditionPattern(IntSeqKey conditionPath,
Object[] partitionKeys,
ContextConditionDescriptorPattern pattern,
ContextControllerConditionCallback callback,
ContextController controller) |
Modifier and Type | Method and Description |
---|---|
boolean |
activate(EventBean optionalTriggeringEvent,
ContextControllerEndConditionMatchEventProvider endConditionMatchEventProvider) |
void |
deactivate() |
ContextConditionDescriptor |
getDescriptor() |
Long |
getExpectedEndTime() |
boolean |
isImmediate() |
boolean |
isRunning() |
void |
matchFound(Map<String,Object> matchEvent,
EventBean optionalTriggeringEvent)
Indicate matching events.
|
protected EvalRootState patternStopCallback
public ContextControllerConditionPattern(IntSeqKey conditionPath, Object[] partitionKeys, ContextConditionDescriptorPattern pattern, ContextControllerConditionCallback callback, ContextController controller)
public boolean activate(EventBean optionalTriggeringEvent, ContextControllerEndConditionMatchEventProvider endConditionMatchEventProvider)
activate
in interface ContextControllerConditionNonHA
public void deactivate()
deactivate
in interface ContextControllerConditionNonHA
public void matchFound(Map<String,Object> matchEvent, EventBean optionalTriggeringEvent)
PatternMatchCallback
matchFound
in interface PatternMatchCallback
matchEvent
- contains a map of event tags and event objectsoptionalTriggeringEvent
- in case the pattern fired as a result of an event arriving, provides the eventpublic boolean isImmediate()
isImmediate
in interface ContextControllerCondition
public boolean isRunning()
isRunning
in interface ContextControllerConditionNonHA
public Long getExpectedEndTime()
getExpectedEndTime
in interface ContextControllerCondition
public ContextConditionDescriptor getDescriptor()
getDescriptor
in interface ContextControllerCondition
Copyright © 2005–2018. All rights reserved.