Uses of Class
io.vertx.mutiny.mqtt.MqttClient
Packages that use MqttClient
-
Uses of MqttClient in io.vertx.mutiny.mqtt
Fields in io.vertx.mutiny.mqtt with type parameters of type MqttClientMethods in io.vertx.mutiny.mqtt that return MqttClientModifier and TypeMethodDescriptionMqttClient.authenticationExchangeAndForget(io.vertx.mqtt.messages.codes.MqttAuthenticateReasonCode reasonCode, io.netty.handler.codec.mqtt.MqttProperties properties) Send an AUTH packet to the server.MqttClient.authenticationExchangeHandler(Consumer<MqttAuthenticationExchangeMessage> handler) Sets a handler that will be called when the server sends an AUTH packet (MQTT 5.0 Enhanced Authentication, see ยง3.15).MqttClient.closeHandler(Runnable closeHandler) Set a handler that will be called when the connection with server is closedMqttClient.connectAndForget(int port, String host) Connects to an MQTT server calling connectHandler after connectionMqttClient.connectAndForget(int port, String host, String serverName) Connects to an MQTT server calling connectHandler after connectionMqttClient.connectAndForget(int port, String host, String serverName, Map<String, String> userProperties) Connects to an MQTT server calling connectHandler after connectionstatic MqttClientReturn an MQTT client instance using the default optionsstatic MqttClientReturn an MQTT client instanceMqttClient.disconnectAndForget()Disconnects from the MQTT serverMqttClient.disconnectMessageHandler(Consumer<MqttDisconnectMessage> handler) Sets a handler that will be called when the server sends a DISCONNECT packet.MqttClient.exceptionHandler(Consumer<Throwable> handler) Set an exception handler for the client, that will be called when an error happens in internal netty structures.static MqttClientMqttClient.newInstance(io.vertx.mqtt.MqttClient delegate) Creates a new instance of theMqttClient.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 sendMqttClient.pingResponseHandler(Runnable pingResponseHandler) Sets handler which will be called after PINGRESP packet receivingMqttClient.publishAckMessageHandler(Consumer<MqttPubAckMessage> handler) Sets a handler which will be called each time a PUBACK is received from the server.MqttClient.publishAndForget(int id, 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 with a specific message IDMqttClient.publishAndForget(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 serverMqttClient.publishCompletionExpirationHandler(Consumer<Integer> publishCompletionExpirationHandler) Sets a handler which will be called when the client does not receive a PUBACK or PUBREC/PUBCOMP for a message published using QoS 1 or 2 respectively.MqttClient.publishCompletionHandler(Consumer<Integer> publishCompletionHandler) Sets a handler which will be called each time the publishing of a message has been completed.MqttClient.publishCompletionUnknownPacketIdHandler(Consumer<Integer> publishCompletionPhantomHandler) Sets a handler which will be called when the client receives a PUBACK/PUBREC/PUBCOMP with an unknown packet ID.MqttClient.publishCompMessageHandler(Consumer<MqttPubCompMessage> handler) Sets a handler which will be called each time a PUBCOMP is received from the server.MqttClient.publishHandler(Consumer<MqttPublishMessage> publishHandler) Sets handler which will be called each time server publish something to clientMqttClient.publishRecMessageHandler(Consumer<MqttPubRecMessage> handler) Sets a handler which will be called each time a PUBREC is received from the server.MqttClient.publishReleaseAndForget(int publishMessageId) Sends the PUBREL message to the remote MQTT server.MqttClient.subscribeAndForget(String topic, int qos) Subscribes to the topic with a specified QoS levelMqttClient.subscribeAndForget(Map<String, Integer> topics) Subscribes to the topics with related QoS levelsMqttClient.subscribeCompletionHandler(Consumer<MqttSubAckMessage> subscribeCompletionHandler) Sets handler which will be called after SUBACK packet receivingMqttClient.unsubscribeAndForget(String topic) Unsubscribe from receiving messages on given topicMqttClient.unsubscribeAndForget(List<String> topics) Unsubscribe from receiving messages on given list of topicMqttClient.unsubscribeCompletionHandler(Consumer<Integer> unsubscribeCompletionHandler) Sets handler which will be called after UNSUBACK packet receivingMqttClient.unsubscribeCompletionMessageHandler(Consumer<MqttUnsubAckMessage> unsubscribeCompletionMessageHandler) Sets handler which will be called after UNSUBACK packet receiving