| Modifier and Type | Method and Description |
|---|---|
void |
lock() |
void |
lockInterruptibly()
Deprecated.
|
Condition |
newCondition() |
static Lock |
newLock(String resource) |
static Lock |
newLock(String resource,
boolean reentrant) |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
@Deprecated public void lockInterruptibly() throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface LockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LockCopyright © 2021. All rights reserved.