public class RoutingKeyInfo extends Object
Constructor and Description |
---|
RoutingKeyInfo(String fullRoutingKey,
boolean systemRoutingKey)
Initializes a new
RoutingKeyInfo instance |
RoutingKeyInfo(String fullRoutingKey,
Urn sportId,
Urn eventId)
Initializes a new
RoutingKeyInfo instance |
Modifier and Type | Method and Description |
---|---|
Urn |
getEventId()
Returns the relating event
Urn identifier |
String |
getFullRoutingKey()
Returns the complete routing key of the current instance
|
Urn |
getSportId()
Returns the relating sport
Urn identifier |
boolean |
isSystemRoutingKey()
Indicates if the current instance is a system routing key(snapshot complete, producer ups,...)
|
String |
toString() |
public RoutingKeyInfo(String fullRoutingKey, Urn sportId, Urn eventId)
RoutingKeyInfo
instancefullRoutingKey
- - the complete broker routing keysportId
- - the relating sport identifiereventId
- - the relating event identifierpublic RoutingKeyInfo(String fullRoutingKey, boolean systemRoutingKey)
RoutingKeyInfo
instancefullRoutingKey
- - the full broker routing keysystemRoutingKey
- - indication if the current routing key is a system routing keypublic String getFullRoutingKey()
public Urn getSportId()
Urn
identifierUrn
identifier if available; otherwise nullpublic Urn getEventId()
Urn
identifierUrn
identifier if available; otherwise nullpublic boolean isSystemRoutingKey()
true
if the current instance represents a system routing key; otherwise false
Copyright © 2016–2025. All rights reserved.