Interface EventTypeRestrictableEventCriteria
- All Superinterfaces:
EventCriteria
An
EventCriteria that can be restricted to a specific set of event types. See EventCriteria for a
deep explanation of how filtering works.- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault EventCriteriaSpecifies that the event can be of any type.default EventCriteriaandBeingOneOfTypes(String... types) Define that the event must be one of the providedtypes.andBeingOneOfTypes(Set<QualifiedName> types) Define that the event must be one of the providedtypes.default EventCriteriaandBeingOneOfTypes(MessageTypeResolver typeResolver, Class<?>... types) Define that the event must be one of the providedtypes.default EventCriteriaandBeingOneOfTypes(QualifiedName... types) Define that the event must be one of the providedtypes.Methods inherited from interface org.axonframework.messaging.eventstreaming.EventCriteria
flatten, hasCriteria, matches, or, or
-
Method Details
-
andBeingOneOfTypes
Define that the event must be one of the providedtypes. If thetypesset is empty, the criteria allows any type.- Parameters:
types- The types to match against.- Returns:
- The finished
EventCriteriainstance.
-
andBeingOneOfTypes
Define that the event must be one of the providedtypes. If thetypesset is empty, the criteria allows any type.- Parameters:
types- The types to match against.- Returns:
- The finished
EventCriteriainstance.
-
andBeingOneOfTypes
default EventCriteria andBeingOneOfTypes(@Nonnull MessageTypeResolver typeResolver, @Nonnull Class<?>... types) Define that the event must be one of the providedtypes. Thetypesare resolved to aQualifiedNameusing the providedtypeResolver. If thetypesset is empty, the criteria allows any type.- Parameters:
typeResolver- TheMessageTypeResolverto resolve the types to aQualifiedName.types- The types to match against.- Returns:
- The finished
EventCriteriainstance.
-
andBeingOneOfTypes
Define that the event must be one of the providedtypes.qualified namesare constructed from the string values. If thetypesset is empty, the criteria allow any type.- Parameters:
types- The types to match against.- Returns:
- The finished
EventCriteriainstance.
-
andBeingOfAnyType
Specifies that the event can be of any type.- Returns:
- The finished
EventCriteriainstance.
-