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 Type
    Method
    Description
    The set of criteria against which events must match.
    default boolean
    matches(QualifiedName type, Set<Tag> tags)
    Indicates whether the criteria defined in this condition matches against the given type and tags.
  • Method Details

    • criteria

      EventCriteria criteria()
      The set of criteria against which events must match.
      Returns:
      The EventCriteria used to match this condition against.
    • matches

      default boolean matches(@Nonnull QualifiedName type, @Nonnull Set<Tag> tags)
      Indicates whether the criteria defined in this condition matches against the given type and tags.

      More specifically, this condition matches if any of the provided criteria match the given type and tags, or if no criteria have been provided at all.

      See EventCriteria for 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:
      true if given type and tags match, otherwise false.
      See Also: