Example usage for Java java.util.concurrent.locks Lock fields, constructors, methods, implement or subclass
The text is from its open source code.
void | lockInterruptibly() Acquires the lock unless the current thread is Thread#interrupt interrupted . |
Condition | newCondition() Returns a new Condition instance that is bound to this Lock instance. |
boolean | tryLock() Acquires the lock only if it is free at the time of invocation. |
boolean | tryLock(long time, TimeUnit unit) Acquires the lock if it is free within the given waiting time and the current thread has not been Thread#interrupt interrupted . |
void | unlock() Releases the lock. |