https://github.com/leodpen/please
PFS 之租约工具
https://github.com/leodpen/please
Last synced: about 1 year ago
JSON representation
PFS 之租约工具
- Host: GitHub
- URL: https://github.com/leodpen/please
- Owner: LEODPEN
- License: mit
- Created: 2021-02-21T15:05:42.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-28T06:30:27.000Z (over 5 years ago)
- Last Synced: 2025-01-30T04:17:45.038Z (over 1 year ago)
- Language: Java
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Please
PFS 之租约工具
> 当前只支持Zookeeper
## 使用
```yaml
please:
addresses: *.*.*.*:xxxx,*.*.*.*:xxxx
```
租约方法:
```java
@Please(key= "collectionId", waitTimeMs = 5000)
public void acquireLease(long collectionId) {
// TODO 写入文件
}
```