[Guava限流]RateLimiter使用
RateLimiter rateLimiter = RateLimiter.create(1); // TPS 1 Executor executor = Executors.newFixedThreadPool(10); for (int i = 0; true; i++) { executor.execute(() -> { if(rateLimiter.tryAcquire()) { System.out.println(Thr