List of usage examples for io.netty.bootstrap Bootstrap config
BootstrapConfig config
To view the source code for io.netty.bootstrap Bootstrap config.
Click Source Link
From source file:com.linecorp.armeria.client.http.HttpClientDelegate.java
License:Apache License
HttpClientDelegate(Bootstrap baseBootstrap, SessionOptions options) { this.baseBootstrap = requireNonNull(baseBootstrap, "baseBootstrap"); this.options = requireNonNull(options, "options"); assert baseBootstrap.config().group() == null; }
From source file:com.linecorp.armeria.client.http.HttpSessionChannelFactory.java
License:Apache License
HttpSessionChannelFactory(Bootstrap bootstrap, SessionOptions options) { baseBootstrap = requireNonNull(bootstrap); eventLoop = (EventLoop) bootstrap.config().group(); bootstrapMap = Collections.synchronizedMap(new EnumMap<>(SessionProtocol.class)); this.options = options; }
From source file:com.linecorp.armeria.client.HttpRemoteInvoker.java
License:Apache License
HttpRemoteInvoker(Bootstrap baseBootstrap, RemoteInvokerOptions options) { this.baseBootstrap = requireNonNull(baseBootstrap, "baseBootstrap"); this.options = requireNonNull(options, "options"); assert baseBootstrap.config().group() == null; }
From source file:reactor.ipc.netty.resources.DefaultPoolResources.java
License:Open Source License
@Override public ChannelPool selectOrCreate(SocketAddress remote, Supplier<? extends Bootstrap> bootstrap) { SocketAddress address = remote; for (;;) {//ww w. ja va 2 s. c o m Pool pool = channelPools.get(remote); if (pool != null) { return pool; } //pool = new SimpleChannelPool(bootstrap); Bootstrap b = bootstrap.get(); if (remote != null) { b = b.remoteAddress(remote); } else { address = b.config().remoteAddress(); } if (log.isDebugEnabled()) { log.debug("New {} client pool for {}", name, address); } pool = new Pool(b, provider); if (channelPools.putIfAbsent(address, pool) == null) { return pool; } pool.close(); } }