| java.lang.Object org.apache.ojb.broker.locking.LockManagerInMemoryImpl
LockManagerInMemoryImpl | public class LockManagerInMemoryImpl implements LockManager(Code) | | This implementation of the
LockManager interface supports a simple, fast, non-blocking
pessimistic locking for single JVM applications.
version: $Id: LockManagerInMemoryImpl.java,v 1.1.2.3 2005/12/21 22:25:32 tomdz Exp $ |
Inner Class :final static class ObjectLocks | |
Method Summary | |
public long | getBlockTimeout() | public String | getLockInfo() | public long | getLockTimeout() | public boolean | hasRead(Object key, Object resourceId) | public boolean | hasUpgrade(Object key, Object resourceId) | public boolean | hasWrite(Object key, Object resourceId) | public int | lockedObjects() | public boolean | readLock(Object key, Object resourceId, int isolationLevel) | public boolean | releaseLock(Object key, Object resourceId) | public void | releaseLocks(Object key) | public boolean | removeReader(Object key, Object resourceId) Remove an read lock. | public boolean | removeWriter(Object key, Object resourceId) Remove an write lock. | public void | setBlockTimeout(long timeout) | public void | setLockTimeout(long timeout) | public boolean | upgradeLock(Object key, Object resourceId, int isolationLevel) | public boolean | writeLock(Object key, Object resourceId, int isolationLevel) |
LockManagerInMemoryImpl | public LockManagerInMemoryImpl()(Code) | | |
getBlockTimeout | public long getBlockTimeout()(Code) | | NOOP
Always '0' |
getLockTimeout | public long getLockTimeout()(Code) | | |
lockedObjects | public int lockedObjects()(Code) | | |
removeReader | public boolean removeReader(Object key, Object resourceId)(Code) | | Remove an read lock.
|
removeWriter | public boolean removeWriter(Object key, Object resourceId)(Code) | | Remove an write lock.
|
setBlockTimeout | public void setBlockTimeout(long timeout)(Code) | | NOOP
|
setLockTimeout | public void setLockTimeout(long timeout)(Code) | | |
upgradeLock | public boolean upgradeLock(Object key, Object resourceId, int isolationLevel)(Code) | | |
writeLock | public boolean writeLock(Object key, Object resourceId, int isolationLevel)(Code) | | |
|
|