Bootstrap bootstrap = new Bootstrap(); bootstrap.group(context.nettyEventLoop()); bootstrap.channelFactory(vertx.transport().channelFactory(remoteAddress.path() != null));
bootstrap.channelFactory(client.getVertx().transport().channelFactory(false));
CountDownLatch connectLatch = new CountDownLatch(1); Bootstrap bootstrap = new Bootstrap(); bootstrap.channelFactory(((VertxInternal)vertx).transport().channelFactory(false)); bootstrap.group(vertx.nettyEventLoopGroup()); bootstrap.resolver(((VertxInternal) vertx).nettyAddressResolverGroup());
Bootstrap bootstrap = new Bootstrap(); bootstrap.group(context.nettyEventLoop()); bootstrap.channelFactory(vertx.transport().channelFactory(remoteAddress.path() != null));
bootstrap.channelFactory(client.getVertx().transport().channelFactory(false));
CountDownLatch connectLatch = new CountDownLatch(1); Bootstrap bootstrap = new Bootstrap(); bootstrap.channelFactory(((VertxInternal)vertx).transport().channelFactory(false)); bootstrap.group(vertx.nettyEventLoopGroup()); bootstrap.resolver(((VertxInternal) vertx).nettyAddressResolverGroup());
@Override public ManagedChannel build() { // SSL if (options.isSsl()) { SSLHelper helper = new SSLHelper(options, options.getKeyCertOptions(), options.getTrustOptions()); helper.setApplicationProtocols(Collections.singletonList(HttpVersion.HTTP_2)); SslContext ctx = helper.getContext((VertxInternal) vertx); builder.sslContext(new DelegatingSslContext(ctx) { @Override protected void initEngine(SSLEngine engine) { helper.configureEngine(engine, null); } }); } Transport transport = ((VertxInternal) vertx).transport(); return builder .eventLoopGroup(context.nettyEventLoop()) .channelType(transport.channelFactory(false).newChannel().getClass()) // Ugly work around / perhaps contribute change to grpc .executor(command -> { if (Context.isOnEventLoopThread()) { context.executeFromIO(event -> command.run()); } else { command.run(); } }).build(); } }