}).publishReceivedHandler(messageId -> {
/** * Set the pubrec handler on the MQTT endpoint. This handler is called when a PUBREC * message is received by the remote MQTT client * @param handler the handler * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.mqtt.MqttEndpoint publishReceivedHandler(Handler<Integer> handler) { delegate.publishReceivedHandler(handler); return this; }
/** * Set the pubrec handler on the MQTT endpoint. This handler is called when a PUBREC * message is received by the remote MQTT client * @param handler the handler * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.mqtt.MqttEndpoint publishReceivedHandler(Handler<Integer> handler) { delegate.publishReceivedHandler(handler); return this; }
/** * Set the pubrec handler on the MQTT endpoint. This handler is called when a PUBREC * message is received by the remote MQTT client * @param handler the handler * @return a reference to this, so the API can be used fluently */ public MqttEndpoint publishReceivedHandler(Handler<Integer> handler) { delegate.publishReceivedHandler(handler); return this; }
/** * Setup handlers for MQTT endpoint */ private void setupMqttEndpoint() { this.mqttEndpoint .publishHandler(this::publishHandler) .publishAcknowledgeHandler(this::pubackHandler) .publishReleaseHandler(this::pubrelHandler) .publishReceivedHandler(this::pubrecHandler) .publishCompletionHandler(this::pubcompHandler) .subscribeHandler(this::subscribeHandler) .unsubscribeHandler(this::unsubscribeHandler) .disconnectHandler(this::disconnectHandler) .closeHandler(this::closeHandler); }
}).publishReceivedHandler(messageId -> {
}).publishReceivedHandler(messageId -> {