Interface RecoveryConfigurationBuilder<T>

All Superinterfaces:
ConfigurationBuilderBase<T>
All Known Subinterfaces:
ConfigurationBuilder, CustomConfigurationBuilder

public interface RecoveryConfigurationBuilder<T> extends ConfigurationBuilderBase<T>
Defines methods implemented by classes used to set recovery related configuration properties
  • Method Details

    • setInactivitySeconds

      T setInactivitySeconds(int inactivitySeconds)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setInactivitySecondsPrematch

      T setInactivitySecondsPrematch(int inactivitySeconds)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setMaxRecoveryTime

      T setMaxRecoveryTime(int timeInSeconds)
      Sets the maximum time in seconds in which recovery must be completed (minimum 600 seconds)
      Parameters:
      timeInSeconds - the value in seconds
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setMinIntervalBetweenRecoveryRequests

      T setMinIntervalBetweenRecoveryRequests(int intervalSeconds)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setHttpClientTimeout

      T setHttpClientTimeout(int httpClientTimeout)
      Sets the timeout which should be used on HTTP requests (seconds)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setHttpClientRecoveryTimeout

      T setHttpClientRecoveryTimeout(int httpClientRecoveryTimeout)
      Sets the timeout which should be used on HTTP requests for recovery endpoints (seconds)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setHttpClientFastFailingTimeout

      T setHttpClientFastFailingTimeout(int httpClientFastFailingTimeout)
      Sets the timeout which should be used on HTTP requests for fast failing endpoints (seconds)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setHttpClientMaxConnTotal

      T setHttpClientMaxConnTotal(int httpClientMaxConnTotal)
      Sets connection pool size for http client. Should be set to low value to avoid resource overuse. Default: 20
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setHttpClientMaxConnPerRoute

      T setHttpClientMaxConnPerRoute(int httpClientMaxConnPerRoute)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setSportEventCacheTimeout

      T setSportEventCacheTimeout(int timeoutInHours)
      Sets the timeout for cache items in SportEventCache (in hours)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setSportEventStatusCacheTimeout

      T setSportEventStatusCacheTimeout(int timeoutInMinutes)
      Sets the timeout for cache items in SportEventStatusCache (in minutes)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setProfileCacheTimeout

      T setProfileCacheTimeout(int timeoutInHours)
      Sets the timeout for cache items in ProfileCache (in hours)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setVariantMarketDescriptionCacheTimeout

      T setVariantMarketDescriptionCacheTimeout(int timeoutInHours)
      Sets the timeout for cache items in single variant market description cache (in hours)
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setIgnoreBetPalTimelineSportEventStatusCacheTimeout

      T setIgnoreBetPalTimelineSportEventStatusCacheTimeout(int timeoutInHours)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setIgnoreBetPalTimelineSportEventStatus

      T setIgnoreBetPalTimelineSportEventStatus(boolean ignore)
      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 RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • setRabbitConnectionTimeout

      T setRabbitConnectionTimeout(int timeoutInSeconds)
      Sets the rabbit timeout setting for connection attempts (in seconds)
      Parameters:
      timeoutInSeconds - the rabbit connection timeout
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setRabbitHeartbeat

      T setRabbitHeartbeat(int heartbeatInSeconds)
      Sets a heartbeat timeout to use when negotiating with the rabbit server (in seconds)
      Parameters:
      heartbeatInSeconds - a heartbeat timeout
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • setStatisticsInterval

      T setStatisticsInterval(int intervalInMinutes)
      Sets the interval for automatically collecting statistics (in minutes)
      Parameters:
      intervalInMinutes - the interval for automatically collecting statistics
      Returns:
      a ConfigurationBuilderBase derived instance used to set general configuration properties
    • omitMarketMappings

      T omitMarketMappings(boolean omit)
      Sets the value indicating whether to ignore market mappings when fetching market descriptions from API
      Parameters:
      omit - if set to true
      Returns:
      a RecoveryConfigurationBuilder derived instance used to set general configuration properties
    • enableUsageExport

      T enableUsageExport(boolean 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 RecoveryConfigurationBuilder derived instance used to set general configuration properties