org.jboss.cache.lock
Class SimpleLock
java.lang.Object
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: 5665 $
- Author:
- Ben Wang July 15, 2003
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLock
public SimpleLock()
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.