Class ElectionTimeoutExtensions
Represents extension methods for ElectionTimeout value type.
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public static class ElectionTimeoutExtensions
Methods
| Improve this Doc View SourceUpdate(ref ElectionTimeout, Nullable<Int32>, Nullable<Int32>)
Updates boundaries of the timeout.
Declaration
public static void Update(this ref ElectionTimeout timeout, int? lowerValue, int? upperValue)
Parameters
Type | Name | Description |
---|---|---|
ElectionTimeout | timeout | The election timeout to update. |
Nullable<Int32> | lowerValue | The lower possible value of leader election timeout, in milliseconds. |
Nullable<Int32> | upperValue | The upper possible value of leader election timeout, in milliseconds. |