Class UofRabbitConfigurationImpl

java.lang.Object
com.sportradar.unifiedodds.sdk.internal.cfg.UofRabbitConfigurationImpl
All Implemented Interfaces:
UofRabbitConfiguration

public class UofRabbitConfigurationImpl extends Object implements UofRabbitConfiguration
  • Constructor Details

    • UofRabbitConfigurationImpl

      public UofRabbitConfigurationImpl()
  • Method Details

    • getHost

      public String getHost()
      Specified by:
      getHost in interface UofRabbitConfiguration
      Returns:
      Host / IP for connection as provided by Sportradar
    • getPort

      public int getPort()
      Description copied from interface: UofRabbitConfiguration
      Gets the port used to connect to AMQP broker
      Specified by:
      getPort in interface UofRabbitConfiguration
      Returns:
      the port used to connect to AMQP broker
    • getUseSsl

      public boolean getUseSsl()
      Description copied from interface: UofRabbitConfiguration
      Gets a value indicating whether SSL should be used when connecting to AMQP broker
      Specified by:
      getUseSsl in interface UofRabbitConfiguration
      Returns:
      a value indicating whether SSL should be used when connecting to AMQP broker
    • getUsername

      public String getUsername()
      Description copied from interface: UofRabbitConfiguration
      Returns the username of the broker to which you are currently connecting - this field should be null/blank if you are connecting to the Sportradar AMQP servers
      Specified by:
      getUsername in interface UofRabbitConfiguration
      Returns:
      the username of the broker to which you are connecting
    • getPassword

      public String getPassword()
      Description copied from interface: UofRabbitConfiguration
      Returns the password of the broker to which you are connecting - this field should be null/blank if you are connecting to the Sportradar AMQP servers
      Specified by:
      getPassword in interface UofRabbitConfiguration
      Returns:
      the password of the broker to which you are connecting
    • getVirtualHost

      public String getVirtualHost()
      Description copied from interface: UofRabbitConfiguration
      Returns the custom set messaging virtual host
      Specified by:
      getVirtualHost in interface UofRabbitConfiguration
      Returns:
      the custom messaging virtual host
    • getConnectionTimeout

      public Duration getConnectionTimeout()
      Description copied from interface: UofRabbitConfiguration
      Gets a rabbit timeout setting for connection attempts (in seconds) Between 10 and 120 (default 30s)
      Specified by:
      getConnectionTimeout in interface UofRabbitConfiguration
      Returns:
      a rabbit timeout setting for connection attempts (in seconds)
    • getHeartBeat

      public Duration getHeartBeat()
      Description copied from interface: UofRabbitConfiguration
      Gets a heartbeat timeout to use when negotiating with the server (in seconds) Between 10 and 180 (default 60s)
      Specified by:
      getHeartBeat in interface UofRabbitConfiguration
      Returns:
      a heartbeat timeout to use when negotiating with the server (in seconds)
    • setHost

      public void setHost(String messagingHost)
    • setPort

      public void setPort(int messagingPort)
    • useSsl

      public void useSsl(boolean messagingUseSsl)
    • setUsername

      public void setUsername(String messagingUsername)
    • setPassword

      public void setPassword(String messagingPassword)
    • setVirtualHost

      public void setVirtualHost(String messagingVirtualHost)
    • toString

      public String toString()
      Overrides:
      toString in class Object