public interface MessagingLayer
| Modifier and Type | Method and Description |
|---|---|
void |
connect(MessagingAccessLayer accessLayer)
Connects a MessagingAccessLayer object on the buses by using its name as a
unique identifier.
|
void |
disconnect(MessagingAccessLayer accessLayer)
Remove the entry point to the buses for the given MessagingAccessLayer.
|
<T extends BusMessage> |
sendMessage(String senderAgent,
Bus bus,
T msg)
Sends a message on a bus for a given MessagingAccessLayer.
|
<T extends BusMessage> void sendMessage(String senderAgent, Bus bus, T msg)
T - the type of message sent on the bussenderAgent - provides the name as the origin of the messagebus - the bus on which to send the messagemsg - the messageRuntimeException - if the inner implementation fails sending the messagevoid connect(MessagingAccessLayer accessLayer) throws DuplicateAgentNameException, IOException
accessLayer - The layer to be connected on the busesDuplicateAgentNameException - if the name of MessagingAccessLayer is not unique on the busesIOExceptionvoid disconnect(MessagingAccessLayer accessLayer)
accessLayer - The layer to be connected on the busesCopyright © 2019 LSST. All rights reserved.