org.jboss.cache.lock
Class ReadWriteLockWithUpgrade.WriterLock

java.lang.Object
  extended by 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


Constructor Summary
protected ReadWriteLockWithUpgrade.WriterLock()
           
 
Method Summary
 void lock()
           
 void lockInterruptibly()
           
 java.util.concurrent.locks.Condition newCondition()
           
 void signalWaiters()
           
 boolean tryLock()
           
 boolean tryLock(long time, java.util.concurrent.TimeUnit unit)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWriteLockWithUpgrade.WriterLock

protected ReadWriteLockWithUpgrade.WriterLock()
Method Detail

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.