Package akka.coordination.lease
Class LeaseUsageSettings$
- java.lang.Object
-
- akka.coordination.lease.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.
-
Constructor Summary
Constructors Constructor Description LeaseUsageSettings$()
-
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 blockLeaseUsageSettings
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 shardingLeaseUsageSettings
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 blockLeaseUsageSettings
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 shardingLeaseUsageSettings
create(java.lang.String leaseImplementation, java.time.Duration leaseRetryInterval, java.lang.String leaseName)
Java API:
-
-
-
Field Detail
-
MODULE$
public static final LeaseUsageSettings$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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
-
-