Tabnine Logo
Transport.channelFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
channelFactory
method
in
io.vertx.core.net.impl.transport.Transport

Best Java code snippets using io.vertx.core.net.impl.transport.Transport.channelFactory (Showing top 7 results out of 315)

origin: eclipse-vertx/vert.x

Bootstrap bootstrap = new Bootstrap();
bootstrap.group(context.nettyEventLoop());
bootstrap.channelFactory(vertx.transport().channelFactory(remoteAddress.path() != null));
origin: eclipse-vertx/vert.x

bootstrap.channelFactory(client.getVertx().transport().channelFactory(false));
origin: eclipse-vertx/vert.x

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());
origin: io.vertx/vertx-core

Bootstrap bootstrap = new Bootstrap();
bootstrap.group(context.nettyEventLoop());
bootstrap.channelFactory(vertx.transport().channelFactory(remoteAddress.path() != null));
origin: io.vertx/vertx-core

bootstrap.channelFactory(client.getVertx().transport().channelFactory(false));
origin: io.vertx/vertx-core

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());
origin: io.vertx/vertx-grpc

 @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();
 }
}
io.vertx.core.net.impl.transportTransportchannelFactory

Popular methods of Transport

  • serverChannelFactory
  • isAvailable
  • nativeTransport
    The native transport, it may be null or failed.
  • configure
  • convert
  • datagramChannel
  • eventLoopGroup
  • transport

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Reference (javax.naming)
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now