Interface EventsCondition
- All Known Subinterfaces:
AppendCondition,SourcingCondition,StreamingCondition
public interface EventsCondition
Interface describing a condition that the type and tags of event messages must match against in order to be
relevant.
- Since:
- 5.0.0
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptioncriteria()The set of criteria against which events must match.default booleanmatches(QualifiedName type, Set<Tag> tags) Indicates whether the criteria defined in this condition matches against the giventypeandtags.
-
Method Details
-
criteria
EventCriteria criteria()The set of criteria against which events must match.- Returns:
- The
EventCriteriaused to match this condition against.
-
matches
Indicates whether the criteria defined in this condition matches against the giventypeandtags.More specifically, this condition matches if any of the provided criteria match the given
typeandtags, or if no criteria have been provided at all.See
EventCriteriafor more details on matching tags.- Parameters:
type- The type of the event to validate against.tags- The tags of an event message to match.- Returns:
trueif given type and tags match, otherwisefalse.- See Also:
-