Class ReplicatedEventMetadata$

java.lang.Object
org.apache.pekko.persistence.typed.internal.ReplicatedEventMetadata$
All Implemented Interfaces:
Serializable

public class ReplicatedEventMetadata$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.persistence.typed.internal.ReplicatedEventMetadata
    apply(ReplicaId originReplica, long originSequenceNr, org.apache.pekko.persistence.typed.internal.VersionVector version, boolean concurrent)
     
    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
    scala.Option<scala.Tuple4<ReplicaId,Object,org.apache.pekko.persistence.typed.internal.VersionVector,Object>>
    unapply(org.apache.pekko.persistence.typed.internal.ReplicatedEventMetadata x$0)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

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

    • ReplicatedEventMetadata$

      public ReplicatedEventMetadata$()
  • Method Details

    • instanceForJournalTest

      public 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 org.apache.pekko.persistence.typed.internal.ReplicatedEventMetadata apply(ReplicaId originReplica, long originSequenceNr, org.apache.pekko.persistence.typed.internal.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
    • unapply

      public scala.Option<scala.Tuple4<ReplicaId,Object,org.apache.pekko.persistence.typed.internal.VersionVector,Object>> unapply(org.apache.pekko.persistence.typed.internal.ReplicatedEventMetadata x$0)