public class CacheMessageProcessor extends Object implements FeedMessageProcessor
FeedMessageProcessor
implementation which is used in the message processing pipelineConstructor 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 nextMessageProcessor
processMessage
in interface FeedMessageProcessor
message
- - 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()
FeedMessageProcessor
getProcessorId
in interface FeedMessageProcessor
public void setNextMessageProcessor(FeedMessageProcessor nextMessageProcessor)
FeedMessageProcessor
setNextMessageProcessor
in interface FeedMessageProcessor
nextMessageProcessor
- - the FeedMessageProcessor
implementation that should be
invoked after the message process is finishedCopyright © 2016–2025. All rights reserved.