public final class MqttBrokerPublisher extends Object
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
The main method.
|
static void |
publish()
Publishes topics on connection.
|
static void |
startBroker()
Initializes
broker and starts it. |
static void |
startPublisher()
Initializes
connection . |
public static void startBroker() throws Exception
broker
and starts it.Exception
- if an exception during adding a connector occurspublic static void startPublisher() throws Exception
connection
.Exception
- if an exception during connecting to connector occurspublic static void publish() throws Exception
Exception
- if an exception during publishing occursCopyright © 2023 The Apache Software Foundation. All rights reserved.