Show / Hide Table of Contents

Class RaftCluster.TcpConfiguration

Represents configuration of the local cluster node that relies on TCP transport.

Inheritance
object
RaftCluster.NodeConfiguration
RaftCluster.BuiltInTransportConfiguration
RaftCluster.TcpConfiguration
Implements
IClusterMemberConfiguration
Inherited Members
RaftCluster.BuiltInTransportConfiguration.HostEndPoint
RaftCluster.BuiltInTransportConfiguration.ServerBacklog
RaftCluster.BuiltInTransportConfiguration.TimeToLive
RaftCluster.NodeConfiguration.PublicEndPoint
RaftCluster.NodeConfiguration.ConfigurationStorage
RaftCluster.NodeConfiguration.UseInMemoryConfigurationStorage()
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.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class RaftCluster.TcpConfiguration : RaftCluster.BuiltInTransportConfiguration, IClusterMemberConfiguration

Constructors

| Edit this page View Source

TcpConfiguration(IPEndPoint)

Initializes a new UDP transport settings.

Declaration
public TcpConfiguration(IPEndPoint localNodeHostAddress)
Parameters
Type Name Description
IPEndPoint localNodeHostAddress

The address used to listen requests to the local node.

Properties

| Edit this page View Source

ConnectTimeout

Gets or sets TCP connection timeout, in milliseconds.

Declaration
public TimeSpan ConnectTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Edit this page View Source

GracefulShutdownTimeout

Gets or sets timeout used for graceful shutdown of the server.

Declaration
public TimeSpan GracefulShutdownTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Edit this page View Source

LingerOption

Gets configuration that specifies whether a TCP socket will delay its closing in an attempt to send all pending data.

Declaration
public LingerOption LingerOption { get; }
Property Value
Type Description
LingerOption
| Edit this page View Source

SslOptions

Gets or sets transport-level encryption options.

Declaration
public SslOptions? SslOptions { get; set; }
Property Value
Type Description
SslOptions

null to disable transport-level encryption.

| Edit this page View Source

TransmissionBlockSize

Gets or sets the size of logical block that can be transmitted to the remote host without requesting the next block.

Declaration
public int TransmissionBlockSize { get; set; }
Property Value
Type Description
int
Remarks

This property allows to reduce signal traffic between endpoints and affects performance of AppendEntriesAsync<TEntry, TList>(long, TList, long, long, long, IClusterConfiguration, bool, CancellationToken), InstallSnapshotAsync(long, IRaftLogEntry, long, CancellationToken) and GetMetadataAsync(bool, CancellationToken) methods. Ideally, the value must be equal to average size of single log entry.

Implements

IClusterMemberConfiguration

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾