Class RoutingKeyInfo
java.lang.Object
com.sportradar.unifiedodds.sdk.extended.RoutingKeyInfo
Representation of a broker routing key
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingKeyInfo(String fullRoutingKey, boolean systemRoutingKey) Initializes a newRoutingKeyInfoinstanceRoutingKeyInfo(String fullRoutingKey, Urn sportId, Urn eventId) Initializes a newRoutingKeyInfoinstance -
Method Summary
-
Constructor Details
-
RoutingKeyInfo
Initializes a newRoutingKeyInfoinstance- Parameters:
fullRoutingKey- - the complete broker routing keysportId- - the relating sport identifiereventId- - the relating event identifier
-
RoutingKeyInfo
Initializes a newRoutingKeyInfoinstance- Parameters:
fullRoutingKey- - the full broker routing keysystemRoutingKey- - indication if the current routing key is a system routing key
-
-
Method Details
-
getFullRoutingKey
Returns the complete routing key of the current instance- Returns:
- - the complete routing key of the current instance
-
getSportId
Returns the relating sportUrnidentifier- Returns:
- - the relating sport
Urnidentifier if available; otherwise null
-
getEventId
Returns the relating eventUrnidentifier- Returns:
- - the relating event
Urnidentifier if available; otherwise null
-
isSystemRoutingKey
public boolean isSystemRoutingKey()Indicates if the current instance is a system routing key(snapshot complete, producer ups,...)- Returns:
- -
trueif the current instance represents a system routing key; otherwisefalse
-
toString
-