Package akka.coordination.lease.scaladsl
Class LeaseProvider
- java.lang.Object
- 
- akka.coordination.lease.scaladsl.LeaseProvider
 
- 
- 
Constructor SummaryConstructors Constructor Description LeaseProvider(ExtendedActorSystem system)
 - 
Method SummaryAll 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- 
LeaseProviderpublic LeaseProvider(ExtendedActorSystem system) 
 
- 
 - 
Method Detail- 
getpublic static LeaseProvider get(ActorSystem system) 
 - 
getpublic static LeaseProvider get(ClassicActorSystemProvider system) 
 - 
lookuppublic static LeaseProvider$ lookup() 
 - 
createExtensionpublic static LeaseProvider createExtension(ExtendedActorSystem system) 
 - 
applypublic static T apply(ActorSystem system) 
 - 
applypublic static T apply(ClassicActorSystemProvider system) 
 - 
hashCodepublic static final int hashCode() 
 - 
equalspublic static final boolean equals(java.lang.Object other) 
 - 
getLeasepublic 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 resource
- configPath- the path of configuration for the lease
- ownerName- the owner that will- acquirethe lease, e.g. hostname and port of the ActorSystem
 
 
- 
 
-