Package akka.persistence.typed
Class ReplicationId$
- java.lang.Object
-
- akka.persistence.typed.ReplicationId$
-
public class ReplicationId$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ReplicationId$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ReplicationId$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplicationId
apply(java.lang.String typeName, java.lang.String entityId, ReplicaId replicaId)
ReplicationId
fromString(java.lang.String id)
boolean
isReplicationId(java.lang.String id)
-
-
-
Field Detail
-
MODULE$
public static final ReplicationId$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
fromString
public ReplicationId fromString(java.lang.String id)
-
isReplicationId
public boolean isReplicationId(java.lang.String id)
-
apply
public ReplicationId apply(java.lang.String typeName, java.lang.String entityId, ReplicaId replicaId)
- Parameters:
typeName
- The name of the entity type e.g. account, user. Made part of the persistence id so that entity ids don't need to be unique across different replicated entitiesentityId
- The unique entity idreplicaId
- The unique identity for this entity. The underlying persistence id will include the replica, unless the replicaId isReplicaId.empty
-
-