Class OddsFeedRoutingKeyBuilder

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

public class OddsFeedRoutingKeyBuilder extends Object
An utility class that handles session routing key assignment
  • Method Details

    • generateKeys

      public static Map<Integer,List<String>> generateKeys(Map<Integer,Map.Entry<MessageInterest,Set<Urn>>> sessionsData, SdkInternalConfiguration oddsFeedConfiguration)
      Builds a valid list of routing keys for the provided sessions k -> session identifier v -> a List of routing keys for the associated session
      Parameters:
      sessionsData - - a Map describing the feed sessions
      oddsFeedConfiguration - - the associated feed SDK configuration instance
      Returns:
      - a collection of session identifiers associated with a valid list of valid routing keys