Class MessageProcessorBase<T extends DigitalTwinBase>

  • Type Parameters:
    T - the type of the DigitalTwin
    Direct Known Subclasses:
    MessageProcessor

    public abstract class MessageProcessorBase<T extends DigitalTwinBase>
    extends java.lang.Object
    Base class for the MessageProcessor to help with typing.
    • Method Summary

      Modifier and Type Method Description
      abstract ProcessingResult processMessages​(ProcessingContext context, T twin, MessageFactory messageListFactory)
      Helper method to ensure proper typing for the user methods.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageProcessorBase

        public MessageProcessorBase()
        Default constructor.
    • Method Detail

      • processMessages

        public abstract ProcessingResult processMessages​(ProcessingContext context,
                                                         T twin,
                                                         MessageFactory messageListFactory)
                                                  throws java.lang.Exception
        Helper method to ensure proper typing for the user methods.
        Parameters:
        context - the processing context
        twin - the real-time digital twin instance
        messageListFactory - the message list factory
        Returns:
        the implementing class's processing result
        Throws:
        java.lang.Exception - if an exception occurs during processing