Class RaftCluster.TcpConfiguration
Represents configuration of the local cluster node that relies on TCP transport.
Implements
Inherited Members
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public sealed class TcpConfiguration : RaftCluster.NodeConfiguration, IClusterMemberConfiguration
Constructors
| Improve this Doc View SourceTcpConfiguration(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 SourceGracefulShutdownTimeout
Gets or sets timeout used for graceful shtudown of the server.
Declaration
public TimeSpan GracefulShutdownTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
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 |
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. |
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.