Class ReplicatedEventMetadata$

  • All Implemented Interfaces:
    java.io.Serializable

    public class ReplicatedEventMetadata$
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • MODULE$

        public static final ReplicatedEventMetadata$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • ReplicatedEventMetadata$

        public ReplicatedEventMetadata$()
    • Method Detail

      • instanceForJournalTest

        public 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 ReplicatedEventMetadata apply​(ReplicaId originReplica,
                                             long originSequenceNr,
                                             VersionVector version,
                                             boolean concurrent)
        Parameters:
        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