Class RaftCluster.CustomTransportConfiguration
Provides configuration of cluster node whose communication is based on custom network transport.
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
[CLSCompliant(false)]
public sealed class RaftCluster.CustomTransportConfiguration : RaftCluster.NodeConfiguration, IClusterMemberConfiguration
Constructors
| Edit this page View SourceCustomTransportConfiguration(EndPoint, IConnectionListenerFactory, IConnectionFactory)
Initializes a new custom transport settings.
Declaration
public CustomTransportConfiguration(EndPoint localNodeHostAddress, IConnectionListenerFactory serverConnFactory, IConnectionFactory clientConnFactory)
Parameters
Type | Name | Description |
---|---|---|
EndPoint | localNodeHostAddress | The address used to listen requests to the local node. |
IConnectionListenerFactory | serverConnFactory | The connection factory that is used to listen incoming connections. |
IConnectionFactory | clientConnFactory | The connection factory that is used to produce outbound connections. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Properties
| Edit this page View SourceConnectTimeout
Gets or sets TCP connection timeout, in milliseconds.
Declaration
public TimeSpan ConnectTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
EndPointComparer
Gets or sets a comparer for EndPoint data type.
Declaration
public IEqualityComparer<EndPoint> EndPointComparer { get; init; }
Property Value
Type | Description |
---|---|
IEqualityComparer<EndPoint> |
HostEndPoint
Gets the address used for hosting local member.
Declaration
public override EndPoint HostEndPoint { get; }
Property Value
Type | Description |
---|---|
EndPoint |