Class MonitorMessageHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      MonitorMessageHandler()
      Creates a MonitorMessageHandler object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onMessage​(javax.jms.Message msg)
      Unpacks and calls accept() on the message object.
      void visit​(RegisterHostMessage msg)
      This method should be overridden and implemented by a sub class if message handling is wanted.
      • Methods inherited from class java.lang.Object

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

      • onMessage

        public void onMessage​(javax.jms.Message msg)
        Unpacks and calls accept() on the message object.

        This method catches all exceptions and logs them.

        Specified by:
        onMessage in interface javax.jms.MessageListener
        Parameters:
        msg - a ObjectMessage