public class JbootLocalLock extends Object implements JbootLock
| 限定符和类型 | 字段和说明 |
|---|---|
private ReentrantLock |
lock |
private static Map<String,ReentrantLock> |
LOCKS |
| 构造器和说明 |
|---|
JbootLocalLock(String name) |
private static Map<String,ReentrantLock> LOCKS
private ReentrantLock lock
public JbootLocalLock(String name)
public void lockInterruptibly() throws InterruptedException
lockInterruptibly 在接口中 LockInterruptedExceptionpublic boolean tryLock(long time, TimeUnit unit) throws InterruptedException
tryLock 在接口中 JbootLocktryLock 在接口中 LockInterruptedExceptionpublic Condition newCondition()
newCondition 在接口中 LockCopyright © 2024. All rights reserved.