Class ReplicatedEventMetadata

  • All Implemented Interfaces:, scala.Equals, scala.Product

    public final class ReplicatedEventMetadata
    extends java.lang.Object
    implements scala.Product,
    See Also:
    Serialized Form
    • Constructor Detail

      • ReplicatedEventMetadata

        public ReplicatedEventMetadata​(ReplicaId originReplica,
                                       long originSequenceNr,
                                       VersionVector version,
                                       boolean concurrent)
    • Method Detail

      • instanceForJournalTest

        public static java.lang.Object instanceForJournalTest()
        For a journal supporting Replicated Event Sourcing needing to add test coverage, use this instance as metadata and defer to the built in serializer for serialization format
      • apply

        public static ReplicatedEventMetadata apply​(ReplicaId originReplica,
                                                    long originSequenceNr,
                                                    VersionVector version,
                                                    boolean concurrent)
        originReplica - Where the event originally was created
        originSequenceNr - The original sequenceNr in the origin DC
        version - The version with which the event was persisted at the different DC. The same event will have different version vectors at each location as they are received at different times
      • originReplica

        public ReplicaId originReplica()
      • originSequenceNr

        public long originSequenceNr()
      • concurrent

        public boolean concurrent()
      • copy$default$1

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

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

        public boolean copy$default$4()
      • productPrefix

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

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

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

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

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

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

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

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