Class RaftCluster.TcpConfiguration
Represents configuration of the local cluster node that relies on TCP transport.
Inheritance
Implements
Inherited Members
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 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
| Edit this page View SourceConnectTimeout
Gets or sets TCP connection timeout, in milliseconds.
Declaration
public TimeSpan ConnectTimeout { get; set; }
  Property Value
| Type | Description | 
|---|---|
| TimeSpan | 
GracefulShutdownTimeout
Gets or sets timeout used for graceful shutdown 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 | 
|---|---|
| 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.