Search in sources :

Example 1 with NetClientImpl

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);
}
Also used : VertxInternal(io.vertx.core.impl.VertxInternal) NetClientImpl(io.vertx.core.net.impl.NetClientImpl)

Example 2 with NetClientImpl

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;
}
Also used : NetClientImpl(io.vertx.core.net.impl.NetClientImpl)

Aggregations

NetClientImpl (io.vertx.core.net.impl.NetClientImpl)2 VertxInternal (io.vertx.core.impl.VertxInternal)1