摘要:
/** * 线程配置 */ 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... 阅读全文
posted @ 2018-05-14 16:32
wanhua.wu
阅读(164)
评论(0)
推荐(0)
摘要:
private ExecutorService executorService; @PostConstruct public void init() { // 初始化线程池 executorService = Executors.newFixedThreadPool(5); } executorService... 阅读全文
posted @ 2018-05-14 16:13
wanhua.wu
阅读(110)
评论(0)
推荐(0)
摘要:
lambda表达式有个限制,那就是只能引用 final 或 final 局部变量,这就是说不能在lambda内部修改定义在域外的变量。 Compile time error : local variables referenced from a lambda expression must be f 阅读全文
posted @ 2018-05-14 14:43
wanhua.wu
阅读(198)
评论(0)
推荐(0)

浙公网安备 33010602011771号