Package gda.events.jms
Class JmsEventDispatcher
java.lang.Object
gda.events.jms.JmsClient
gda.events.jms.JmsEventDispatcher
- All Implemented Interfaces:
gda.events.EventDispatcher,Closeable,AutoCloseable
An
EventDispatcher that uses JMS to dispatch events. This class was significantly rewritten as part of DAQ-515-
Field Summary
Fields inherited from class gda.events.jms.JmsClient
session, TOPIC_PREFIX -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JmsEventDispatcher
public JmsEventDispatcher()
-
-
Method Details
-
publish
Dispatches a message.This actually queues the message to be sent and will return immediately.
- Specified by:
publishin interfacegda.events.EventDispatcher- Parameters:
sourceName- name of the source of the messagemessage- the message- Throws:
IllegalArgumentException- if the sourceName is null, or the message object is notSerializable
-