| Package | Description |
|---|---|
| de.dentrassi.flow.component.mqtt | |
| de.dentrassi.flow.component.mqtt.internal.io.vertx.mqtt | |
| de.dentrassi.flow.component.mqtt.internal.io.vertx.mqtt.impl |
| Modifier and Type | Method and Description |
|---|---|
MqttClient |
MqttClient.getClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
MqttPublish.setClient(MqttClient client) |
| Modifier and Type | Method and Description |
|---|---|
MqttClient |
MqttClient.closeHandler(io.vertx.core.Handler<Void> closeHandler)
Set a handler that will be called when the connection with server is closed
|
MqttClient |
MqttClient.connect(int port,
String host,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.mqtt.messages.MqttConnAckMessage>> connectHandler)
Connects to an MQTT server calling connectHandler after connection
|
MqttClient |
MqttClient.connect(int port,
String host,
String serverName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.mqtt.messages.MqttConnAckMessage>> connectHandler)
Connects to an MQTT server calling connectHandler after connection
|
static MqttClient |
MqttClient.create(io.vertx.core.Vertx vertx)
Return an MQTT client instance using the default options
|
static MqttClient |
MqttClient.create(io.vertx.core.Vertx vertx,
io.vertx.mqtt.MqttClientOptions options)
Return an MQTT client instance
|
MqttClient |
MqttClient.disconnect()
Disconnects from the MQTT server
|
MqttClient |
MqttClient.disconnect(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> disconnectHandler)
Disconnects from the MQTT server calling disconnectHandler after
disconnection
|
MqttClient |
MqttClient.exceptionHandler(io.vertx.core.Handler<Throwable> handler)
Set an exception handler for the client, that will be called when an error
happens in internal netty structures.
|
MqttClient |
MqttClient.ping()
This method is needed by the client in order to avoid server closes the
connection due to the keep alive timeout if client has no messages to send
|
MqttClient |
MqttClient.pingResponseHandler(io.vertx.core.Handler<Void> pingResponseHandler)
Sets handler which will be called after PINGRESP packet receiving
|
MqttClient |
MqttClient.publish(String topic,
io.vertx.core.buffer.Buffer payload,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain)
Sends the PUBLISH message to the remote MQTT server
|
MqttClient |
MqttClient.publish(String topic,
io.vertx.core.buffer.Buffer payload,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> publishSentHandler)
Sends the PUBLISH message to the remote MQTT server
|
MqttClient |
MqttClient.publishCompletionHandler(io.vertx.core.Handler<Integer> publishCompletionHandler)
Sets handler which will be called each time publish is completed
|
MqttClient |
MqttClient.publishHandler(io.vertx.core.Handler<io.vertx.mqtt.messages.MqttPublishMessage> publishHandler)
Sets handler which will be called each time server publish something to
client
|
MqttClient |
MqttClient.subscribe(Map<String,Integer> topics)
Subscribes to the topics with related QoS levels
|
MqttClient |
MqttClient.subscribe(Map<String,Integer> topics,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> subscribeSentHandler)
Subscribes to the topic and adds a handler which will be called after the
request is sent
|
MqttClient |
MqttClient.subscribe(String topic,
int qos)
Subscribes to the topic with a specified QoS level
|
MqttClient |
MqttClient.subscribe(String topic,
int qos,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> subscribeSentHandler)
Subscribes to the topic with a specified QoS level
|
MqttClient |
MqttClient.subscribeCompletionHandler(io.vertx.core.Handler<io.vertx.mqtt.messages.MqttSubAckMessage> subscribeCompletionHandler)
Sets handler which will be called after SUBACK packet receiving
|
MqttClient |
MqttClient.unsubscribe(String topic)
Unsubscribe from receiving messages on given topic
|
MqttClient |
MqttClient.unsubscribe(String topic,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> unsubscribeSentHandler)
Unsubscribe from receiving messages on given topic
|
MqttClient |
MqttClient.unsubscribeCompletionHandler(io.vertx.core.Handler<Integer> unsubscribeCompletionHandler)
Sets handler which will be called after UNSUBACK packet receiving
|
| Modifier and Type | Class and Description |
|---|---|
class |
MqttClientImpl
MQTT client implementation
|
| Modifier and Type | Method and Description |
|---|---|
MqttClient |
MqttClientImpl.closeHandler(io.vertx.core.Handler<Void> closeHandler)
See
closeHandler(Handler) for more details |
MqttClient |
MqttClientImpl.connect(int port,
String host,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.mqtt.messages.MqttConnAckMessage>> connectHandler)
See
connect(int, String, Handler) for more details |
MqttClient |
MqttClientImpl.connect(int port,
String host,
String serverName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.mqtt.messages.MqttConnAckMessage>> connectHandler)
See
connect(int, String, String, Handler) for more details |
MqttClient |
MqttClientImpl.disconnect()
See
disconnect() for more details |
MqttClient |
MqttClientImpl.disconnect(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> disconnectHandler)
See
disconnect(Handler) for more details |
MqttClient |
MqttClientImpl.exceptionHandler(io.vertx.core.Handler<Throwable> handler)
See
exceptionHandler(Handler) for more details |
MqttClient |
MqttClientImpl.ping()
See
ping() for more details |
MqttClient |
MqttClientImpl.pingResponseHandler(io.vertx.core.Handler<Void> pingResponseHandler)
See
pingResponseHandler(Handler) for more details |
MqttClient |
MqttClientImpl.publish(String topic,
io.vertx.core.buffer.Buffer payload,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain)
See
publish(String, Buffer, MqttQoS, boolean, boolean) for
more details |
MqttClient |
MqttClientImpl.publish(String topic,
io.vertx.core.buffer.Buffer payload,
io.netty.handler.codec.mqtt.MqttQoS qosLevel,
boolean isDup,
boolean isRetain,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> publishSentHandler)
See
publish(String, Buffer, MqttQoS, boolean, boolean, Handler)
for more details |
MqttClient |
MqttClientImpl.publishCompletionHandler(io.vertx.core.Handler<Integer> publishCompletionHandler)
See
publishCompletionHandler(Handler) for more details |
MqttClient |
MqttClientImpl.publishHandler(io.vertx.core.Handler<io.vertx.mqtt.messages.MqttPublishMessage> publishHandler)
See
publishHandler(Handler) for more details |
MqttClient |
MqttClientImpl.subscribe(Map<String,Integer> topics)
See
subscribe(Map) for more details |
MqttClient |
MqttClientImpl.subscribe(Map<String,Integer> topics,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> subscribeSentHandler)
See
subscribe(Map, Handler) for more details |
MqttClient |
MqttClientImpl.subscribe(String topic,
int qos)
See
subscribe(String, int) for more details |
MqttClient |
MqttClientImpl.subscribe(String topic,
int qos,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> subscribeSentHandler)
See
subscribe(String, int, Handler) for more details |
MqttClient |
MqttClientImpl.subscribeCompletionHandler(io.vertx.core.Handler<io.vertx.mqtt.messages.MqttSubAckMessage> subscribeCompletionHandler)
See
subscribeCompletionHandler(Handler) for more details |
MqttClient |
MqttClientImpl.unsubscribe(String topic)
See
unsubscribe(String) )} for more details |
MqttClient |
MqttClientImpl.unsubscribe(String topic,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> unsubscribeSentHandler)
See
unsubscribe(String, Handler) )} for more details |
MqttClient |
MqttClientImpl.unsubscribeCompletionHandler(io.vertx.core.Handler<Integer> unsubscribeCompletionHandler)
See
unsubscribeCompletionHandler(Handler) for more details |
Copyright © 2017. All rights reserved.