public void oneMethod() {
KeyLock<String> lock = KeyLock.getLock("the key");
lock.lock(); // 支持Lock接口的所有方法
try {
// ...
} finally {
lock.unlock();
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
A key based lock, implement by ReentrantLock
License
houjie1212/key-lock
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A key based lock, implement by ReentrantLock
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published