Class SdkConfigurationMessageDispatcher
- Namespace
- Sportradar.LiveData.Sdk.Services.SdkConfiguration.Sections
- Assembly
- Sportradar.LiveData.Sdk.dll
SDK configuration element where Message Dispatcher settings are specified.
public class SdkConfigurationMessageDispatcher : ConfigurationElement
- Inheritance
-
SdkConfigurationMessageDispatcher
- Inherited Members
Constructors
SdkConfigurationMessageDispatcher()
protected SdkConfigurationMessageDispatcher()
Properties
DispatcherThreadPingTimeout
If there is no alive ping received from any of the dispatcher threads in this timeout period, the dispatcher will update its health status to unresponsive. This can be caused by a client handler blocking the dispatcher thread execution.
[ConfigurationProperty("DispatcherThreadPingTimeout", IsRequired = false, DefaultValue = "00:00:05")]
[DynamicConfigItem]
[TypeConverter(typeof(TimeSpanConverter))]
[PositiveTimeSpanValidator]
public TimeSpan DispatcherThreadPingTimeout { get; protected set; }
Property Value
HealthCheckInterval
Interval at which dispatcher health status is checked (i.e. whether all dispatcher threads are live and kicking)
[ConfigurationProperty("HealthCheckInterval", IsRequired = false, DefaultValue = "00:00:01")]
[DynamicConfigItem]
[TypeConverter(typeof(TimeSpanConverter))]
[PositiveTimeSpanValidator]
public TimeSpan HealthCheckInterval { get; protected set; }
Property Value
MaxDispatchEventsPerSecond
Limits the rate at which events can be dispatched to client handlers.
[ConfigurationProperty("MaxDispatchEventsPerSecond", IsRequired = false, DefaultValue = 2147483647)]
[DynamicConfigItem]
[IntegerValidator(MinValue = 1)]
public int MaxDispatchEventsPerSecond { get; protected set; }
Property Value
NumDispatchers
Total number of message dispatcher threads
[ConfigurationProperty("NumDispatchers", IsRequired = false, DefaultValue = 3)]
[IntegerValidator(MinValue = 1, MaxValue = 64)]
public int NumDispatchers { get; protected set; }
Property Value
Methods
IsReadOnly()
Override of ConfigurationElement.IsReadOnly, always returns false.
public override bool IsReadOnly()
Returns
- bool
false