Class LeaseProvider
java.lang.Object
org.apache.pekko.coordination.lease.scaladsl.LeaseProvider
- All Implemented Interfaces:
Extension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tapply(ActorSystem system) static Tapply(ClassicActorSystemProvider system) static LeaseProvidercreateExtension(ExtendedActorSystem system) static final booleanstatic LeaseProviderget(ActorSystem system) static LeaseProviderget(ClassicActorSystemProvider system) The configuration define atconfigPathmust have a propertylease-classthat defines the fully qualified class name of the Lease implementation.static final inthashCode()static LeaseProvider$lookup()
-
Constructor Details
-
LeaseProvider
-
-
Method Details
-
get
-
get
-
lookup
-
createExtension
-
apply
-
apply
-
hashCode
public static final int hashCode() -
equals
-
getLease
The configuration define atconfigPathmust have a propertylease-classthat defines the fully qualified class name of the Lease implementation. The class must implementLeaseand have constructor withpekko.coordination.lease.LeaseSettingsparameter and optionally ActorSystem parameter.- Parameters:
leaseName- the name of the lease resourceconfigPath- the path of configuration for the leaseownerName- the owner that willacquirethe lease, e.g. hostname and port of the ActorSystem
-