public class MQTT3TopicRouter extends Object
Topics to a set of MQTT3MessageHandlers. Uses a MQTT3TopicMatcher to route
the received MQTT3Messages to the corresponding handlers.| Constructor and Description |
|---|
MQTT3TopicRouter(MQTT3TopicMatcher topicMatcher)
Returns a new instance of
MQTT3TopicRouter |
| Modifier and Type | Method and Description |
|---|---|
List<Topic> |
deregisterCallbackForTopics(List<Topic> topics,
MQTT3MessageHandler messageHandler)
Receives a list of topics and the message handler to be removed from the registry.
|
List<Topic> |
getDistinctTopicFilters() |
void |
handleMessageArrived(MQTT3Message mqttMessage)
Invokes each registered
MQTT3MessageHandler associated to a Topic
that matches the incoming MQTT3Message's destination topic. |
List<Topic> |
registerCallbackForTopics(List<Topic> topics,
MQTT3MessageHandler messageHandler)
Receives a list of topics and the message handler to be invoked when messages for those topics are received.
|
public MQTT3TopicRouter(MQTT3TopicMatcher topicMatcher)
MQTT3TopicRoutertopicMatcher - the MQTT3TopicMatcher to use to match incoming messages to the corresponding Topics.public List<Topic> registerCallbackForTopics(List<Topic> topics, MQTT3MessageHandler messageHandler)
public List<Topic> deregisterCallbackForTopics(List<Topic> topics, MQTT3MessageHandler messageHandler)
public List<Topic> getDistinctTopicFilters()
public void handleMessageArrived(MQTT3Message mqttMessage)
MQTT3MessageHandler associated to a Topic
that matches the incoming MQTT3Message's destination topic.mqttMessage - the incoming MQTT3MessageCopyright © 2025 MuleSoft, Inc.. All rights reserved.