public class CacheMessageProcessor extends Object implements FeedMessageProcessor
FeedMessageProcessor implementation which is used in the message processing pipeline| Constructor and Description |
|---|
CacheMessageProcessor(SportEventStatusCache sportEventStatusCache,
SportEventCache sportEventCache,
ProcessedFixtureChangesTracker processedFixtureChangesTracker,
SdkProducerManager producerManager)
Initializes a new
CacheMessageProcessor instance |
| Modifier and Type | Method and Description |
|---|---|
String |
getProcessorId()
Returns the processor identifier
|
void |
processMessage(UnmarshalledMessage message,
byte[] body,
RoutingKeyInfo routingKeyInfo,
MessageTimestamp timestamp)
Processes the provided message.
|
void |
setNextMessageProcessor(FeedMessageProcessor nextMessageProcessor)
Sets the next message processor that should be invoked after the message processing is finished
|
public CacheMessageProcessor(SportEventStatusCache sportEventStatusCache, SportEventCache sportEventCache, ProcessedFixtureChangesTracker processedFixtureChangesTracker, SdkProducerManager producerManager)
CacheMessageProcessor instancesportEventStatusCache - the SportEventStatusCache used by the associated SDK instancesportEventCache - the SportEventCache used by the associated SDK instanceprocessedFixtureChangesTracker - used to track processed fixture change messagesproducerManager - to get 'virtual' producers to ignore for fixture_change_fixture endpointpublic void processMessage(UnmarshalledMessage message, byte[] body, RoutingKeyInfo routingKeyInfo, MessageTimestamp timestamp)
nextMessageProcessor is defined, the instance will forward the
message to the nextMessageProcessorprocessMessage in interface FeedMessageProcessormessage - - the message that should be processedbody - - the raw body of the received messageroutingKeyInfo - - a RoutingKeyInfo instance describing the message routing keytimestamp - - all message timestampspublic String getProcessorId()
FeedMessageProcessorgetProcessorId in interface FeedMessageProcessorpublic void setNextMessageProcessor(FeedMessageProcessor nextMessageProcessor)
FeedMessageProcessorsetNextMessageProcessor in interface FeedMessageProcessornextMessageProcessor - - the FeedMessageProcessor implementation that should be
invoked after the message process is finishedCopyright © 2016–2025. All rights reserved.