Class LeaseUsageSettings


  • public final class LeaseUsageSettings
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LeaseUsageSettings​(java.lang.String leaseImplementation, scala.concurrent.duration.FiniteDuration leaseRetryInterval)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static LeaseUsageSettings apply​(com.typesafe.config.Config config)
      Scala API: Load the settings from the given lease config block
      static 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
      static LeaseUsageSettings apply​(java.lang.String leaseImplementation, scala.concurrent.duration.FiniteDuration leaseRetryInterval, java.lang.String leaseName)
      Scala API:
      static LeaseUsageSettings create​(com.typesafe.config.Config config)
      Java API: Load the settings from the given lease config block
      static 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
      static LeaseUsageSettings create​(java.lang.String leaseImplementation, java.time.Duration leaseRetryInterval, java.lang.String leaseName)
      Java API:
      java.time.Duration getLeaseRetryInterval()  
      java.lang.String leaseImplementation()  
      java.lang.String leaseName()  
      scala.concurrent.duration.FiniteDuration leaseRetryInterval()  
      java.lang.String toString()  
      LeaseUsageSettings withLeaseName​(java.lang.String name)
      Note that if you have several Cluster Singletons or Cluster Sharding entity types using lease each one must have a unique lease name
      LeaseUsageSettings withLeaseRetryInterval​(java.time.Duration leaseRetryInterval)
      Java API:
      LeaseUsageSettings withLeaseRetryInterval​(scala.concurrent.duration.FiniteDuration leaseRetryInterval)
      Scala API:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LeaseUsageSettings

        public LeaseUsageSettings​(java.lang.String leaseImplementation,
                                  scala.concurrent.duration.FiniteDuration leaseRetryInterval)
    • Method Detail

      • apply

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

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

        public static 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 static 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 static 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 static 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
      • leaseImplementation

        public java.lang.String leaseImplementation()
      • leaseRetryInterval

        public scala.concurrent.duration.FiniteDuration leaseRetryInterval()
      • leaseName

        public java.lang.String leaseName()
      • getLeaseRetryInterval

        public java.time.Duration getLeaseRetryInterval()
      • withLeaseName

        public LeaseUsageSettings withLeaseName​(java.lang.String name)
        Note that if you have several Cluster Singletons or Cluster Sharding entity types using lease each one must have a unique lease name
      • withLeaseRetryInterval

        public LeaseUsageSettings withLeaseRetryInterval​(scala.concurrent.duration.FiniteDuration leaseRetryInterval)
        Scala API:
      • withLeaseRetryInterval

        public LeaseUsageSettings withLeaseRetryInterval​(java.time.Duration leaseRetryInterval)
        Java API:
      • toString

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