Class Tagged

java.lang.Object
org.apache.pekko.persistence.journal.Tagged
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class Tagged extends Object implements scala.Product, Serializable
The journal may support tagging of events that are used by the EventsByTag query and it may support specifying the tags via an pekko.persistence.journal.EventAdapter that wraps the events in a Tagged with the given tags. The journal may support other ways of doing tagging. Please consult the documentation of the specific journal implementation for more information.

The journal will unwrap the event and store the payload.

See Also:
  • Constructor Details

    • Tagged

      public Tagged(Object payload, scala.collection.immutable.Set<String> tags)
    • Tagged

      public Tagged(Object payload, Set<String> tags)
      Java API
  • Method Details

    • apply

      public static Tagged apply(Object payload, scala.collection.immutable.Set<String> tags)
    • unapply

      public static scala.Option<scala.Tuple2<Object,scala.collection.immutable.Set<String>>> unapply(Tagged x$0)
    • payload

      public Object payload()
    • tags

      public scala.collection.immutable.Set<String> tags()
    • copy

      public Tagged copy(Object payload, scala.collection.immutable.Set<String> tags)
    • copy$default$1

      public Object copy$default$1()
    • copy$default$2

      public scala.collection.immutable.Set<String> copy$default$2()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object