public class FileBasedMessagingBroker extends Object
| Modifier and Type | Method and Description |
|---|---|
static FileBasedMessagingBroker |
connect(String name,
File exchangeFile)
Installs the file watcher of the specified file.
|
void |
emitMessage(String topic,
String message)
Emits a new message to the file.
|
void |
registerListener(MessagingBrokerQueueListener listener) |
void |
subscribeTopic(String topic) |
public static FileBasedMessagingBroker connect(String name, File exchangeFile) throws IOException
name - service nameexchangeFile - file to be used for the message exchangeIOException - in case, the service is already connected or the file watching initialization failspublic void emitMessage(String topic, String message)
topic - the topic the message should be send tomessage - the event message to be sentpublic void registerListener(MessagingBrokerQueueListener listener)
public void subscribeTopic(String topic)
Copyright © 2022. All rights reserved.