Class RuntimeConfiguration

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.RuntimeConfiguration

@Deprecated public final class RuntimeConfiguration extends Object
Deprecated.
use ConfigurationBuilder instead. Configuring these properties in runtime does not take effect.
Defines methods used to get or set various values for sdk operations Values must be set before creating Feed instance
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Duration
    Deprecated.
    Gets a timeout for HttpClient for fast api request (in seconds).
    static boolean
    Deprecated.
    Gets a value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer (default: false)
    static int
    Deprecated.
    Gets a rabbit timeout setting for connection attempts (in seconds) Between 10 and 120 (default 30s)
    static int
    Deprecated.
    Gets a heartbeat timeout to use when negotiating with the server (in seconds) Between 10 and 180 (default 60s)
    static void
    Deprecated.
    Sets the timeout for HttpClient for fast api request (in seconds).
    static void
    Deprecated.
    Sets the value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer
    static void
    Deprecated.
    Sets the rabbit timeout setting for connection attempts (in seconds) Between 10 and 120 (default 30s) - set before connection is made
    static void
    setRabbitHeartbeat(int heartbeat)
    Deprecated.
    Sets a heartbeat timeout to use when negotiating with the rabbit server (in seconds) Between 10 and 180 (default 60s) - set before connection is made

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RuntimeConfiguration

      public RuntimeConfiguration()
      Deprecated.
  • Method Details

    • getIgnoreBetPalTimelineSportEventStatus

      public static boolean getIgnoreBetPalTimelineSportEventStatus()
      Deprecated.
      Gets a value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer (default: false)
      Returns:
      true if sport event status from timeline endpoint should be ignored, otherwise false
    • getRabbitConnectionTimeout

      public static int getRabbitConnectionTimeout()
      Deprecated.
      Gets a rabbit timeout setting for connection attempts (in seconds) Between 10 and 120 (default 30s)
      Returns:
      a rabbit timeout setting for connection attempts (in seconds)
    • getRabbitHeartbeat

      public static int getRabbitHeartbeat()
      Deprecated.
      Gets a heartbeat timeout to use when negotiating with the server (in seconds) Between 10 and 180 (default 60s)
      Returns:
      a heartbeat timeout to use when negotiating with the server (in seconds)
    • getFastHttpClientTimeout

      public static Duration getFastHttpClientTimeout()
      Deprecated.
      Gets a timeout for HttpClient for fast api request (in seconds). Between 1 and 30 (default 5s). Used for summary, competitor profile, player profile and variant description endpoint. Must be set before feed instance is created.
      Returns:
      a timeout for HttpClient for fast api request (in seconds).
    • setIgnoreBetPalTimelineSportEventStatus

      public static void setIgnoreBetPalTimelineSportEventStatus(boolean ignore)
      Deprecated.
      Sets the value indicating whether to ignore sport event status from timeline endpoint for sport events on BetPal producer
      Parameters:
      ignore - ignore value
    • setRabbitConnectionTimeout

      public static void setRabbitConnectionTimeout(int timeout)
      Deprecated.
      Sets the rabbit timeout setting for connection attempts (in seconds) Between 10 and 120 (default 30s) - set before connection is made
      Parameters:
      timeout - the rabbit timeout setting for connection attempts (in seconds)
    • setRabbitHeartbeat

      public static void setRabbitHeartbeat(int heartbeat)
      Deprecated.
      Sets a heartbeat timeout to use when negotiating with the rabbit server (in seconds) Between 10 and 180 (default 60s) - set before connection is made
      Parameters:
      heartbeat - a heartbeat timeout to use when negotiating with the rabbit server (in seconds)
    • setFastHttpClientTimeout

      public static void setFastHttpClientTimeout(Duration timeout)
      Deprecated.
      Sets the timeout for HttpClient for fast api request (in seconds).
      Parameters:
      timeout - timeout value