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.TcpConfiguration
Implements
IClusterMemberConfiguration
Inherited Members
RaftCluster.NodeConfiguration.Metrics
RaftCluster.NodeConfiguration.HostEndPoint
RaftCluster.NodeConfiguration.PublicEndPoint
RaftCluster.NodeConfiguration.Partitioning
RaftCluster.NodeConfiguration.HeartbeatThreshold
RaftCluster.NodeConfiguration.LowerElectionTimeout
RaftCluster.NodeConfiguration.MemoryAllocator
RaftCluster.NodeConfiguration.RequestTimeout
RaftCluster.NodeConfiguration.UpperElectionTimeout
RaftCluster.NodeConfiguration.PipeConfig
RaftCluster.NodeConfiguration.ServerBacklog
RaftCluster.NodeConfiguration.TimeToLive
RaftCluster.NodeConfiguration.LoggerFactory
RaftCluster.NodeConfiguration.IClusterMemberConfiguration.ElectionTimeout
RaftCluster.NodeConfiguration.Metadata
RaftCluster.NodeConfiguration.Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class TcpConfiguration : RaftCluster.NodeConfiguration, IClusterMemberConfiguration

Constructors

| Improve this Doc 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

| Improve this Doc View Source

GracefulShutdownTimeout

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

Declaration
public TimeSpan GracefulShutdownTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc 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
| Improve this Doc 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.

| Improve this Doc 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
Int32
Remarks

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

Implements

IClusterMemberConfiguration

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX