org.jboss.cache.lock
Class ReadWriteLockWithUpgrade.WriterLock

java.lang.Object
  extended byorg.jboss.cache.lock.ReadWriteLockWithUpgrade.WriterLock
All Implemented Interfaces:
org.jboss.cache.lock.ReadWriteLockWithUpgrade.Signaller
Enclosing class:
ReadWriteLockWithUpgrade (src)

protected class ReadWriteLockWithUpgrade.WriterLock
extends java.lang.Object
implements org.jboss.cache.lock.ReadWriteLockWithUpgrade.Signaller


Constructor Summary
protected ReadWriteLockWithUpgrade.WriterLock()
           
 
Method Summary
 void acquire()
           
 boolean attempt(long msecs)
           
 void release()
           
 void signalWaiters()
           
 
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

acquire

public void acquire()
             throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

release

public void release()

signalWaiters

public void signalWaiters()
Specified by:
signalWaiters in interface org.jboss.cache.lock.ReadWriteLockWithUpgrade.Signaller

attempt

public boolean attempt(long msecs)
                throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException