Class LeaseUsageSettings$


  • public class LeaseUsageSettings$
    extends java.lang.Object
    Note that if you define a custom lease name and have several Cluster Singletons or Cluster Sharding entity types each one must have a unique lease name. If the lease name is undefined it will be derived from ActorSystem name and other component names, but that may result in too long lease names.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static LeaseUsageSettings$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LeaseUsageSettings apply​(com.typesafe.config.Config config)
      Scala API: Load the settings from the given lease config block
      LeaseUsageSettings apply​(java.lang.String leaseImplementation, scala.concurrent.duration.FiniteDuration leaseRetryInterval)
      Scala API: Create lease settings with undefined lease name to trigger auto generated names when used with for example singleton or sharding
      LeaseUsageSettings apply​(java.lang.String leaseImplementation, scala.concurrent.duration.FiniteDuration leaseRetryInterval, java.lang.String leaseName)
      Scala API:
      LeaseUsageSettings create​(com.typesafe.config.Config config)
      Java API: Load the settings from the given lease config block
      LeaseUsageSettings create​(java.lang.String leaseImplementation, java.time.Duration leaseRetryInterval)
      Java API: Create lease settings with undefined lease name to trigger auto generated names when used with for example singleton or sharding
      LeaseUsageSettings create​(java.lang.String leaseImplementation, java.time.Duration leaseRetryInterval, java.lang.String leaseName)
      Java API:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final LeaseUsageSettings$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • LeaseUsageSettings$

        public LeaseUsageSettings$()
    • Method Detail

      • apply

        public LeaseUsageSettings apply​(com.typesafe.config.Config config)
        Scala API: Load the settings from the given lease config block
      • create

        public LeaseUsageSettings create​(com.typesafe.config.Config config)
        Java API: Load the settings from the given lease config block
      • apply

        public LeaseUsageSettings apply​(java.lang.String leaseImplementation,
                                        scala.concurrent.duration.FiniteDuration leaseRetryInterval)
        Scala API: Create lease settings with undefined lease name to trigger auto generated names when used with for example singleton or sharding
      • apply

        public LeaseUsageSettings apply​(java.lang.String leaseImplementation,
                                        scala.concurrent.duration.FiniteDuration leaseRetryInterval,
                                        java.lang.String leaseName)
        Scala API:

        Parameters:
        leaseName - Note that if you have several Cluster Singletons or Cluster Sharding entity types using lease each one must have a unique lease name
      • create

        public LeaseUsageSettings create​(java.lang.String leaseImplementation,
                                         java.time.Duration leaseRetryInterval)
        Java API: Create lease settings with undefined lease name to trigger auto generated names when used with for example singleton or sharding
      • create

        public LeaseUsageSettings create​(java.lang.String leaseImplementation,
                                         java.time.Duration leaseRetryInterval,
                                         java.lang.String leaseName)
        Java API:
        Parameters:
        leaseName - Note that if you have several Cluster Singletons or Cluster Sharding entity types using lease each one must have a unique lease name