摘要:
/** * 线程配置 */ public enum SystemMsgSendConfig { ; public static final int POOL_MAXIMUM_SIZE = 10; public static final int POOL_KEEP_ALIVE_TIME = 1; public static final int POOL_AW... 阅读全文
摘要:
private ExecutorService executorService; @PostConstruct public void init() { // 初始化线程池 executorService = Executors.newFixedThreadPool(5); } executorService... 阅读全文
摘要:
lambda表达式有个限制,那就是只能引用 final 或 final 局部变量,这就是说不能在lambda内部修改定义在域外的变量。 Compile time error : local variables referenced from a lambda expression must be f 阅读全文