Class OrEventCriteriaBuilder
java.lang.Object
org.axonframework.messaging.eventstreaming.OrEventCriteriaBuilder
Builder class to construct an
EventCriteria that will match the to-be-built criteria and the already existing
criteria. Mimics the static methods of the EventCriteria to provide a consistent, fluent API.- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionConstruct aEventCriteriathat allows any events.havingTags(String... tags) Define that the event must contain all the providedtagsto match.havingTags(Set<Tag> tags) Define that the event must contain all the providedtagsto match.havingTags(Tag... tags) Define that the event must contain all the providedtagsto match.
-
Method Details
-
havingTags
Define that the event must contain all the providedtagsto match. These tags function in an AND relation, meaning that an event must have all tags to match. A partial match is not sufficient.You can further limit the types of events to be matched by using the
EventTypeRestrictableEventCriteria.andBeingOneOfTypes(Set)method.- Parameters:
tags- The tags to match against.- Returns:
- The completed EventCriteria instance.
-
havingTags
Define that the event must contain all the providedtagsto match. These tags function in an AND relation, meaning that an event must have all tags to match. A partial match is not sufficient.You can further limit the types of events to be matched by using the
EventTypeRestrictableEventCriteria.andBeingOneOfTypes(Set)method.- Parameters:
tags- The tags to match against.- Returns:
- The completed EventCriteria instance.
-
havingTags
Define that the event must contain all the providedtagsto match. These tags function in an AND relation, meaning that an event must have all tags to match. A partial match is not sufficient.You can further limit the types of events to be matched by using the
EventTypeRestrictableEventCriteria.andBeingOneOfTypes(Set)method.- Parameters:
tags- The tags to match against.- Returns:
- The completed EventCriteria instance.
-
havingAnyTag
Construct aEventCriteriathat allows any events.Event though this criteria will not filter any tags, you can limit the types of events to be matched by using the
EventTypeRestrictableEventCriteria.andBeingOneOfTypes(Set)method.- Returns:
- An
EventCriteriathat contains no criteria at all.
-