final class ReplicatorSettings extends AnyRef
- Alphabetic
- By Inheritance
- ReplicatorSettings
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ReplicatorSettings(role: Option[String], gossipInterval: FiniteDuration, notifySubscribersInterval: FiniteDuration, maxDeltaElements: Int, dispatcher: String, pruningInterval: FiniteDuration, maxPruningDissemination: FiniteDuration)
-
new
ReplicatorSettings(role: Option[String], gossipInterval: FiniteDuration, notifySubscribersInterval: FiniteDuration, maxDeltaElements: Int, dispatcher: String, pruningInterval: FiniteDuration, maxPruningDissemination: FiniteDuration, durableStoreProps: Either[(String, Config), Props], durableKeys: Set[String])
- role
Replicas are running on members tagged with this role. All members are used if undefined.
- gossipInterval
How often the Replicator should send out gossip information.
- notifySubscribersInterval
How often the subscribers will be notified of changes, if any.
- maxDeltaElements
Maximum number of entries to transfer in one gossip message when synchronizing the replicas. Next chunk will be transferred in next round of gossip.
- dispatcher
Id of the dispatcher to use for Replicator actors. If not specified (
""
) the default dispatcher is used.- pruningInterval
How often the Replicator checks for pruning of data associated with removed cluster nodes.
- maxPruningDissemination
How long time it takes (worst case) to spread the data to all other replica nodes. This is used when initiating and completing the pruning process of data associated with removed cluster nodes. The time measurement is stopped when any replica is unreachable, so it should be configured to worst case in a healthy cluster.
- durableStoreProps
Props for the durable store actor, the
Left
alternative is a tuple of fully qualified actor class name and the config constructor parameter of that class, theRight
alternative is theProps
of the actor.- durableKeys
Keys that are durable. Prefix matching is supported by using
*
at the end of a key. All entries can be made durable by including "*" in theSet
.
Value Members
- val dispatcher: String
- val durableKeys: Set[String]
- val durableStoreProps: Either[(String, Config), Props]
- val gossipInterval: FiniteDuration
- val maxDeltaElements: Int
- val maxPruningDissemination: FiniteDuration
- val notifySubscribersInterval: FiniteDuration
- val pruningInterval: FiniteDuration
- val role: Option[String]
- def withDispatcher(dispatcher: String): ReplicatorSettings
-
def
withDurableKeys(durableKeys: Set[String]): ReplicatorSettings
Java API
-
def
withDurableKeys(durableKeys: Set[String]): ReplicatorSettings
Scala API
- def withDurableStoreProps(durableStoreProps: Props): ReplicatorSettings
- def withGossipInterval(gossipInterval: FiniteDuration): ReplicatorSettings
- def withMaxDeltaElements(maxDeltaElements: Int): ReplicatorSettings
- def withNotifySubscribersInterval(notifySubscribersInterval: FiniteDuration): ReplicatorSettings
- def withPruning(pruningInterval: FiniteDuration, maxPruningDissemination: FiniteDuration): ReplicatorSettings
- def withRole(role: Option[String]): ReplicatorSettings
- def withRole(role: String): ReplicatorSettings