Table of Contents

Interface IRecoveryConfigurationBuilder<T>

Namespace
Sportradar.OddsFeed.SDK.Api.Config
Assembly
Sportradar.OddsFeed.SDK.dll

Defines a contract implemented by classes used to set recovery related configuration properties

public interface IRecoveryConfigurationBuilder<out T> : IConfigurationBuilderBase<T>

Type Parameters

T
Inherited Members

Methods

EnableUsageExport(bool)

Sets the value indicating whether sdk usage (metrics) can be exported

T EnableUsageExport(bool enableUsageExport)

Parameters

enableUsageExport bool

if set to true export is permitted, otherwise not

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

OmitMarketMappings(bool)

Sets the value indicating whether to ignore market mappings when fetching market descriptions from API

T OmitMarketMappings(bool omit)

Parameters

omit bool

if set to true omit, otherwise include market mapping data

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetHttpClientFastFailingTimeout(int)

Sets a timeout for HttpClient for fast api request (in seconds).

T SetHttpClientFastFailingTimeout(int httpClientFastFailingTimeout)

Parameters

httpClientFastFailingTimeout int

The timeout to be set (in seconds)

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

Remarks

Between 1 and 30 (default 5s) - set before connection is made.

SetHttpClientRecoveryTimeout(int)

Sets the timeout for recovery HTTP requests for this instance of the sdk

T SetHttpClientRecoveryTimeout(int httpClientRecoveryTimeout)

Parameters

httpClientRecoveryTimeout int

The timeout for recovery HTTP requests

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetHttpClientTimeout(int)

Sets the timeout for HTTP requests for this instance of the sdk

T SetHttpClientTimeout(int httpClientTimeout)

Parameters

httpClientTimeout int

The timeout for recovery HTTP requests

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetIgnoreBetPalTimelineSportEventStatus(bool)

Sets the value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer

T SetIgnoreBetPalTimelineSportEventStatus(bool ignore)

Parameters

ignore bool

if set to true ignore

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetIgnoreBetPalTimelineSportEventStatusCacheTimeout(int)

Sets the ignore BetPal timeline sport event status cache timeout. How long should the event id from BetPal be cached. SportEventStatus from timeline endpoint for these events are ignored.

T SetIgnoreBetPalTimelineSportEventStatusCacheTimeout(int timeoutInHours)

Parameters

timeoutInHours int

The timeout.

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetInactivitySeconds(int)

Sets the max time window between two consecutive alive messages before the associated producer is marked as down

T SetInactivitySeconds(int inactivitySeconds)

Parameters

inactivitySeconds int

the max time window between two consecutive alive messages

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetInactivitySecondsPrematch(int)

Sets the max time window between two consecutive alive messages before the associated producer is marked as down (for prematch producer)

T SetInactivitySecondsPrematch(int inactivitySecondsPrematch)

Parameters

inactivitySecondsPrematch int

the max time window between two consecutive alive messages

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetMaxConnectionsPerServer(int)

Sets the maximum number of concurrent connections (per server endpoint) allowed by an HttpClient object. (default: int.Max)

T SetMaxConnectionsPerServer(int maxConnectionsPerServer)

Parameters

maxConnectionsPerServer int

The new maximum number of concurrent connections (per server endpoint) allowed by an HttpClient object.

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetMaxRecoveryTime(int)

Sets the maximum time in seconds in which recovery must be completed (minimum 600 seconds)

T SetMaxRecoveryTime(int maxRecoveryTimeInSeconds)

Parameters

maxRecoveryTimeInSeconds int

Maximum recovery time in seconds

Returns

T

A IRecoveryConfigurationBuilder<T> instance used to set general configuration properties

SetMinIntervalBetweenRecoveryRequests(int)

Sets the minimal interval between recovery requests initiated by alive messages (between 20 and 180 seconds)

T SetMinIntervalBetweenRecoveryRequests(int minIntervalBetweenRecoveryRequests)

Parameters

minIntervalBetweenRecoveryRequests int

The minimal interval between recovery requests initiated by alive messages (seconds)

Returns

T

A IRecoveryConfigurationBuilder<T> instance used to set general configuration properties

SetProfileCacheTimeout(int)

Sets the profile cache timeout.

T SetProfileCacheTimeout(int timeoutInHours)

Parameters

timeoutInHours int

The timeout.

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetRabbitConnectionTimeout(int)

Sets the rabbit timeout setting for connection attempts (in seconds)

T SetRabbitConnectionTimeout(int rabbitConnectionTimeout)

Parameters

rabbitConnectionTimeout int

The rabbit timeout setting for connection attempts (in seconds)

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

Remarks

Between 10 and 120 (default 30s) - set before connection is made

SetRabbitHeartbeat(int)

Sets a heartbeat timeout to use when negotiating with the rabbit server (in seconds)

T SetRabbitHeartbeat(int heartbeatInSeconds)

Parameters

heartbeatInSeconds int

The heartbeat timeout to use when negotiating with the rabbit server (in seconds)

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

Remarks

Between 10 and 180 (default 60s) - set before connection is made

SetSportEventCacheTimeout(int)

Sets the timeout for cache items in SportEventCache (in hours)

T SetSportEventCacheTimeout(int timeoutInHours)

Parameters

timeoutInHours int

The timeout.

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

Remarks

Can be between 1 hour and 48 hours - default 12 hours (sliding expiration)

SetSportEventStatusCacheTimeout(int)

Sets the timeout for cache items in SportEventCacheStatus (in minutes)

T SetSportEventStatusCacheTimeout(int timeoutInMinutes)

Parameters

timeoutInMinutes int

The timeout.

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties

SetStatisticsInterval(int)

Sets the interval for automatically collecting statistics (in minutes)

T SetStatisticsInterval(int intervalInMinutes)

Parameters

intervalInMinutes int

The timeout for automatically collecting statistics (in minutes)

Returns

T

The IRecoveryConfigurationBuilder<T> instance used to set additional values

Remarks

Setting to 0 indicates it is disabled

SetVariantMarketDescriptionCacheTimeout(int)

Sets the timeout for cache items in variant market description cache (in hours)

T SetVariantMarketDescriptionCacheTimeout(int timeoutInHours)

Parameters

timeoutInHours int

The timeout.

Returns

T

A IRecoveryConfigurationBuilder<T> derived instance used to set general configuration properties