public class FeedMessageHelper extends Object
Constructor and Description |
---|
FeedMessageHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
generateFixtureChangeCacheKey(com.sportradar.uf.datamodel.UfFixtureChange fixtureChange)
Returns a built cache key for the provided
UfFixtureChange |
static String |
provideEventIdFromMessage(UnmarshalledMessage o)
Provides the id of the associated event if available, otherwise an explanation why
the eventId is not available get(ex: for a snapshot complete -> system message)
|
static long |
provideGenTimestampFromMessage(UnmarshalledMessage o)
Provides the message timestamp
|
static Long |
provideMessageGenTimestampFromMessage(UnmarshalledMessage o)
Provides the message generation timestamp,
the generation timestamp is extracted only from the betstop and oddschange message
|
static int |
provideProducerIdFromMessage(UnmarshalledMessage o)
Provides the id of the message producer
|
static Long |
provideRequestIdFromMessage(UnmarshalledMessage o)
Provides the request id of the message (if present)
|
public static int provideProducerIdFromMessage(UnmarshalledMessage o)
o
- - the message from which the producerId should be providedpublic static String generateFixtureChangeCacheKey(com.sportradar.uf.datamodel.UfFixtureChange fixtureChange)
UfFixtureChange
fixtureChange
- the object for which the key is neededUfFixtureChange
public static String provideEventIdFromMessage(UnmarshalledMessage o)
o
- - the message from which the eventIdd should be providedpublic static Long provideMessageGenTimestampFromMessage(UnmarshalledMessage o)
o
- the message from which the timestamp should be providedpublic static long provideGenTimestampFromMessage(UnmarshalledMessage o)
o
- the message from which the timestamp should be providedpublic static Long provideRequestIdFromMessage(UnmarshalledMessage o)
o
- - the message from which the requestId should be providedCopyright © 2016–2025. All rights reserved.