摘要: 漏桶算法的介绍网上一大堆,摘取如下: 漏桶算法的伪代码如下: public class LeakyBucket { // 当前桶的容量 当前累计的请求数 private int allWater; // 桶的阈值 private volatile AtomicInteger water; // 出水 阅读全文
posted @ 2022-05-12 07:49 蒙恬括 阅读(344) 评论(0) 推荐(0) 编辑