final class LeaseProvider extends Extension
- Source
- LeaseProvider.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- LeaseProvider
- Extension
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new LeaseProvider(system: ExtendedActorSystem)
Value Members
- def getLease(leaseName: String, configPath: String, ownerName: String): Lease
The configuration define at
configPath
must have a propertylease-class
that defines the fully qualified class name of the Lease implementation.The configuration define at
configPath
must have a propertylease-class
that defines the fully qualified class name of the Lease implementation. The class must implement and have constructor with akka.coordination.lease.LeaseSettings parameter and optionally ActorSystem parameter.- leaseName
the name of the lease resource
- configPath
the path of configuration for the lease
- ownerName
the owner that will
acquire
the lease, e.g. hostname and port of the ActorSystem