
public class OIndexOneEntryPerKeyLockManager<T> extends Object implements OLockManager<T>
OOneEntryPerKeyLockManager, but uses ConcurrentHashMap internally which has better
memory footprint.| Constructor and Description |
|---|
OIndexOneEntryPerKeyLockManager() |
OIndexOneEntryPerKeyLockManager(int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
Lock |
acquireExclusiveLock(T key) |
Lock[] |
acquireExclusiveLocksInBatch(Collection<T> keys) |
Lock[] |
acquireExclusiveLocksInBatch(T... keys) |
Lock |
acquireSharedLock(T key) |
Lock[] |
acquireSharedLocksInBatch(T... keys) |
int |
getLockCount() |
void |
lockAllExclusive() |
void |
releaseExclusiveLock(T key) |
void |
releaseSharedLock(T key) |
void |
unlockAllExclusive() |
public OIndexOneEntryPerKeyLockManager()
public OIndexOneEntryPerKeyLockManager(int concurrencyLevel)
public Lock acquireSharedLock(T key)
acquireSharedLock in interface OLockManager<T>public void releaseSharedLock(T key)
releaseSharedLock in interface OLockManager<T>public Lock acquireExclusiveLock(T key)
acquireExclusiveLock in interface OLockManager<T>public void releaseExclusiveLock(T key)
releaseExclusiveLock in interface OLockManager<T>public Lock[] acquireSharedLocksInBatch(T... keys)
acquireSharedLocksInBatch in interface OLockManager<T>public Lock[] acquireExclusiveLocksInBatch(T... keys)
acquireExclusiveLocksInBatch in interface OLockManager<T>public Lock[] acquireExclusiveLocksInBatch(Collection<T> keys)
acquireExclusiveLocksInBatch in interface OLockManager<T>public void lockAllExclusive()
lockAllExclusive in interface OLockManager<T>public void unlockAllExclusive()
unlockAllExclusive in interface OLockManager<T>public int getLockCount()
Copyright © 2009–2025 OrientDB. All rights reserved.