Class ReplicationId
java.lang.Object
org.apache.pekko.persistence.typed.ReplicationId
param: 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 entities
param: entityId The unique entity id
param: replicaId The unique identity for this entity. The underlying persistence id will include the replica.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationIdentityId()static ReplicationIdfromString(String id) static booleantoString()typeName()withReplica(ReplicaId newReplica)
-
Constructor Details
-
ReplicationId
-
-
Method Details
-
fromString
-
isReplicationId
-
apply
- 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.
-
typeName
-
entityId
-
replicaId
-
persistenceId
-
toString
-
withReplica
-