Class TableBasedDistributedLockSettings
Inheritance
TableBasedDistributedLockSettings
Assembly: Silverback.Storage.Relational.dll
Syntax
public abstract record TableBasedDistributedLockSettings : DistributedLockSettings, IValidatableSettings, IEquatable<DistributedLockSettings>, IEquatable<TableBasedDistributedLockSettings>
Constructors
TableBasedDistributedLockSettings(TableBasedDistributedLockSettings)
Declaration
protected TableBasedDistributedLockSettings(TableBasedDistributedLockSettings original)
Parameters
TableBasedDistributedLockSettings(string)
Declaration
protected TableBasedDistributedLockSettings(string lockName)
Parameters
| Type |
Name |
Description |
| string |
lockName |
The name of the lock.
|
Properties
AcquireInterval
Gets the interval between two attempts to acquire the lock. The default is 1 second.
Declaration
public TimeSpan AcquireInterval { get; init; }
Property Value
EqualityContract
Declaration
protected override Type EqualityContract { get; }
Property Value
Overrides
HeartbeatInterval
Gets the interval between two heartbeat updates. The default is 500 milliseconds.
Declaration
public TimeSpan HeartbeatInterval { get; init; }
Property Value
LockTimeout
Gets the maximum duration between two heartbeat updates, after which the lock is considered lost. The default is 5 seconds.
Declaration
public TimeSpan LockTimeout { get; init; }
Property Value
Methods
Equals(DistributedLockSettings?)
Declaration
public override sealed bool Equals(DistributedLockSettings? other)
Parameters
Returns
Overrides
Equals(TableBasedDistributedLockSettings?)
Declaration
public virtual bool Equals(TableBasedDistributedLockSettings? other)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Validate()
Declaration
public override void Validate()
Overrides
Operators
operator ==(TableBasedDistributedLockSettings?, TableBasedDistributedLockSettings?)
Declaration
public static bool operator ==(TableBasedDistributedLockSettings? left, TableBasedDistributedLockSettings? right)
Parameters
Returns
operator !=(TableBasedDistributedLockSettings?, TableBasedDistributedLockSettings?)
Declaration
public static bool operator !=(TableBasedDistributedLockSettings? left, TableBasedDistributedLockSettings? right)
Parameters
Returns
Implements