Class AerospikeLockOperations<LOCKS extends AerospikeBatchLocks<EV>,EV>
java.lang.Object
nosql.batch.update.aerospike.lock.AerospikeLockOperations<LOCKS,EV>
- All Implemented Interfaces:
LockOperations<LOCKS,AerospikeLock, com.aerospike.client.Value>
public class AerospikeLockOperations<LOCKS extends AerospikeBatchLocks<EV>,EV>
extends Object
implements LockOperations<LOCKS,AerospikeLock,com.aerospike.client.Value>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAerospikeLockOperations(com.aerospike.client.IAerospikeClient aerospikeClient, AerospikeExpectedValuesOperations<EV> expectedValuesOperations, ExecutorService aerospikeExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckExpectedValues(LOCKS batchLocks, List<AerospikeLock> keysLocked) getLockedByBatchUpdate(LOCKS aerospikeBatchLocks, com.aerospike.client.Value batchId) protected List<AerospikeLock>voidrelease(List<AerospikeLock> locks, com.aerospike.client.Value batchId) protected voidreleaseLock(AerospikeLock lock, com.aerospike.client.Value batchId)
-
Constructor Details
-
AerospikeLockOperations
public AerospikeLockOperations(com.aerospike.client.IAerospikeClient aerospikeClient, AerospikeExpectedValuesOperations<EV> expectedValuesOperations, ExecutorService aerospikeExecutor)
-
-
Method Details
-
acquire
public List<AerospikeLock> acquire(com.aerospike.client.Value batchId, LOCKS batchLocks, boolean checkBatchId) throws LockingException - Specified by:
acquirein interfaceLockOperations<LOCKS extends AerospikeBatchLocks<EV>,AerospikeLock, com.aerospike.client.Value> - Throws:
LockingException
-
putLocks
protected List<AerospikeLock> putLocks(com.aerospike.client.Value batchId, LOCKS batchLocks, boolean checkTransactionId) throws TemporaryLockingException - Throws:
TemporaryLockingException
-
checkExpectedValues
protected void checkExpectedValues(LOCKS batchLocks, List<AerospikeLock> keysLocked) throws PermanentLockingException - Throws:
PermanentLockingException
-
getLockedByBatchUpdate
public List<AerospikeLock> getLockedByBatchUpdate(LOCKS aerospikeBatchLocks, com.aerospike.client.Value batchId) - Specified by:
getLockedByBatchUpdatein interfaceLockOperations<LOCKS extends AerospikeBatchLocks<EV>,AerospikeLock, com.aerospike.client.Value>
-
release
- Specified by:
releasein interfaceLockOperations<LOCKS extends AerospikeBatchLocks<EV>,AerospikeLock, com.aerospike.client.Value>
-
releaseLock
-