Interface MessageProcessor<T extends LiveScoutEntityBase>
-
- Type Parameters:
T
- specifies the type of the messages processed by theMessageProcessor
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIndex()
Gets the index of the currentMessageProcessor
implementation used to determine the correct order of message processors when there are multiple message processors processing the same message.void
processMessage(T message)
Processes the passed message derived fromLiveScoutEntityBase
class.void
setListener(MessageProcessorListener<T> listener)
Sets theMessageProcessorListener
instance used to observe the currentMessageProcessor
-
-
-
Method Detail
-
getIndex
int getIndex()
Gets the index of the currentMessageProcessor
implementation 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
MessageProcessor
implementation
-
processMessage
void processMessage(T message)
Processes the passed message derived fromLiveScoutEntityBase
class.- Parameters:
message
- TheLiveScoutEntityBase
derived class representing the message.- Throws:
IllegalArgumentException
- themessage
is a null reference.
-
setListener
void setListener(MessageProcessorListener<T> listener)
Sets theMessageProcessorListener
instance used to observe the currentMessageProcessor
- Parameters:
listener
- TheMessageProcessorListener
used to observe the processor.
-
-