Class RoutingKeyInfo

java.lang.Object
com.sportradar.unifiedodds.sdk.extended.RoutingKeyInfo

public class RoutingKeyInfo extends Object
Representation of a broker routing key
  • Constructor Details

    • RoutingKeyInfo

      public RoutingKeyInfo(String fullRoutingKey, Urn sportId, Urn eventId)
      Initializes a new RoutingKeyInfo instance
      Parameters:
      fullRoutingKey - - the complete broker routing key
      sportId - - the relating sport identifier
      eventId - - the relating event identifier
    • RoutingKeyInfo

      public RoutingKeyInfo(String fullRoutingKey, boolean systemRoutingKey)
      Initializes a new RoutingKeyInfo instance
      Parameters:
      fullRoutingKey - - the full broker routing key
      systemRoutingKey - - indication if the current routing key is a system routing key
  • Method Details

    • getFullRoutingKey

      public String getFullRoutingKey()
      Returns the complete routing key of the current instance
      Returns:
      - the complete routing key of the current instance
    • getSportId

      public Urn getSportId()
      Returns the relating sport Urn identifier
      Returns:
      - the relating sport Urn identifier if available; otherwise null
    • getEventId

      public Urn getEventId()
      Returns the relating event Urn identifier
      Returns:
      - the relating event Urn identifier if available; otherwise null
    • isSystemRoutingKey

      public boolean isSystemRoutingKey()
      Indicates if the current instance is a system routing key(snapshot complete, producer ups,...)
      Returns:
      - true if the current instance represents a system routing key; otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object