use of org.eclipse.paho.client.mqttv3.MqttClient in project pinpoint by naver.
the class PahoMqttV3ClientIT method before.
@BeforeClass
public static void before() throws MqttException {
container.start();
mqttClient = new MqttAsyncClient(container.getBrokerUrl(), UUID.randomUUID().toString(), new MemoryPersistence());
IMqttToken token = mqttClient.connect();
token.waitForCompletion(WAIT_FOR_COMPLETION);
subscribe();
}
Aggregations