public NettyWorkerPoolBuilder withName(String name) { setName(name); return this; }
public NettyWorkerPoolBuilder withNativeTransport(boolean nativeTransport) { setNativeTransport(nativeTransport); return this; }
public NettyWorkerPoolBuilder withPattern(String pattern) { setPattern(pattern); return this; }
workerGroup = new NettyWorkerPoolBuilder() .withNativeTransport(configuration.isNativeTransport()) .withWorkerCount(configuration.getWorkerCount()) .withName("NettyServerTCPWorker") .build(); wg = workerGroup;
public NettyWorkerPoolBuilder withWorkerCount(int workerCount) { setWorkerCount(workerCount); return this; }
workerGroup = new NettyWorkerPoolBuilder() .withNativeTransport(configuration.isNativeTransport()) .withWorkerCount(configuration.getWorkerCount()) .withName("NettyServerTCPWorker") .build(); wg = workerGroup;
if (wg == null) { workerGroup = new NettyWorkerPoolBuilder() .withNativeTransport(configuration.isNativeTransport()) .withWorkerCount(configuration.getWorkerCount()) .withName("NettyServerTCPWorker") .build(); wg = workerGroup;
workerGroup = new NettyWorkerPoolBuilder() .withNativeTransport(configuration.isNativeTransport()) .withWorkerCount(configuration.getWorkerCount()) .withName("NettyClientTCPWorker").build();