Interface EventTypeRestrictableEventCriteria

All Superinterfaces:
EventCriteria

public sealed interface EventTypeRestrictableEventCriteria extends 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 Details

    • andBeingOneOfTypes

      EventCriteria andBeingOneOfTypes(@Nonnull Set<QualifiedName> types)
      Define that the event must be one of the provided types. If the types set is empty, the criteria allows any type.
      Parameters:
      types - The types to match against.
      Returns:
      The finished EventCriteria instance.
    • andBeingOneOfTypes

      default EventCriteria andBeingOneOfTypes(@Nonnull QualifiedName... types)
      Define that the event must be one of the provided types. If the types set is empty, the criteria allows any type.
      Parameters:
      types - The types to match against.
      Returns:
      The finished EventCriteria instance.
    • andBeingOneOfTypes

      default EventCriteria andBeingOneOfTypes(@Nonnull MessageTypeResolver typeResolver, @Nonnull Class<?>... types)
      Define that the event must be one of the provided types. The types are resolved to a QualifiedName using the provided typeResolver. If the types set is empty, the criteria allows any type.
      Parameters:
      typeResolver - The MessageTypeResolver to resolve the types to a QualifiedName.
      types - The types to match against.
      Returns:
      The finished EventCriteria instance.
    • andBeingOneOfTypes

      default EventCriteria andBeingOneOfTypes(@Nonnull String... types)
      Define that the event must be one of the provided types. qualified names are constructed from the string values. If the types set is empty, the criteria allow any type.
      Parameters:
      types - The types to match against.
      Returns:
      The finished EventCriteria instance.
    • andBeingOfAnyType

      default EventCriteria andBeingOfAnyType()
      Specifies that the event can be of any type.
      Returns:
      The finished EventCriteria instance.