| 程序包 | 说明 |
|---|---|
| org.daijie.core.lock.redis |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AccessSpeedLimit.tryAccess(String key,
LimitRule limitRule)
针对资源key,每limitRule.seconds秒最多访问limitRule.limitCount,超过limitCount次返回false
超过lockCount 锁定lockTime
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.