Class OddsFeedRoutingKeyBuilder
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.OddsFeedRoutingKeyBuilder
An utility class that handles session routing key assignment
-
Method Summary
Modifier and TypeMethodDescriptiongenerateKeys(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 -> aListof routing keys for the associated session
-
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 -> aListof routing keys for the associated session- Parameters:
sessionsData- - aMapdescribing the feed sessionsoddsFeedConfiguration- - the associated feed SDK configuration instance- Returns:
- - a collection of session identifiers associated with a valid list of valid routing keys
-