Class MessageProcessorBase<T extends DigitalTwinBase>
java.lang.Object
com.scaleoutsoftware.digitaltwin.core.MessageProcessorBase<T>
- Type Parameters:
T
- the type of the DigitalTwin
- Direct Known Subclasses:
MessageProcessor
Base class for the MessageProcessor to help with typing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ProcessingResult
processMessages
(ProcessingContext context, T twin, MessageFactory messageListFactory) Helper method to ensure proper typing for the user methods.
-
Constructor Details
-
MessageProcessorBase
public MessageProcessorBase()
-
-
Method Details
-
processMessages
public abstract ProcessingResult processMessages(ProcessingContext context, T twin, MessageFactory messageListFactory) throws Exception Helper method to ensure proper typing for the user methods.- Parameters:
context
- the processing contexttwin
- the real-time digital twin instancemessageListFactory
- the message list factory- Returns:
- the implementing class's processing result
- Throws:
Exception
- if an exception occurs during processing
-