Я уже смог выставить Vert.x EventBus через сокет относительно официальных документов:
https://vertx.io/docs/vertx-sockjs-service-proxy/java/
Цель состоит в том, чтобы взаимодействовать с NodeJS App. Для начальных тестов сообщения уже работают между обычными Verticals и Node App
Однако я вижу, что класс io.vertx.ext.web.handler.sock js .PermittedOptions уже устарел.
Это фрагмент
import io.vertx.ext.web.Router;
import io.vertx.ext.web.handler.sockjs.BridgeOptions;
import io.vertx.ext.web.handler.sockjs.PermittedOptions;
import io.vertx.ext.web.handler.sockjs.SockJSHandler;
.
.
.
Router router = Router.router(vertx);
BridgeOptions opts = new BridgeOptions()
.addInboundPermitted(new PermittedOptions().setAddress("nodetest"))
.addOutboundPermitted(new PermittedOptions().setAddress("nodetest"));
router.mountSubRouter("/eventbus", SockJSHandler.create(vertx).bridge(opts));
vertx.createHttpServer().requestHandler(router).listen(3000, res -> {
if (res.succeeded())
promise.complete();
else
promise.fail(res.cause());
});
.
.
.
¿Как правильно поступить?