t

akka.persistence.typed.scaladsl

ReplicationContext

trait ReplicationContext extends AnyRef

Provides access to replication specific state

Not for user extension

Annotations
@DoNotInherit()
Source
ReplicatedEventSourcing.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicationContext
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def allReplicas: Set[ReplicaId]

    returns

    The ids of all replicas of this replicated event sourced actor

  2. abstract def concurrent: Boolean

    Must only be called from the event handler

    Must only be called from the event handler

    returns

    true if this event happened concurrent with an event from another replica

  3. abstract def currentTimeMillis(): Long

    returns

    a timestamp that will always be increasing (is monotonic)

  4. abstract def origin: ReplicaId

    Must only be called from the event handler

    Must only be called from the event handler

    returns

    the replica id where the current event was persisted

  5. abstract def persistenceId: PersistenceId

    returns

    The unique id of this replica, including the replica id

  6. abstract def recoveryRunning: Boolean

    Must only be called from the event handler

    Must only be called from the event handler

    returns

    true when the event handler is invoked during recovery.

  7. abstract def replicationId: ReplicationId

Concrete Value Members

  1. def entityId: String

    returns

    The entity id of this replicated event sourced actor (not including the replica id)

  2. def replicaId: ReplicaId

    returns

    The replica id of this replicated event sourced actor