Interface MessageProcessor<T extends LiveScoutEntityBase>
- Type Parameters:
- T- specifies the type of the messages processed by the- MessageProcessor
- All Known Implementing Classes:
- LiveScoutUserRequestManagerImpl,- MessagePipeline
public interface MessageProcessor<T extends LiveScoutEntityBase>
Represents a class capable of receiving an input message, processing it and passing in forward for further processing
- 
Method SummaryModifier and TypeMethodDescriptionintgetIndex()Gets the index of the currentMessageProcessorimplementation used to determine the correct order of message processors when there are multiple message processors processing the same message.voidprocessMessage(T message) Processes the passed message derived fromLiveScoutEntityBaseclass.voidsetListener(MessageProcessorListener<T> listener) Sets theMessageProcessorListenerinstance used to observe the currentMessageProcessor
- 
Method Details- 
getIndexint getIndex()Gets the index of the currentMessageProcessorimplementation used to determine the correct order of message processors when there are multiple message processors processing the same message.- Returns:
- the index of the current MessageProcessorimplementation
 
- 
processMessageProcesses the passed message derived fromLiveScoutEntityBaseclass.- Parameters:
- message- The- LiveScoutEntityBasederived class representing the message.
- Throws:
- IllegalArgumentException- the- messageis a null reference.
 
- 
setListenerSets theMessageProcessorListenerinstance used to observe the currentMessageProcessor- Parameters:
- listener- The- MessageProcessorListenerused to observe the processor.
 
 
-