public interface MaestroClient
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connect to the maestro broker
|
void |
disconnect()
Disconnects from the maestro broker
|
void |
publish(String topic,
MaestroNote note)
Publishes a message in the broker
|
void connect() throws MaestroConnectionException
MaestroConnectionException
- if unable to connect to the brokervoid disconnect() throws MaestroConnectionException
MaestroConnectionException
- if failed to disconnect cleanly (should be safe to ignore in most cases)void publish(String topic, MaestroNote note) throws MalformedNoteException, MaestroConnectionException
topic
- the topic to publish the messagenote
- the maestro note to publishMaestroConnectionException
- if failed to publish the messageMalformedNoteException
- in case of other I/O errorsThis documentation was released into the public domain.