| Modifier and Type | Method and Description |
|---|---|
static Lock |
getLock() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long l,
TimeUnit timeUnit) |
void |
unlock() |
public static final Lock INSTANCE
public static final Lock getLock()
public void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock(long l,
TimeUnit timeUnit)
throws InterruptedException
tryLock in interface LockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LockCopyright © 2012–2015. All rights reserved.