public class OComparableLockManager<T extends Comparable> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OComparableLockManager.LOCK |
Modifier and Type | Field and Description |
---|---|
protected ConcurrentSkipListMap<T,com.orientechnologies.common.concur.lock.OComparableLockManager.CountableLock> |
map |
Constructor and Description |
---|
OComparableLockManager(boolean iEnabled,
int iAcquireTimeout) |
OComparableLockManager(boolean iEnabled,
int iAcquireTimeout,
int concurrencyLevel) |
Modifier and Type | Method and Description |
---|---|
void |
acquireExclusiveLock(T key) |
void |
acquireLock(T iResourceId,
OComparableLockManager.LOCK iLockType) |
void |
acquireLock(T iResourceId,
OComparableLockManager.LOCK iLockType,
long iTimeout) |
void |
acquireSharedLock(T key) |
int |
getCountCurrentLocks() |
protected T |
getImmutableResourceId(T iResourceId) |
void |
releaseExclusiveLock(T key) |
void |
releaseLock(Object iRequester,
T iResourceId,
OComparableLockManager.LOCK iLockType) |
void |
releaseSharedLock(T key) |
protected final ConcurrentSkipListMap<T extends Comparable,com.orientechnologies.common.concur.lock.OComparableLockManager.CountableLock> map
public OComparableLockManager(boolean iEnabled, int iAcquireTimeout)
public OComparableLockManager(boolean iEnabled, int iAcquireTimeout, int concurrencyLevel)
public void acquireSharedLock(T key)
public void releaseSharedLock(T key)
public void acquireExclusiveLock(T key)
public void releaseExclusiveLock(T key)
public void acquireLock(T iResourceId, OComparableLockManager.LOCK iLockType)
public void acquireLock(T iResourceId, OComparableLockManager.LOCK iLockType, long iTimeout)
public void releaseLock(Object iRequester, T iResourceId, OComparableLockManager.LOCK iLockType) throws OLockException
OLockException
public int getCountCurrentLocks()
Copyright © 2009–2020 OrientDB. All rights reserved.