Class FileBasedMessagingBroker
java.lang.Object
com.sap.cds.services.impl.messaging.file.FileBasedMessagingBroker
Implementation of the internal file based messaging service for local environment tests.
-
Constructor Summary
ConstructorsConstructorDescriptionFileBasedMessagingBroker(String name, File exchangeFile, boolean forceListening) -
Method Summary
Modifier and TypeMethodDescriptionvoidemitMessage(String topic, TopicMessageEventContext messageEventContext) Emits a new message to the file.voidregisterListener(MessagingBrokerQueueListener listener) voidstop()voidsubscribeTopic(String topic)
-
Constructor Details
-
FileBasedMessagingBroker
public FileBasedMessagingBroker(String name, File exchangeFile, boolean forceListening) throws IOException - Throws:
IOException
-
-
Method Details
-
emitMessage
Emits a new message to the file.- Parameters:
topic- the topic the message should be send tomessageEventContext- the TopicMessageEventContext containing the message that shall be send
-
registerListener
- Throws:
IOException
-
subscribeTopic
-
stop
public void stop()
-