Package akka.coordination.lease
Class LeaseUsageSettings
- java.lang.Object
-
- akka.coordination.lease.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 blockstatic 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 shardingstatic 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 blockstatic 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 shardingstatic 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 nameLeaseUsageSettings
withLeaseRetryInterval(java.time.Duration leaseRetryInterval)
Java API:LeaseUsageSettings
withLeaseRetryInterval(scala.concurrent.duration.FiniteDuration leaseRetryInterval)
Scala API:
-
-
-
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 classjava.lang.Object
-
-