public class BasicLockOperations extends Object implements LockOperations
LockOperations.LockType| Constructor and Description |
|---|
BasicLockOperations(AerospikeOperations aerospikeOperations) |
| Modifier and Type | Method and Description |
|---|---|
Set<com.aerospike.client.Key> |
acquireLocks(com.aerospike.client.Value transactionId,
Map<String,Map<com.aerospike.client.Value,Map<com.aerospike.client.Value,com.aerospike.client.Value>>> locksByStore,
boolean checkTransactionId,
Consumer<Map<com.aerospike.client.Key,LockOperations.LockType>> onErrorCleanup) |
protected void |
checkExpectedValues(Map<String,Map<com.aerospike.client.Value,Map<com.aerospike.client.Value,com.aerospike.client.Value>>> locksByStore,
Map<com.aerospike.client.Key,LockOperations.LockType> keysLocked) |
List<com.aerospike.client.Key> |
filterKeysLockedByTransaction(Map<String,Map<com.aerospike.client.Value,Map<com.aerospike.client.Value,com.aerospike.client.Value>>> locksByStore,
com.aerospike.client.Value transactionId) |
void |
releaseLocks(Collection<com.aerospike.client.Key> keys) |
public BasicLockOperations(AerospikeOperations aerospikeOperations)
public Set<com.aerospike.client.Key> acquireLocks(com.aerospike.client.Value transactionId, Map<String,Map<com.aerospike.client.Value,Map<com.aerospike.client.Value,com.aerospike.client.Value>>> locksByStore, boolean checkTransactionId, Consumer<Map<com.aerospike.client.Key,LockOperations.LockType>> onErrorCleanup) throws org.janusgraph.diskstorage.BackendException
acquireLocks in interface LockOperationsorg.janusgraph.diskstorage.BackendExceptionpublic List<com.aerospike.client.Key> filterKeysLockedByTransaction(Map<String,Map<com.aerospike.client.Value,Map<com.aerospike.client.Value,com.aerospike.client.Value>>> locksByStore, com.aerospike.client.Value transactionId)
filterKeysLockedByTransaction in interface LockOperationspublic void releaseLocks(Collection<com.aerospike.client.Key> keys)
releaseLocks in interface LockOperationsprotected void checkExpectedValues(Map<String,Map<com.aerospike.client.Value,Map<com.aerospike.client.Value,com.aerospike.client.Value>>> locksByStore, Map<com.aerospike.client.Key,LockOperations.LockType> keysLocked) throws org.janusgraph.diskstorage.PermanentBackendException
org.janusgraph.diskstorage.PermanentBackendExceptionCopyright © 2019. All rights reserved.