Class ShardedDaemonProcessSettings


  • public final class ShardedDaemonProcessSettings
    extends java.lang.Object
    Not for user constructions, use factory methods to instanciate.
    • Constructor Detail

      • ShardedDaemonProcessSettings

        public ShardedDaemonProcessSettings​(scala.concurrent.duration.FiniteDuration keepAliveInterval,
                                            scala.Option<ClusterShardingSettings> shardingSettings)
    • Method Detail

      • fromConfig

        public static ShardedDaemonProcessSettings fromConfig​(com.typesafe.config.Config config)
        Load settings from a specific config location.
      • keepAliveInterval

        public scala.concurrent.duration.FiniteDuration keepAliveInterval()
      • withKeepAliveInterval

        public ShardedDaemonProcessSettings withKeepAliveInterval​(scala.concurrent.duration.FiniteDuration keepAliveInterval)
        Scala API: The interval each parent of the sharded set is pinged from each node in the cluster.

        Note: How the sharded set is kept alive may change in the future meaning this setting may go away.

      • withKeepAliveInterval

        public ShardedDaemonProcessSettings withKeepAliveInterval​(java.time.Duration keepAliveInterval)
        Java API: The interval each parent of the sharded set is pinged from each node in the cluster.

        Note: How the sharded set is kept alive may change in the future meaning this setting may go away.

      • withShardingSettings

        public ShardedDaemonProcessSettings withShardingSettings​(ClusterShardingSettings shardingSettings)
        Specify sharding settings that should be used for the sharded daemon process instead of loading from config. Some settings can not be changed (remember-entitites and related settings, passivation, number-of-shards), changing those settings will be ignored.