java创建线程池
Queue workQueue = corePoolSize <= 0 ? new SynchronousQueue() : new LinkedBlockingQueue(1024);
ThreadFactory threadFactory = Executors.defaultThreadFactory();
RejectedExecutionHandler handler = (RejectedExecutionHandler)ObjectUtil.defaultIfNull(builder.handler, new AbortPolicy());
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(corePoolSize, maxPoolSize, keepAliveTime, TimeUnit.NANOSECONDS, (BlockingQueue)workQueue, threadFactory, handler);