Packages

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. Protected

Type Members

  1. final case class Changed[A <: ReplicatedData](key: Key[A])(data: A) extends SubscribeResponse[A] with Product with Serializable

    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 scaladsl.Replicator.Command
    Annotations
    @DoNotInherit()
  3. final case class DataDeleted[A <: ReplicatedData](key: Key[A]) extends DeleteResponse[A] with Product with Serializable
  4. final case class Delete[A <: ReplicatedData](key: Key[A], consistency: WriteConsistency, replyTo: ActorRef[DeleteResponse[A]]) extends Command with Product with Serializable

    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.

  5. final case class DeleteFailure[A <: ReplicatedData](key: Key[A]) extends DeleteResponse[A] with Product with Serializable
  6. sealed trait DeleteResponse[A <: ReplicatedData] extends AnyRef
  7. final case class DeleteSuccess[A <: ReplicatedData](key: Key[A]) extends DeleteResponse[A] with Product with Serializable
  8. final case class Deleted[A <: ReplicatedData](key: Key[A]) extends SubscribeResponse[A] with Product with Serializable

  9. final case class Get[A <: ReplicatedData](key: Key[A], consistency: ReadConsistency, replyTo: ActorRef[GetResponse[A]]) extends Command with Product with Serializable

    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.

  10. final case class GetDataDeleted[A <: ReplicatedData](key: Key[A]) extends GetResponse[A] with Product with Serializable

    The Get request couldn't be performed because the entry has been deleted.

  11. final case class GetFailure[A <: ReplicatedData](key: Key[A]) extends GetResponse[A] with Product with Serializable

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

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

    Get current number of replicas, including the local replica.

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

  13. sealed abstract class GetResponse[A <: ReplicatedData] extends AnyRef
    Annotations
    @DoNotInherit()
  14. final case class GetSuccess[A <: ReplicatedData](key: Key[A])(data: A) extends GetResponse[A] with Product with Serializable

    Reply from Get.

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

  15. final case class ModifyFailure[A <: ReplicatedData](key: Key[A], errorMessage: String, cause: Throwable) extends UpdateFailure[A] with Product with Serializable

    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.

  16. final case class NotFound[A <: ReplicatedData](key: Key[A]) extends GetResponse[A] with Product with Serializable
  17. final case class ReadAll(timeout: Duration) extends ReadConsistency with Product with Serializable
  18. sealed trait ReadConsistency extends AnyRef
  19. final case class ReadFrom(n: Int, timeout: Duration) extends ReadConsistency with Product with Serializable
  20. final case class ReadMajority(timeout: Duration, minCap: Int = DefaultMajorityMinCap) extends ReadConsistency with Product with Serializable
  21. final case class ReplicaCount(n: Int) extends Product with Serializable

    Current number of replicas.

    Current number of replicas. Reply to GetReplicaCount.

  22. final case class StoreFailure[A <: ReplicatedData](key: Key[A]) extends UpdateFailure[A] with DeleteResponse[A] with Product with Serializable

    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.

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

    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.

  24. sealed trait SubscribeResponse[A <: ReplicatedData] extends NoSerializationVerificationNeeded

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

    Unregister a subscriber.

    Unregister a subscriber.

    See also

    Replicator.Subscribe

  26. final case class Update[A <: ReplicatedData] extends Command with Product with Serializable

    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.

    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.

  27. final case class UpdateDataDeleted[A <: ReplicatedData](key: Key[A]) extends UpdateResponse[A] with Product with Serializable

    The Update couldn't be performed because the entry has been deleted.

  28. sealed abstract class UpdateFailure[A <: ReplicatedData] extends UpdateResponse[A]
    Annotations
    @DoNotInherit()
  29. sealed abstract class UpdateResponse[A <: ReplicatedData] extends AnyRef
    Annotations
    @DoNotInherit()
  30. final case class UpdateSuccess[A <: ReplicatedData](key: Key[A]) extends UpdateResponse[A] with DeadLetterSuppression with Product with Serializable
  31. final case class UpdateTimeout[A <: ReplicatedData](key: Key[A]) extends UpdateFailure[A] with Product with Serializable

    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.

  32. final case class WriteAll(timeout: Duration) extends WriteConsistency with Product with Serializable
  33. sealed trait WriteConsistency extends AnyRef
  34. final case class WriteMajority(timeout: Duration, minCap: Int = DefaultMajorityMinCap) extends WriteConsistency with Product with Serializable
  35. final case class WriteTo(n: Int, timeout: Duration) extends WriteConsistency with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def behavior(settings: ddata.ReplicatorSettings, underlyingReplicator: ActorRef): Behavior[Command]

    The Behavior for the Replicator actor.

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

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

    The Behavior for the Replicator actor.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def flushChanges: Command

    The FlushChanges instance.

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

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def readLocal: ReadConsistency

    The ReadLocal instance

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. def writeLocal: WriteConsistency

    The WriteLocal instance

  24. case object ReadLocal extends ReadConsistency with Product with Serializable
  25. object Update extends Serializable
  26. case object WriteLocal extends WriteConsistency with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped