摘要: 这里使用了delayed 来实现延迟队列。 1. 定义函数接口 @FunctionalInterface public interface EventFunction { void apply(); } 这个是用于执行函数,Java自带的有 Consumer 和 Function 等其他,因为我这边 阅读全文
posted @ 2023-03-11 00:36 vitalq 阅读(168) 评论(0) 推荐(0) 编辑