Show / Hide Table of Contents

Class RaftCluster.CustomTransportConfiguration

Provides configuration of cluster node whose communication is based on custom network transport.

Inheritance
object
RaftCluster.NodeConfiguration
RaftCluster.CustomTransportConfiguration
Implements
IClusterMemberConfiguration
Inherited Members
RaftCluster.NodeConfiguration.UseInMemoryConfigurationStorage()
RaftCluster.NodeConfiguration.PublicEndPoint
RaftCluster.NodeConfiguration.ConfigurationStorage
RaftCluster.NodeConfiguration.HeartbeatThreshold
RaftCluster.NodeConfiguration.LowerElectionTimeout
RaftCluster.NodeConfiguration.MemoryAllocator
RaftCluster.NodeConfiguration.Announcer
RaftCluster.NodeConfiguration.WarmupRounds
RaftCluster.NodeConfiguration.ColdStart
RaftCluster.NodeConfiguration.RequestTimeout
RaftCluster.NodeConfiguration.UpperElectionTimeout
RaftCluster.NodeConfiguration.LoggerFactory
RaftCluster.NodeConfiguration.Metadata
RaftCluster.NodeConfiguration.Standby
RaftCluster.NodeConfiguration.AggressiveLeaderStickiness
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
[CLSCompliant(false)]
public sealed class RaftCluster.CustomTransportConfiguration : RaftCluster.NodeConfiguration, IClusterMemberConfiguration

Constructors

View Source

CustomTransportConfiguration(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

localNodeHostAddress or serverConnFactory or clientConnFactory is null.

Properties

View Source

ConnectTimeout

Gets or sets TCP connection timeout, in milliseconds.

Declaration
public TimeSpan ConnectTimeout { get; set; }
Property Value
Type Description
TimeSpan
View Source

EndPointComparer

Gets or sets a comparer for EndPoint data type.

Declaration
public IEqualityComparer<EndPoint> EndPointComparer { get; init; }
Property Value
Type Description
IEqualityComparer<EndPoint>
View Source

HostEndPoint

Gets the address used for hosting local member.

Declaration
public override EndPoint HostEndPoint { get; }
Property Value
Type Description
EndPoint
Overrides
RaftCluster.NodeConfiguration.HostEndPoint

Implements

IClusterMemberConfiguration

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾