Package akka.coordination.lease.javadsl
Class LeaseProvider
- java.lang.Object
-
- akka.coordination.lease.javadsl.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 T
apply(ActorSystem system)
static T
apply(ClassicActorSystemProvider system)
static LeaseProvider
createExtension(ExtendedActorSystem system)
static boolean
equals(java.lang.Object other)
static LeaseProvider
get(ActorSystem system)
static LeaseProvider
get(ClassicActorSystemProvider system)
Lease
getLease(java.lang.String leaseName, java.lang.String configPath, java.lang.String ownerName)
The configuration define atconfigPath
must have a propertylease-class
that defines the fully qualified class name of the Lease implementation.static int
hashCode()
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 atconfigPath
must have a propertylease-class
that defines the fully qualified class name of the Lease implementation. The class must implementLease
and have constructor withLeaseSettings
parameter and optionally ActorSystem parameter.- Parameters:
leaseName
- the name of the lease resourceconfigPath
- the path of configuration for the leaseownerName
- the owner that willacquire
the lease, e.g. hostname and port of the ActorSystem
-
-