Class ReplicatedEntity$

java.lang.Object
org.apache.pekko.cluster.sharding.typed.ReplicatedEntity$

public class ReplicatedEntity$ extends Object
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
    Scala API: Defines the pekko.cluster.sharding.typed.scaladsl.Entity to use for a given replica, note that the behavior can be a behavior created with pekko.persistence.typed.scaladsl.ReplicatedEventSourcing or an arbitrary non persistent pekko.actor.typed.Behavior but must never be a regular pekko.persistence.typed.scaladsl.EventSourcedBehavior as that requires a single writer and that would cause it to have multiple writers.
    create(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
    Java API: Defines the pekko.cluster.sharding.typed.javadsl.Entity to use for a given replica, note that the behavior can be a pekko.persistence.typed.javadsl.ReplicatedEventSourcedBehavior or an arbitrary non persistent pekko.actor.typed.Behavior but must never be a regular pekko.persistence.typed.javadsl.EventSourcedBehavior as that requires a single writer and that would cause it to have multiple writers.

    Methods inherited from class java.lang.Object

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

    • MODULE$

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

    • ReplicatedEntity$

      public ReplicatedEntity$()
  • Method Details

    • create

      public <M> ReplicatedEntity<M> create(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
      Java API: Defines the pekko.cluster.sharding.typed.javadsl.Entity to use for a given replica, note that the behavior can be a pekko.persistence.typed.javadsl.ReplicatedEventSourcedBehavior or an arbitrary non persistent pekko.actor.typed.Behavior but must never be a regular pekko.persistence.typed.javadsl.EventSourcedBehavior as that requires a single writer and that would cause it to have multiple writers.
    • apply

      public <M> ReplicatedEntity<M> apply(ReplicaId replicaId, Entity<M,ShardingEnvelope<M>> entity)
      Scala API: Defines the pekko.cluster.sharding.typed.scaladsl.Entity to use for a given replica, note that the behavior can be a behavior created with pekko.persistence.typed.scaladsl.ReplicatedEventSourcing or an arbitrary non persistent pekko.actor.typed.Behavior but must never be a regular pekko.persistence.typed.scaladsl.EventSourcedBehavior as that requires a single writer and that would cause it to have multiple writers.