@FunctionalInterface public interface MatchCondition
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(ENotificationMessage event,
Map<String,List<ENotificationMessage>> groups,
Map<Object,Object> userCache)
Returns
true if event satisfies this
condition, allowing the event pattern matching to continue
or complete. |
boolean test(ENotificationMessage event, Map<String,List<ENotificationMessage>> groups, Map<Object,Object> userCache)
true if event satisfies this
condition, allowing the event pattern matching to continue
or complete. If event does not meet the pattern
condition, then the current match is abandoned.
Two further pieces of information are provided to help with the test: the capturing groups and the user-defined data cache (which see for more information).
Note: if this method should throw any exception that is treated as a test failure and the current match is abandoned.
event - test if this event matches the pattern.groups - the capturing groups so far.userCache - map containing user data.true if event satisfies the match
condition.Copyright © 2020. All rights reserved.