Class EventEnvelope

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Product4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>

    public final class EventEnvelope
    extends java.lang.Object
    implements scala.Product4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>, java.io.Serializable
    Event wrapper adding meta data for the events in the result stream of EventsByTagQuery query, or similar queries.

    The timestamp is the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same as System.currentTimeMillis).

    See Also:
    Serialized Form
    • Constructor Detail

      • EventEnvelope

        public EventEnvelope​(Offset offset,
                             java.lang.String persistenceId,
                             long sequenceNr,
                             java.lang.Object event,
                             long timestamp)
      • EventEnvelope

        public EventEnvelope​(Offset offset,
                             java.lang.String persistenceId,
                             long sequenceNr,
                             java.lang.Object event)
        Deprecated.
        for binary compatibility. Since 2.6.2.
    • Method Detail

      • apply

        public static EventEnvelope apply​(Offset offset,
                                          java.lang.String persistenceId,
                                          long sequenceNr,
                                          java.lang.Object event,
                                          long timestamp)
      • apply

        public static EventEnvelope apply​(Offset offset,
                                          java.lang.String persistenceId,
                                          long sequenceNr,
                                          java.lang.Object event)
        Deprecated.
        for binary compatibility. Since 2.6.2.
      • unapply

        public static scala.Option<scala.Tuple4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>> unapply​(EventEnvelope arg)
      • offset

        public Offset offset()
      • persistenceId

        public java.lang.String persistenceId()
      • sequenceNr

        public long sequenceNr()
      • event

        public java.lang.Object event()
      • timestamp

        public long timestamp()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • copy

        public EventEnvelope copy​(Offset offset,
                                  java.lang.String persistenceId,
                                  long sequenceNr,
                                  java.lang.Object event)
      • copy$default$1

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

        public java.lang.String copy$default$2()
      • copy$default$3

        public long copy$default$3()
      • copy$default$4

        public java.lang.Object copy$default$4()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • _1

        public Offset _1()
        Specified by:
        _1 in interface scala.Product4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>
      • _2

        public java.lang.String _2()
        Specified by:
        _2 in interface scala.Product4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>
      • _3

        public long _3()
        Specified by:
        _3 in interface scala.Product4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>
      • _4

        public java.lang.Object _4()
        Specified by:
        _4 in interface scala.Product4<Offset,​java.lang.String,​java.lang.Object,​java.lang.Object>
      • canEqual

        public boolean canEqual​(java.lang.Object that)
        Specified by:
        canEqual in interface scala.Equals