Class ClusterSingletonSettings


  • public final class ClusterSingletonSettings
    extends java.lang.Object
    • Constructor Detail

      • ClusterSingletonSettings

        public ClusterSingletonSettings​(scala.Option<java.lang.String> role,
                                        scala.Option<java.lang.String> dataCenter,
                                        scala.concurrent.duration.FiniteDuration singletonIdentificationInterval,
                                        scala.concurrent.duration.FiniteDuration removalMargin,
                                        scala.concurrent.duration.FiniteDuration handOverRetryInterval,
                                        int bufferSize,
                                        scala.Option<LeaseUsageSettings> leaseSettings)
      • ClusterSingletonSettings

        public ClusterSingletonSettings​(scala.Option<java.lang.String> role,
                                        scala.Option<java.lang.String> dataCenter,
                                        scala.concurrent.duration.FiniteDuration singletonIdentificationInterval,
                                        scala.concurrent.duration.FiniteDuration removalMargin,
                                        scala.concurrent.duration.FiniteDuration handOverRetryInterval,
                                        int bufferSize)
        Deprecated.
        Use constructor with leaseSettings. Since 2.6.15.
    • Method Detail

      • role

        public scala.Option<java.lang.String> role()
      • dataCenter

        public scala.Option<java.lang.String> dataCenter()
        Deprecated.
        Use Akka Distributed Cluster instead. Since 2.10.0.
      • singletonIdentificationInterval

        public scala.concurrent.duration.FiniteDuration singletonIdentificationInterval()
      • removalMargin

        public scala.concurrent.duration.FiniteDuration removalMargin()
      • handOverRetryInterval

        public scala.concurrent.duration.FiniteDuration handOverRetryInterval()
      • bufferSize

        public int bufferSize()
      • withDataCenter

        public ClusterSingletonSettings withDataCenter​(java.lang.String dataCenter)
        Deprecated.
        Use Akka Distributed Cluster instead. Since 2.10.0.
      • withNoDataCenter

        public ClusterSingletonSettings withNoDataCenter()
        Deprecated.
        Use Akka Distributed Cluster instead. Since 2.10.0.
      • withRemovalMargin

        public ClusterSingletonSettings withRemovalMargin​(scala.concurrent.duration.FiniteDuration removalMargin)
      • withHandoverRetryInterval

        public ClusterSingletonSettings withHandoverRetryInterval​(scala.concurrent.duration.FiniteDuration handOverRetryInterval)
      • withHandoverRetryInterval

        public ClusterSingletonSettings withHandoverRetryInterval​(java.time.Duration handOverRetryInterval)
      • withLeaseSettings

        public ClusterSingletonSettings withLeaseSettings​(LeaseUsageSettings leaseSettings)
        Note that if you define a custom lease name and have several singletons each one must have a unique lease name. If the lease name is undefined it will be derived from ActorSystem name and singleton actor path, but that may result in too long lease names.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object