当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 Cache API Documentation 英文版文档
SimpleLock (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档
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.
Just implements from Doug Lea's concurrent package. This class is used as a delegate for LockStrategy
is transaction isolation level.
- Version:
- $Revision: 1.3 $
- Author:
- Ben Wang July 15, 2003
Method Summary |
EDU.oswego.cs.dl.util.concurrent.Sync |
readLock()
|
EDU.oswego.cs.dl.util.concurrent.Sync |
upgradeLockAttempt(long msecs)
|
EDU.oswego.cs.dl.util.concurrent.Sync |
writeLock()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLock
public SimpleLock()
readLock
public EDU.oswego.cs.dl.util.concurrent.Sync readLock()
- See Also:
LockStrategy.readLock()
upgradeLockAttempt
public EDU.oswego.cs.dl.util.concurrent.Sync upgradeLockAttempt(long msecs)
- See Also:
LockStrategy.upgradeLockAttempt(long)
writeLock
public EDU.oswego.cs.dl.util.concurrent.Sync writeLock()
- See Also:
LockStrategy.writeLock()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.