站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

LockStrategyNone (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache.lock
Class LockStrategyNone

java.lang.Object
  extended byorg.jboss.cache.lock.LockStrategyNone
All Implemented Interfaces:
LockStrategy

public class LockStrategyNone
extends Object
implements LockStrategy

Transaction isolation level of None.

Version:
$Revision: 1.2 $
Author:
Lari Hotari

Constructor Summary
LockStrategyNone()
           
 
Method Summary
 EDU.oswego.cs.dl.util.concurrent.Sync readLock()
          Return a read lock object.
 EDU.oswego.cs.dl.util.concurrent.Sync upgradeLockAttempt(long msecs)
          Attempt to upgrade the current read lock to write lock with msecs timeout.
 EDU.oswego.cs.dl.util.concurrent.Sync writeLock()
          Return a write lock object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockStrategyNone

public LockStrategyNone()
Method Detail

readLock

public EDU.oswego.cs.dl.util.concurrent.Sync readLock()
Description copied from interface: LockStrategy
Return a read lock object.

Specified by:
readLock in interface LockStrategy
Returns:
Sync (@see EDU.oswego.cs.dl.util.concurrent.Sync)
See Also:
LockStrategy.readLock()

upgradeLockAttempt

public EDU.oswego.cs.dl.util.concurrent.Sync upgradeLockAttempt(long msecs)
                                                         throws UpgradeException
Description copied from interface: LockStrategy
Attempt to upgrade the current read lock to write lock with msecs timeout.

Specified by:
upgradeLockAttempt in interface LockStrategy
Parameters:
msecs - Timeout in milliseconds.
Returns:
Sync object. Will return null if timeout or failed.
Throws:
UpgradeException
See Also:
LockStrategy.upgradeLockAttempt(long)

writeLock

public EDU.oswego.cs.dl.util.concurrent.Sync writeLock()
Description copied from interface: LockStrategy
Return a write lock object.

Specified by:
writeLock in interface LockStrategy
Returns:
Sync (@see EDU.oswego.cs.dl.util.concurrent.Sync)
See Also:
LockStrategy.writeLock()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.