org.jboss.cache.lock
Class SimpleLock

java.lang.Object
  extended by org.jboss.cache.lock.SimpleLock

public class SimpleLock
extends Object

Simple lock that does not differentiate read and write lock. All locks are obtained FIFO. This class is used as a delegate for LockStrategy is transaction isolation level.

Version:
$Revision: 3125 $
Author:
Ben Wang July 15, 2003

Constructor Summary
SimpleLock()
           
 
Method Summary
 Lock readLock()
           
 Lock upgradeLockAttempt(long msecs)
           
 Lock writeLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLock

public SimpleLock()
Method Detail

readLock

public Lock readLock()
See Also:
LockStrategy.readLock()

upgradeLockAttempt

public Lock upgradeLockAttempt(long msecs)
See Also:
LockStrategy.upgradeLockAttempt(long)

writeLock

public Lock writeLock()
See Also:
LockStrategy.writeLock()


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