=cls #17846 Use provided scope for the distributed-data dependency

This commit is contained in:
Patrik Nordwall 2015-08-21 09:53:53 +02:00
parent 0796c72d7e
commit 50d7b1553a
2 changed files with 8 additions and 1 deletions

View file

@ -110,6 +110,9 @@ final class ClusterShardingSettings(
val tuningParameters: ClusterShardingSettings.TuningParameters,
val coordinatorSingletonSettings: ClusterSingletonManagerSettings) extends NoSerializationVerificationNeeded {
require(stateStoreMode == "persistence" || stateStoreMode == "ddata",
s"Unknown 'state-store-mode' [$stateStoreMode], valid values are 'persistence' or 'ddata'")
def withRole(role: String): ClusterShardingSettings = copy(role = ClusterShardingSettings.roleOption(role))
def withRole(role: Option[String]): ClusterShardingSettings = copy(role = role)