/** * Sends the CONNACK message to the remote MQTT client rejecting the connection * request with specified return code. See {@link io.vertx.rxjava.mqtt.MqttEndpoint#accept} for accepting connection * @param returnCode the connect return code * @return a reference to this, so the API can be used fluently */ public MqttEndpoint reject(MqttConnectReturnCode returnCode) { delegate.reject(returnCode); return this; }
/** * Sends the CONNACK message to the remote MQTT client rejecting the connection * request with specified return code. See {@link io.vertx.rxjava.mqtt.MqttEndpoint#accept} for accepting connection * @param returnCode the connect return code * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.mqtt.MqttEndpoint reject(MqttConnectReturnCode returnCode) { delegate.reject(returnCode); return this; }
/** * Sends the CONNACK message to the remote MQTT client rejecting the connection * request with specified return code. See {@link io.vertx.rxjava.mqtt.MqttEndpoint#accept} for accepting connection * @param returnCode the connect return code * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.mqtt.MqttEndpoint reject(MqttConnectReturnCode returnCode) { delegate.reject(returnCode); return this; }
MqttConnectReturnCode.CONNECTION_REFUSED_SERVER_UNAVAILABLE, sendAttempt.cause()); endpoint.reject(MqttConnectReturnCode.CONNECTION_REFUSED_SERVER_UNAVAILABLE); TracingHelper.logError(currentSpan, sendAttempt.cause()); endpoint.reject(code); currentSpan.log("connection rejected"); TracingHelper.logError(currentSpan, authenticationAttempt.cause());
MqttConnectReturnCode.CONNECTION_REFUSED_SERVER_UNAVAILABLE, sendAttempt.cause()); endpoint.reject(MqttConnectReturnCode.CONNECTION_REFUSED_SERVER_UNAVAILABLE); TracingHelper.logError(currentSpan, sendAttempt.cause()); endpoint.reject(code); currentSpan.log("connection rejected"); TracingHelper.logError(currentSpan, authenticationAttempt.cause());
endpoint.accept(false); } else { endpoint.reject(returnCode);
endpoint.accept(false); } else { endpoint.reject(returnCode);
endpoint.reject(MqttConnectReturnCode.CONNECTION_REFUSED_SERVER_UNAVAILABLE); }); server.listen(MqttServerOptions.DEFAULT_PORT, context.asyncAssertSuccess(v -> asyncServer.complete()));
endpoint.reject(MqttConnectReturnCode.CONNECTION_REFUSED_SERVER_UNAVAILABLE); }); server.listen(MqttServerOptions.DEFAULT_PORT, context.asyncAssertSuccess(v -> asyncServer.complete()));