Class ReplicationId


  • public final class ReplicationId
    extends java.lang.Object
    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, unless the replicaId is ReplicaId.empty
    • Constructor Detail

      • ReplicationId

        public ReplicationId​(java.lang.String typeName,
                             java.lang.String entityId,
                             ReplicaId replicaId)
    • Method Detail

      • fromString

        public static ReplicationId fromString​(java.lang.String id)
      • isReplicationId

        public static boolean isReplicationId​(java.lang.String id)
      • apply

        public static 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 entities
        entityId - The unique entity id
        replicaId - The unique identity for this entity. The underlying persistence id will include the replica, unless the replicaId is ReplicaId.empty
      • typeName

        public java.lang.String typeName()
      • entityId

        public java.lang.String entityId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object