public class OPartitionedLockManager<T> extends Object implements OLockManager<T>
OOneEntryPerKeyLockManager
implementation.Constructor and Description |
---|
OPartitionedLockManager() |
OPartitionedLockManager(boolean useSpinLock,
boolean useScalableRWLock) |
Modifier and Type | Method and Description |
---|---|
Lock |
acquireExclusiveLock(int value) |
Lock |
acquireExclusiveLock(long value) |
Lock |
acquireExclusiveLock(T value) |
Lock[] |
acquireExclusiveLocksInBatch(Collection<T> values) |
Lock[] |
acquireExclusiveLocksInBatch(int[] values) |
Lock[] |
acquireExclusiveLocksInBatch(T... value) |
Lock |
acquireSharedLock(int value) |
Lock |
acquireSharedLock(long value) |
Lock |
acquireSharedLock(T value) |
Lock[] |
acquireSharedLocksInBatch(T... value) |
void |
releaseExclusiveLock(int value) |
void |
releaseExclusiveLock(long value) |
void |
releaseExclusiveLock(T value) |
void |
releaseSharedLock(int value) |
void |
releaseSharedLock(long value) |
void |
releaseSharedLock(T value) |
boolean |
tryAcquireExclusiveLock(int value,
long timeout) |
public OPartitionedLockManager()
public OPartitionedLockManager(boolean useSpinLock, boolean useScalableRWLock)
public Lock acquireExclusiveLock(long value)
public Lock acquireExclusiveLock(int value)
public Lock acquireExclusiveLock(T value)
acquireExclusiveLock
in interface OLockManager<T>
public boolean tryAcquireExclusiveLock(int value, long timeout) throws InterruptedException
InterruptedException
@SafeVarargs public final Lock[] acquireExclusiveLocksInBatch(T... value)
acquireExclusiveLocksInBatch
in interface OLockManager<T>
@SafeVarargs public final Lock[] acquireSharedLocksInBatch(T... value)
acquireSharedLocksInBatch
in interface OLockManager<T>
public Lock[] acquireExclusiveLocksInBatch(Collection<T> values)
acquireExclusiveLocksInBatch
in interface OLockManager<T>
public Lock[] acquireExclusiveLocksInBatch(int[] values)
public Lock acquireSharedLock(long value)
public Lock acquireSharedLock(int value)
public Lock acquireSharedLock(T value)
acquireSharedLock
in interface OLockManager<T>
public void releaseSharedLock(int value)
public void releaseSharedLock(long value)
public void releaseSharedLock(T value)
releaseSharedLock
in interface OLockManager<T>
public void releaseExclusiveLock(int value)
public void releaseExclusiveLock(long value)
public void releaseExclusiveLock(T value)
releaseExclusiveLock
in interface OLockManager<T>
Copyright © 2009–2020 OrientDB. All rights reserved.