| Constructor and Description |
|---|
ZookeeperLock(String lockName,
org.apache.curator.framework.CuratorFramework client) |
ZookeeperLock(String lockName,
String basePath,
org.apache.curator.framework.CuratorFramework client) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLimiterName()
该限制器的名字 方便定位哪一个限制器被应用
|
boolean |
lock(Object key) |
void |
unlock(Object key) |
Copyright © 2020. All rights reserved.