关于ali代码规约创建线程池的推荐
2019-05-17 本文已影响0人
安以北往南
RESULT_SERVICE = new ScheduledThreadPoolExecutor(1,new BasicThreadFactory.Builder()
.namingPattern("example-schedule-pool-%d").daemon(true).build());
RESULT_SERVICE = new ScheduledThreadPoolExecutor(1,new BasicThreadFactory.Builder()
.namingPattern("example-schedule-pool-%d").daemon(true).build());