org.jboss.cache.lock
Class BelasLockStrategy
java.lang.Object
org.jboss.cache.lock.BelasLockStrategy
- All Implemented Interfaces:
- LockStrategy
- public class BelasLockStrategy
- extends Object
- implements LockStrategy
- Version:
- $Id: BelasLockStrategy.java,v 1.1.2.2 2005/04/06 21:06:45 starksm Exp $
- Author:
- Bela Ban
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 |
BelasLockStrategy
public BelasLockStrategy()
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)
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)
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
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.