06 2022 档案

摘要:延迟任务的使用场景,以及延迟任务的 10 种实现方式: 手动无线循环; ScheduledExecutorService; DelayQueue; Redis zset 数据判断的方式; Redis 键空间通知的方式; Netty 提供的 HashedWheelTimer 工具类; RabbitMQ 阅读全文
posted @ 2022-06-13 18:08 二次元的程序猿 阅读(59) 评论(0) 推荐(0)
摘要:// 自动补零 code = String.format("%0" + numLength + "d", currentValue); numLength :总长度 currentValue :数值 阅读全文
posted @ 2022-06-10 13:47 二次元的程序猿 阅读(302) 评论(0) 推荐(0)