OutboundEventGateway¶
-
public interface
OutboundEventGateway
¶ Sends
MotechEvent
to the ActiveMQ broker, the implementation is generated by Spring Integration.
Methods¶
broadcastEventMessage¶
-
void
broadcastEventMessage
(MotechEvent motechEvent)¶ Broadcast the motechEvent’s message as a payload to the message channel defined in the Spring Integration configuration file. The channel is connected with a message topic, meaning all Motech instances will receive this event.
Parameters: - motechEvent – the event to be broadcast
sendEventMessage¶
-
void
sendEventMessage
(MotechEvent motechEvent)¶ Sends the motechEvent’s message as a payload to the message channel defined in the Spring Integration configuration file. The channel is connected with a message queue, meaning only one Motech instance will receive this event.
Parameters: - motechEvent – the event to be sent