Class JmsEventDispatcher

java.lang.Object
gda.events.jms.JmsClient
gda.events.jms.JmsEventDispatcher
All Implemented Interfaces:
gda.events.EventDispatcher, Closeable, AutoCloseable

public class JmsEventDispatcher extends JmsClient implements gda.events.EventDispatcher
An EventDispatcher that uses JMS to dispatch events. This class was significantly rewritten as part of DAQ-515
  • Constructor Details

    • JmsEventDispatcher

      public JmsEventDispatcher()
  • Method Details

    • publish

      public void publish(String sourceName, Object message)
      Dispatches a message.

      This actually queues the message to be sent and will return immediately.

      Specified by:
      publish in interface gda.events.EventDispatcher
      Parameters:
      sourceName - name of the source of the message
      message - the message
      Throws:
      IllegalArgumentException - if the sourceName is null, or the message object is not Serializable