org.jboss.cache.lock
Class ReadWriteLockWithUpgrade.WriterLock

java.lang.Object
  extended by org.jboss.cache.lock.ReadWriteLockWithUpgrade.WriterLock
All Implemented Interfaces:
Lock
Enclosing class:
ReadWriteLockWithUpgrade

protected class ReadWriteLockWithUpgrade.WriterLock
extends Object


Constructor Summary
protected ReadWriteLockWithUpgrade.WriterLock()
           
 
Method Summary
 void lock()
           
 void lockInterruptibly()
           
 Condition newCondition()
           
 void signalWaiters()
           
 boolean tryLock()
           
 boolean tryLock(long time, 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 Lock

signalWaiters

public void signalWaiters()

tryLock

public boolean tryLock(long time,
                       TimeUnit unit)
                throws InterruptedException
Specified by:
tryLock in interface Lock
Throws:
InterruptedException

lock

public void lock()
Specified by:
lock in interface Lock

lockInterruptibly

public void lockInterruptibly()
                       throws InterruptedException
Specified by:
lockInterruptibly in interface Lock
Throws:
InterruptedException

newCondition

public Condition newCondition()
Specified by:
newCondition in interface Lock

tryLock

public boolean tryLock()
Specified by:
tryLock in interface Lock


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.