Object

akka.cluster.ddata.typed.scaladsl

Replicator

Related Doc: package scaladsl

Permalink

object Replicator

Source
Replicator.scala
See also

akka.cluster.ddata.Replicator.

Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Replicator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Changed[A <: ReplicatedData] = Replicator.Changed[A]

    Permalink

    The data value is retrieved with #get using the typed key.

    The data value is retrieved with #get using the typed key.

    See also

    Replicator.Subscribe

  2. trait Command extends AnyRef

    Permalink
  3. type DataDeleted[A <: ReplicatedData] = Replicator.DataDeleted[A]

    Permalink
  4. final case class Delete[A <: ReplicatedData](key: Key[A], consistency: WriteConsistency, replyTo: ActorRef[DeleteResponse[A]], request: Option[Any]) extends Command with NoSerializationVerificationNeeded with Product with Serializable

    Permalink

    Send this message to the local Replicator to delete a data value for the given key.

    Send this message to the local Replicator to delete a data value for the given key. The Replicator will reply with one of the DeleteResponse messages.

    The optional request context is included in the reply messages. This is a convenient way to pass contextual information (e.g. original sender) without having to use ask or maintain local correlation data structures.

  5. type DeleteResponse[A <: ReplicatedData] = Replicator.DeleteResponse[A]

    Permalink
  6. type DeleteSuccess[A <: ReplicatedData] = Replicator.DeleteSuccess[A]

    Permalink
  7. final case class Get[A <: ReplicatedData](key: Key[A], consistency: ReadConsistency, replyTo: ActorRef[GetResponse[A]], request: Option[Any] = None) extends Command with Product with Serializable

    Permalink

    Send this message to the local Replicator to retrieve a data value for the given key.

    Send this message to the local Replicator to retrieve a data value for the given key. The Replicator will reply with one of the GetResponse messages.

    The optional request context is included in the reply messages. This is a convenient way to pass contextual information (e.g. original sender) without having to use ask or maintain local correlation data structures.

  8. type GetFailure[A <: ReplicatedData] = Replicator.GetFailure[A]

    Permalink

    The Get request could not be fulfill according to the given consistency level and timeout.

  9. final case class GetReplicaCount(replyTo: ActorRef[ReplicaCount]) extends Command with Product with Serializable

    Permalink

    Get current number of replicas, including the local replica.

    Get current number of replicas, including the local replica. Will reply to sender with ReplicaCount.

  10. type GetResponse[A <: ReplicatedData] = Replicator.GetResponse[A]

    Permalink

    Reply from Get.

    Reply from Get. The data value is retrieved with #get using the typed key.

  11. type GetSuccess[A <: ReplicatedData] = Replicator.GetSuccess[A]

    Permalink
  12. type ModifyFailure[A <: ReplicatedData] = Replicator.ModifyFailure[A]

    Permalink

    If the modify function of the Update throws an exception the reply message will be this ModifyFailure message.

    If the modify function of the Update throws an exception the reply message will be this ModifyFailure message. The original exception is included as cause.

  13. type NotFound[A <: ReplicatedData] = Replicator.NotFound[A]

    Permalink
  14. type ReadAll = Replicator.ReadAll

    Permalink
  15. type ReadConsistency = Replicator.ReadConsistency

    Permalink
  16. type ReadFrom = Replicator.ReadFrom

    Permalink
  17. type ReadMajority = Replicator.ReadMajority

    Permalink
  18. type ReplicaCount = Replicator.ReplicaCount

    Permalink

    Current number of replicas.

    Current number of replicas. Reply to GetReplicaCount.

  19. type ReplicationDeleteFailure[A <: ReplicatedData] = Replicator.ReplicationDeleteFailure[A]

    Permalink
  20. type StoreFailure[A <: ReplicatedData] = Replicator.StoreFailure[A]

    Permalink

    The local store or direct replication of the Update could not be fulfill according to the given consistency level due to durable store errors.

    The local store or direct replication of the Update could not be fulfill according to the given consistency level due to durable store errors. This is only used for entries that have been configured to be durable.

    The Update was still performed in memory locally and possibly replicated to some nodes, but it might not have been written to durable storage. It will eventually be disseminated to other replicas, unless the local replica crashes before it has been able to communicate with other replicas.

  21. final case class Subscribe[A <: ReplicatedData](key: Key[A], subscriber: ActorRef[Changed[A]]) extends Command with Product with Serializable

    Permalink

    Register a subscriber that will be notified with a Changed message when the value of the given key is changed.

    Register a subscriber that will be notified with a Changed message when the value of the given key is changed. Current value is also sent as a Changed message to a new subscriber.

    Subscribers will be notified periodically with the configured notify-subscribers-interval, and it is also possible to send an explicit FlushChanges message to the Replicator to notify the subscribers immediately.

    The subscriber will automatically be unregistered if it is terminated.

    If the key is deleted the subscriber is notified with a Deleted message.

  22. final case class Unsubscribe[A <: ReplicatedData](key: Key[A], subscriber: ActorRef[Changed[A]]) extends Command with Product with Serializable

    Permalink

    Unregister a subscriber.

    Unregister a subscriber.

    See also

    Replicator.Subscribe

  23. final case class Update[A <: ReplicatedData](key: Key[A], writeConsistency: WriteConsistency, replyTo: ActorRef[UpdateResponse[A]], request: Option[Any])(modify: (Option[A]) ⇒ A) extends Command with NoSerializationVerificationNeeded with Product with Serializable

    Permalink

    Send this message to the local Replicator to update a data value for the given key.

    Send this message to the local Replicator to update a data value for the given key. The Replicator will reply with one of the UpdateResponse messages.

    Note that the companion object provides apply functions for convenient construction of this message.

    The current data value for the key is passed as parameter to the modify function. It is None if there is no value for the key, and otherwise Some(data). The function is supposed to return the new value of the data, which will then be replicated according to the given writeConsistency.

    The modify function is called by the Replicator actor and must therefore be a pure function that only uses the data parameter and stable fields from enclosing scope. It must for example not access sender() reference of an enclosing actor.

  24. type UpdateFailure[A <: ReplicatedData] = Replicator.UpdateFailure[A]

    Permalink
  25. type UpdateResponse[A <: ReplicatedData] = Replicator.UpdateResponse[A]

    Permalink
  26. type UpdateSuccess[A <: ReplicatedData] = Replicator.UpdateSuccess[A]

    Permalink
  27. type UpdateTimeout[A <: ReplicatedData] = Replicator.UpdateTimeout[A]

    Permalink

    The direct replication of the Update could not be fulfill according to the given consistency level and timeout.

    The direct replication of the Update could not be fulfill according to the given consistency level and timeout.

    The Update was still performed locally and possibly replicated to some nodes. It will eventually be disseminated to other replicas, unless the local replica crashes before it has been able to communicate with other replicas.

  28. type WriteAll = Replicator.WriteAll

    Permalink
  29. type WriteConsistency = Replicator.WriteConsistency

    Permalink
  30. type WriteMajority = Replicator.WriteMajority

    Permalink
  31. type WriteTo = Replicator.WriteTo

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Changed

    Permalink
  5. object Delete extends Serializable

    Permalink
  6. object FlushChanges extends Command

    Permalink

    Notify subscribers of changes now, otherwise they will be notified periodically with the configured notify-subscribers-interval.

  7. object Get extends Serializable

    Permalink
  8. object GetReplicaCount extends Serializable

    Permalink
  9. object GetSuccess

    Permalink
  10. val ReadLocal: Replicator.ReadLocal.type

    Permalink
  11. object Update extends Serializable

    Permalink
  12. val WriteLocal: Replicator.WriteLocal.type

    Permalink
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def behavior(settings: ReplicatorSettings, underlyingReplicator: ActorRef): Behavior[Command]

    Permalink

    The Behavior for the Replicator actor.

    The Behavior for the Replicator actor. It will use the given underlying akka.cluster.ddata.Replicator

  15. def behavior(settings: ReplicatorSettings): Behavior[Command]

    Permalink

    The Behavior for the Replicator actor.

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped