public interface DistributedRedisLimiter
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
tryAcquire(String key,
String hashKey,
int permits)
在阈值范围内获取
|
boolean |
tryRelease(String key,
String hashKey)
释放
|
Copyright © 2020–2021. All rights reserved.