org.jboss.cache.lock
Class ReadWriteLockWithUpgrade.WriterLock
java.lang.Object
org.jboss.cache.lock.ReadWriteLockWithUpgrade.WriterLock
- All Implemented Interfaces:
- java.util.concurrent.locks.Lock
- Enclosing class:
- ReadWriteLockWithUpgrade
protected class ReadWriteLockWithUpgrade.WriterLock
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadWriteLockWithUpgrade.WriterLock
protected ReadWriteLockWithUpgrade.WriterLock()
unlock
public void unlock()
- Specified by:
unlock
in interface java.util.concurrent.locks.Lock
signalWaiters
public void signalWaiters()
tryLock
public boolean tryLock(long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
- Specified by:
tryLock
in interface java.util.concurrent.locks.Lock
- Throws:
java.lang.InterruptedException
lock
public void lock()
- Specified by:
lock
in interface java.util.concurrent.locks.Lock
lockInterruptibly
public void lockInterruptibly()
throws java.lang.InterruptedException
- Specified by:
lockInterruptibly
in interface java.util.concurrent.locks.Lock
- Throws:
java.lang.InterruptedException
newCondition
public java.util.concurrent.locks.Condition newCondition()
- Specified by:
newCondition
in interface java.util.concurrent.locks.Lock
tryLock
public boolean tryLock()
- Specified by:
tryLock
in interface java.util.concurrent.locks.Lock
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.