Interface TaggedEventMessage<E extends EventMessage>

Type Parameters:
E - The type of EventMessage provided by this interface.
All Known Implementing Classes:
GenericTaggedEventMessage

public interface TaggedEventMessage<E extends EventMessage>
A wrapper of an EventMessage and its Tags.

Tags typically refer to the name and value of the identifiers of the model(s) that led to the publication of the contained event.

Since:
5.0.0
Author:
Allard Buijze, Michal Negacz, Milan Savić, Marco Amann, Sara Pellegrini, Steven van Beelen
  • Method Details

    • event

      E event()
      Return the EventMessage of generic type E carried by this TaggedEventMessage.
      Returns:
      EventMessage of generic type E carried by this TaggedEventMessage.
    • tags

      Set<Tag> tags()
      Return the Set of Tags of this TaggedEventMessage.
      Returns:
      The Set of Tags of this TaggedEventMessage.
    • updateTags

      TaggedEventMessage<E> updateTags(Function<Set<Tag>,Set<Tag>> updater)
      Construct a new TaggedEventMessage using the given updater to adjust the tags() of the new TaggedEventMessage.
      Parameters:
      updater - The Function returning a new Set of Tags based on the existing tags().
      Returns:
      A new TaggedEventMessage using the given updater to adjust the tags() of the new TaggedEventMessage.