org.compass.core.util.backport.java.util.concurrent.locks
Class ReentrantLock.NonfairSync
java.lang.Object
org.compass.core.util.backport.java.util.concurrent.locks.ReentrantLock.Sync
org.compass.core.util.backport.java.util.concurrent.locks.ReentrantLock.NonfairSync
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- ReentrantLock
static final class ReentrantLock.NonfairSync
- extends ReentrantLock.Sync
Sync object for non-fair locks
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReentrantLock.NonfairSync
ReentrantLock.NonfairSync()
lock
public void lock()
- Performs lock. Try immediate barge, backing up to normal
acquire on failure.
- Specified by:
lock in class ReentrantLock.Sync
lockInterruptibly
public void lockInterruptibly()
throws InterruptedException
- Specified by:
lockInterruptibly in class ReentrantLock.Sync
- Throws:
InterruptedException
tryLock
public boolean tryLock(long nanos)
throws InterruptedException
- Specified by:
tryLock in class ReentrantLock.Sync
- Throws:
InterruptedException
unlock
public void unlock()
- Specified by:
unlock in class ReentrantLock.Sync
isFair
public final boolean isFair()
- Specified by:
isFair in class ReentrantLock.Sync
Copyright (c) 2004-2006 The Compass Project.