Package akka.coordination.lease.scaladsl
Class LeaseProvider
- java.lang.Object
-
- akka.coordination.lease.scaladsl.LeaseProvider
-
-
Constructor Summary
Constructors Constructor Description LeaseProvider(ExtendedActorSystem system)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tapply(ActorSystem system)static Tapply(ClassicActorSystemProvider system)static LeaseProvidercreateExtension(ExtendedActorSystem system)static booleanequals(java.lang.Object other)static LeaseProviderget(ActorSystem system)static LeaseProviderget(ClassicActorSystemProvider system)LeasegetLease(java.lang.String leaseName, java.lang.String configPath, java.lang.String ownerName)The configuration define atconfigPathmust have a propertylease-classthat defines the fully qualified class name of the Lease implementation.static inthashCode()static LeaseProvider$lookup()
-
-
-
Constructor Detail
-
LeaseProvider
public LeaseProvider(ExtendedActorSystem system)
-
-
Method Detail
-
get
public static LeaseProvider get(ActorSystem system)
-
get
public static LeaseProvider get(ClassicActorSystemProvider system)
-
lookup
public static LeaseProvider$ lookup()
-
createExtension
public static LeaseProvider createExtension(ExtendedActorSystem system)
-
apply
public static T apply(ActorSystem system)
-
apply
public static T apply(ClassicActorSystemProvider system)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
getLease
public Lease getLease(java.lang.String leaseName, java.lang.String configPath, java.lang.String ownerName)
The configuration define atconfigPathmust have a propertylease-classthat defines the fully qualified class name of the Lease implementation. The class must implementLeaseand have constructor withLeaseSettingsparameter 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
-
-