Show / Hide Table of Contents

Class RaftCluster.UdpConfiguration

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

Inheritance
Object
RaftCluster.NodeConfiguration
RaftCluster.UdpConfiguration
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 UdpConfiguration : RaftCluster.NodeConfiguration, IClusterMemberConfiguration

Constructors

| Improve this Doc View Source

UdpConfiguration(IPEndPoint)

Initializes a new UDP transport settings.

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

The address used to listen requests to the local node.

Properties

| Improve this Doc View Source

ClientBacklog

Gets or sets the maximum number of parallel requests that can be initiated by the client.

Declaration
public int ClientBacklog { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

DatagramSize

Gets or sets maximum datagram size, in bytes.

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

Make sure that datagram size matches to MTU if DontFragment is set; otherwise, UDP packets will be dropped. You can use MtuDiscovery to discover allowed MTU size in your network and avoid fragmentation of packets.

| Improve this Doc View Source

DontFragment

Indicates that the IP datagrams can be fragmented.

Declaration
public bool DontFragment { get; set; }
Property Value
Type Description
Boolean
Remarks

Default value is true.

See Also
DatagramSize
| Improve this Doc View Source

LocalEndPoint

Gets or sets local network interface to be used for receiving UDP packets by Raft cluster member clients.

Declaration
public IPEndPoint LocalEndPoint { get; set; }
Property Value
Type Description
IPEndPoint
Remarks

This endpoint is not used for initialization of server, only for clients. UDP is connectionless protocol and underlying implementation must know which interface should be used for receiving responses from server through UDP transport. By default, this property listens on all network interfaces and using randomly selected port. For most situations, it's redundant and unsafe.

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