Class UofCacheConfigurationImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.cfg.UofCacheConfigurationImpl
All Implemented Interfaces:
UofCacheConfiguration

public class UofCacheConfigurationImpl extends Object implements UofCacheConfiguration
  • Method Details

    • getSportEventCacheTimeout

      public Duration getSportEventCacheTimeout()
      Description copied from interface: UofCacheConfiguration
      Gets the sport event cache timeout - how long cache items are cached Can be between 1 hour and 48 hours - default 12 hours (sliding expiration)
      Specified by:
      getSportEventCacheTimeout in interface UofCacheConfiguration
      Returns:
      the sport event cache timeout
    • getSportEventStatusCacheTimeout

      public Duration getSportEventStatusCacheTimeout()
      Description copied from interface: UofCacheConfiguration
      Gets the sport event status cache timeout - how long status is cached Can be between 1 min and 60 min - default 5 min (absolute expiration)
      Specified by:
      getSportEventStatusCacheTimeout in interface UofCacheConfiguration
      Returns:
      the sport event status cache timeout
    • getProfileCacheTimeout

      public Duration getProfileCacheTimeout()
      Description copied from interface: UofCacheConfiguration
      Gets the competitor/player cache timeout - how long cache item is cached Can be between 1 hour and 48 hours - default 24 hours (sliding expiration)
      Specified by:
      getProfileCacheTimeout in interface UofCacheConfiguration
      Returns:
      the competitor/player cache timeout
    • getVariantMarketDescriptionCacheTimeout

      public Duration getVariantMarketDescriptionCacheTimeout()
      Description copied from interface: UofCacheConfiguration
      Gets the variant market description cache timeout - how long cache item is cached Can be between 1 hour and 24 hours - default 3 hours (sliding expiration)
      Specified by:
      getVariantMarketDescriptionCacheTimeout in interface UofCacheConfiguration
      Returns:
      the variant market description cache timeout
    • getIgnoreBetPalTimelineSportEventStatusCacheTimeout

      public Duration getIgnoreBetPalTimelineSportEventStatusCacheTimeout()
      Description copied from interface: UofCacheConfiguration
      Gets the ignore BetPal timeline sport event status cache timeout - how long cache item is cached. How long should the event id from BetPal producer be cached. SportEventStatus from timeline endpoint for these events are ignored. Can be between 1 hour and 24 hours - default 3 hours (sliding expiration)
      Specified by:
      getIgnoreBetPalTimelineSportEventStatusCacheTimeout in interface UofCacheConfiguration
      Returns:
      the ignore BetPal timeline sport event status timeout
    • getIgnoreBetPalTimelineSportEventStatus

      public boolean getIgnoreBetPalTimelineSportEventStatus()
      Description copied from interface: UofCacheConfiguration
      Gets a value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer (default: false)
      Specified by:
      getIgnoreBetPalTimelineSportEventStatus in interface UofCacheConfiguration
      Returns:
      true if sport event status from timeline endpoint should be ignored, otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object