Interface FeedMessageProcessor
- All Known Subinterfaces:
CompositeFeedMessageProcessor
- All Known Implementing Classes:
CacheMessageProcessor,CompositeMessageProcessor,UofSessionImpl
public interface FeedMessageProcessor
Defines methods implemented by classes capable of processing feed messages
-
Method Summary
Modifier and TypeMethodDescriptionReturns the processor identifiervoidprocessMessage(UnmarshalledMessage message, byte[] body, RoutingKeyInfo routingKeyInfo, MessageTimestamp timestamp, Map<String, String> messageHeaders) Processes the provided message.voidsetNextMessageProcessor(FeedMessageProcessor nextMessageProcessor) Sets the next message processor that should be invoked after the message processing is finished
-
Method Details
-
getProcessorId
String getProcessorId()Returns the processor identifier- Returns:
- - the processor identifier
-
processMessage
void processMessage(UnmarshalledMessage message, byte[] body, RoutingKeyInfo routingKeyInfo, MessageTimestamp timestamp, Map<String, String> messageHeaders) Processes the provided message. If the next message processor is defined through thesetNextMessageProcessor(FeedMessageProcessor), the instance should forward the message to the defined next message processor after the processing is completed- Parameters:
message- - the message that should be processedbody- - the raw body of the received messageroutingKeyInfo- - aRoutingKeyInfoinstance describing the message routing keytimestamp- - all message timestamps
-
setNextMessageProcessor
Sets the next message processor that should be invoked after the message processing is finished- Parameters:
nextMessageProcessor- - theFeedMessageProcessorimplementation that should be invoked after the message process is finished
-