Java java.util.concurrent.locks Lock fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent.locks Lock fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent.locks Lock.

The text is from its open source code.

Implementation

java.util.concurrent.locks.Lock has the following implementations.
Click this link to see all its implementation.

Constructor

Method

voidlockInterruptibly()
Acquires the lock unless the current thread is Thread#interrupt interrupted .
ConditionnewCondition()
Returns a new Condition instance that is bound to this Lock instance.
booleantryLock()
Acquires the lock only if it is free at the time of invocation.
booleantryLock(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 .
voidunlock()
Releases the lock.