Interface RecoveryConfigurationBuilder<T>
- All Superinterfaces:
ConfigurationBuilderBase<T>
- All Known Subinterfaces:
ConfigurationBuilder,CustomConfigurationBuilder
Defines methods implemented by classes used to set recovery related configuration properties
-
Method Summary
Modifier and TypeMethodDescriptionenableUsageExport(boolean enableUsageExport) Sets the value indicating whether sdk usage (metrics) can be exportedomitMarketMappings(boolean omit) Sets the value indicating whether to ignore market mappings when fetching market descriptions from APIsetHttpClientFastFailingTimeout(int httpClientFastFailingTimeout) Sets the timeout which should be used on HTTP requests for fast failing endpoints (seconds)setHttpClientMaxConnPerRoute(int httpClientMaxConnPerRoute) Sets maximum number of concurrent connections per route for http client.setHttpClientMaxConnTotal(int httpClientMaxConnTotal) Sets connection pool size for http client.setHttpClientRecoveryTimeout(int httpClientRecoveryTimeout) Sets the timeout which should be used on HTTP requests for recovery endpoints (seconds)setHttpClientTimeout(int httpClientTimeout) Sets the timeout which should be used on HTTP requests (seconds)setIgnoreBetPalTimelineSportEventStatus(boolean ignore) Sets the value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producersetIgnoreBetPalTimelineSportEventStatusCacheTimeout(int timeoutInHours) Sets the ignore BetPal timeline sport event status cache timeout.setInactivitySeconds(int inactivitySeconds) Sets the max time window between two consecutive alive messages before the associated producer is marked as downsetInactivitySecondsPrematch(int inactivitySeconds) Sets the max time window between two consecutive alive messages before the prematch producer is marked as downsetMaxRecoveryTime(int timeInSeconds) Sets the maximum time in seconds in which recovery must be completed (minimum 600 seconds)setMinIntervalBetweenRecoveryRequests(int intervalSeconds) Sets the minimal time between two successive recovery requests initiated by alive messages (minimum 20 seconds)setProfileCacheTimeout(int timeoutInHours) Sets the timeout for cache items in ProfileCache (in hours)setRabbitConnectionTimeout(int timeoutInSeconds) Sets the rabbit timeout setting for connection attempts (in seconds)setRabbitHeartbeat(int heartbeatInSeconds) Sets a heartbeat timeout to use when negotiating with the rabbit server (in seconds)setSportEventCacheTimeout(int timeoutInHours) Sets the timeout for cache items in SportEventCache (in hours)setSportEventStatusCacheTimeout(int timeoutInMinutes) Sets the timeout for cache items in SportEventStatusCache (in minutes)setStatisticsInterval(int intervalInMinutes) Sets the interval for automatically collecting statistics (in minutes)setVariantMarketDescriptionCacheTimeout(int timeoutInHours) Sets the timeout for cache items in single variant market description cache (in hours)Methods inherited from interface com.sportradar.unifiedodds.sdk.cfg.ConfigurationBuilderBase
build, loadConfigFromApplicationYml, loadConfigFromSdkProperties, setDefaultLanguage, setDesiredLanguages, setDisabledProducers, setExceptionHandlingStrategy, setNodeId
-
Method Details
-
setInactivitySeconds
Sets the max time window between two consecutive alive messages before the associated producer is marked as down- Parameters:
inactivitySeconds- the max time window between two consecutive alive messages- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setInactivitySecondsPrematch
Sets the max time window between two consecutive alive messages before the prematch producer is marked as down- Parameters:
inactivitySeconds- the max time window between two consecutive alive messages- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setMaxRecoveryTime
Sets the maximum time in seconds in which recovery must be completed (minimum 600 seconds)- Parameters:
timeInSeconds- the value in seconds- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setMinIntervalBetweenRecoveryRequests
Sets the minimal time between two successive recovery requests initiated by alive messages (minimum 20 seconds)- Parameters:
intervalSeconds- the minimal time between two successive recovery requests initiated by alive messages (default 30)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setHttpClientTimeout
Sets the timeout which should be used on HTTP requests (seconds)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setHttpClientRecoveryTimeout
Sets the timeout which should be used on HTTP requests for recovery endpoints (seconds)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setHttpClientFastFailingTimeout
Sets the timeout which should be used on HTTP requests for fast failing endpoints (seconds)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setHttpClientMaxConnTotal
Sets connection pool size for http client. Should be set to low value to avoid resource overuse. Default: 20- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setHttpClientMaxConnPerRoute
Sets maximum number of concurrent connections per route for http client. Should be set to low value to avoid resource overuse. Default: 15- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setSportEventCacheTimeout
Sets the timeout for cache items in SportEventCache (in hours)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setSportEventStatusCacheTimeout
Sets the timeout for cache items in SportEventStatusCache (in minutes)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setProfileCacheTimeout
Sets the timeout for cache items in ProfileCache (in hours)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setVariantMarketDescriptionCacheTimeout
Sets the timeout for cache items in single variant market description cache (in hours)- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setIgnoreBetPalTimelineSportEventStatusCacheTimeout
Sets the ignore BetPal timeline sport event status cache timeout. (in hours) How long should the event id from BetPal be cached. SportEventStatus from timeline endpoint for these events are ignored.- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setIgnoreBetPalTimelineSportEventStatus
Sets the value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer- Parameters:
ignore- if set to true ignore- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
setRabbitConnectionTimeout
Sets the rabbit timeout setting for connection attempts (in seconds)- Parameters:
timeoutInSeconds- the rabbit connection timeout- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setRabbitHeartbeat
Sets a heartbeat timeout to use when negotiating with the rabbit server (in seconds)- Parameters:
heartbeatInSeconds- a heartbeat timeout- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
setStatisticsInterval
Sets the interval for automatically collecting statistics (in minutes)- Parameters:
intervalInMinutes- the interval for automatically collecting statistics- Returns:
- a
ConfigurationBuilderBasederived instance used to set general configuration properties
-
omitMarketMappings
Sets the value indicating whether to ignore market mappings when fetching market descriptions from API- Parameters:
omit- if set to true- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-
enableUsageExport
Sets the value indicating whether sdk usage (metrics) can be exported- Parameters:
enableUsageExport- if set to true export is permitted, otherwise not- Returns:
- a
RecoveryConfigurationBuilderderived instance used to set general configuration properties
-