@ELocalOnly public final class MatchEvent extends ENotificationMessage implements Serializable
ENotificationMessage.Builder<M extends ENotificationMessage,B extends ENotificationMessage.Builder<M,?>>EMessage.MessageType| Modifier and Type | Field and Description |
|---|---|
Map<String,List<ENotificationMessage>> |
groups
The collected events for each pattern group.
|
Map<Object,Object> |
userCache
This map contains the user-defined data stored when
MatchConditions were executed. |
MAX_FIELDS| Constructor and Description |
|---|
MatchEvent(String subject,
long timestamp)
Creates a new match event for the given subject and
timestamp.
|
MatchEvent(String subject,
long timestamp,
Map<String,List<ENotificationMessage>> groups,
Map<Object,Object> userCache)
Creates a new match event for the given subject, timestamp,
and pattern groups.
|
MatchEvent(String subject,
Map<String,List<ENotificationMessage>> groups,
Map<Object,Object> userCache)
Create a new match event for the given pattern groups.
|
| Modifier and Type | Method and Description |
|---|---|
List<ENotificationMessage> |
group(String name)
Returns the notification list associated with the given
group name.
|
String |
toString()
Returns a string containing each of the groups and the
group event.
|
equals, hashCode, isApplicationMessage, isSystemMessage, key, messageTypepublic final Map<String,List<ENotificationMessage>> groups
EventPattern.ALL_EVENTS contains all matched
events. The remaining map keys (if any) are from the
user-defined EventPattern. The groups map and
the notification list values are both read-only.public final Map<Object,Object> userCache
MatchConditions were executed. This map is not
null but may be empty.public MatchEvent(String subject, Map<String,List<ENotificationMessage>> groups, Map<Object,Object> userCache)
subject - subject used to open pattern feed.groups - matched pattern groups.userCache - map containing user-defined data. This
map is never null but may be empty.public MatchEvent(String subject, long timestamp)
subject - notification subject.timestamp - millisecond epoch time for event.public MatchEvent(String subject, long timestamp, Map<String,List<ENotificationMessage>> groups, Map<Object,Object> userCache)
subject - notification subject. Set by user when
opening EPatternFeed.timestamp - millisecond epoch time for event.groups - pattern groups containing zero or more
matched events.userCache - map containing user-defined data. This
map is never null but may be empty.public String toString()
public List<ENotificationMessage> group(String name)
null if there is not group
with the given name.name - group name.Copyright © 2019. All rights reserved.