use of io.vertx.core.net.impl.NetClientImpl in project java-chassis by ServiceComb.
the class TcpClientVerticle method start.
@Override
public void start() throws Exception {
super.start();
clientConfig = (TcpClientConfig) config().getValue(CLIENT_OPTIONS);
// vertx.createNetClient()创建出来的netClient不支持跨线程调用
netClient = new NetClientImpl((VertxInternal) vertx, clientConfig, false);
}
use of io.vertx.core.net.impl.NetClientImpl in project vert.x by eclipse.
the class VertxImpl method createNetClient.
@Override
public NetClient createNetClient(NetClientOptions options, CloseFuture closeFuture) {
NetClientImpl client = new NetClientImpl(this, options, closeFuture);
closeFuture.add(client);
return client;
}
Aggregations