public class BrokerUtils extends Object
| Constructor and Description |
|---|
BrokerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSubscription(String topic,
io.ballerina.messaging.broker.core.Consumer consumer)
Method to add a subscription to the broker operating in in-memory mode.
|
static void |
publish(String topic,
byte[] payload)
Method to publish to a topic in the broker operating in in-memory mode.
|
static void |
removeSubscription(io.ballerina.messaging.broker.core.Consumer consumer)
Method to remove a subscription to the broker operating in in-memory mode.
|
public static void addSubscription(String topic, io.ballerina.messaging.broker.core.Consumer consumer)
topic - the topic for which the subscription is registeredconsumer - the consumer to register for the subscriptionpublic static void removeSubscription(io.ballerina.messaging.broker.core.Consumer consumer)
consumer - the consumer representing the subscription to removepublic static void publish(String topic, byte[] payload)
topic - the topic for which the subscription is registeredpayload - the payload to publish (message content)Copyright © 2018 WSO2. All rights reserved.