Class LeaseSettings
The settings used for the Lease
Inherited Members
Namespace: Akka.Coordination
Assembly: Akka.Coordination.dll
Syntax
public sealed class LeaseSettings
Constructors
| Improve this Doc View SourceLeaseSettings(String, String, TimeoutSettings, Config)
Creates a new instance of the LeaseSettings.
Declaration
public LeaseSettings(string leaseName, string ownerName, TimeoutSettings timeoutSettings, Config leaseConfig)
Parameters
Type | Name | Description |
---|---|---|
String | leaseName | Lease name |
String | ownerName | Lease owner |
TimeoutSettings | timeoutSettings | Timeout settings |
Config | leaseConfig | Lease config |
Properties
| Improve this Doc View SourceLeaseConfig
Lease config
Declaration
public Config LeaseConfig { get; }
Property Value
Type | Description |
---|---|
Config |
LeaseName
Lease name
Declaration
public string LeaseName { get; }
Property Value
Type | Description |
---|---|
String |
OwnerName
Lease owner
Declaration
public string OwnerName { get; }
Property Value
Type | Description |
---|---|
String |
TimeoutSettings
Timeout settings
Declaration
public TimeoutSettings TimeoutSettings { get; }
Property Value
Type | Description |
---|---|
TimeoutSettings |
Methods
| Improve this Doc View SourceCreate(Config, String, String)
Creates a new LeaseSettings instance.
Declaration
public static LeaseSettings Create(Config config, string leaseName, string ownerName)
Parameters
Type | Name | Description |
---|---|---|
Config | config | Lease config |
String | leaseName | Lease name |
String | ownerName | Lease owner |
Returns
Type | Description |
---|---|
LeaseSettings | The requested settings. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
| Improve this Doc View SourceWithTimeoutSettings(TimeoutSettings)
Create a LeaseSettings with specified TimeoutSettings.
Declaration
public LeaseSettings WithTimeoutSettings(TimeoutSettings timeoutSettings)
Parameters
Type | Name | Description |
---|---|---|
TimeoutSettings | timeoutSettings | timeout settings |
Returns
Type | Description |
---|---|
LeaseSettings |