线程池命名

public BroadcastClusterInvoker(Directory<T> directory) {
super(directory);

int poolSize = directory.getUrl().getParameter("broadCastPoolSize", 8);
paramCallPool = (ThreadPoolExecutor) Executors.newFixedThreadPool(poolSize,
new NamedThreadFactory("PARA-CALL-POOL", true));
}

猜你喜欢

转载自www.cnblogs.com/cococc/p/12148816.html
今日推荐