public class QueFactory extends Object
线程工厂
static QueFactory
me
void
addTask(QueTask task)
shutdown()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static QueFactory me
public void addTask(QueTask task)
添加任务 注:如果线程池已关闭,会自动创建新的线程池
task
public void shutdown()
手动关闭线程池 注:线程池空闲一段时间后会自动关闭,无需手动关闭
Copyright © 2023. All rights reserved.