API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.concurrent.locks. Lock View Source
Author(s)
Doug Lea
Since
1.5
Version
Serial
Hierarchy
 Lock
Subinterfaces
Description
public interface Lock
  Lock implementations provide more extensive locking operations than can be obtained using synchronized methods and statements.
Methods
Hide/Show inherited methods
public void lock ()
  Acquires the lock.
public void lockInterruptibly () throws InterruptedException
  Acquires the lock unless the current thread is interrupted.
public Condition newCondition ()
  Returns a new Condition instance that is bound to this Lock instance.
public boolean tryLock ()
  Acquires the lock only if it is free at the time of invocation.
public boolean tryLock (long time, TimeUnit unit) throws InterruptedException
  Acquires the lock if it is free within the given waiting time and the current thread has not been interrupted.
public void unlock ()
  Releases the lock.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar