Package org.redisson.transaction
Class BaseTransactionalMap<K,V>
java.lang.Object
org.redisson.transaction.BaseTransactionalObject
org.redisson.transaction.BaseTransactionalMap<K,V>
- Type Parameters:
K- key typeV- value type
- Direct Known Subclasses:
BaseTransactionalMapCache
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBaseTransactionalMap(CommandAsyncExecutor commandExecutor, long timeout, List<TransactionalOperation> operations, RMap<K, V> map, String transactionId) -
Method Summary
Modifier and TypeMethodDescriptionaddAndGetOperationAsync(K key, Number value) containsKeyAsync(Object key) containsValueAsync(Object value) deleteAsync(CommandAsyncExecutor commandExecutor) deleteAsync(CommandAsyncExecutor commandExecutor, TransactionalOperation operation) protected <R> RFuture<R> executeLocked(K key, Supplier<CompletionStage<R>> runnable) expireAsync(long timeToLive, TimeUnit timeUnit, String param, String... keys) expireAtAsync(long timestamp, String param, String... keys) fastPutIfAbsentOperationAsync(K key, V value) fastPutIfAbsentOperationAsync(K key, V value, MapOperation mapOperation) fastPutIfExistsOperationAsync(K key, V value) fastPutIfExistsOperationAsync(K key, V value, MapOperation mapOperation) fastPutOperationAsync(K key, V value) fastPutOperationAsync(K key, V value, MapOperation operation) fastRemoveOperationAsync(K... keys) getAllOperationAsync(Set<K> keys) protected RLockgetOperationAsync(K key) putAllOperationAsync(Map<? extends K, ? extends V> entries) putIfAbsentOperationAsync(K key, V value) putIfAbsentOperationAsync(K key, V value, MapOperation mapOperation) putIfExistsOperationAsync(K key, V value) putIfExistsOperationAsync(K key, V value, MapOperation mapOperation) putOperationAsync(K key, V value) putOperationAsync(K key, V value, MapOperation operation) removeOperationAsync(Object key, Object value) removeOperationAsync(K key) replaceOperationAsync(K key, V value) replaceOperationAsync(K key, V oldValue, V newValue) protected ScanResult<Map.Entry<Object, Object>> scanIterator(String name, RedisClient client, long startPos, String pattern, int count) touchAsync(CommandAsyncExecutor commandExecutor) unlinkAsync(CommandAsyncExecutor commandExecutor) valueSizeAsync(K key) Methods inherited from class org.redisson.transaction.BaseTransactionalObject
executeLocked, executeLocked, executeLocked, getLockName, getReadLock, getWriteLock, migrateAsync, moveAsync
-
Constructor Details
-
BaseTransactionalMap
public BaseTransactionalMap(CommandAsyncExecutor commandExecutor, long timeout, List<TransactionalOperation> operations, RMap<K, V> map, String transactionId)
-
-
Method Details
-
isExistsAsync
-
unlinkAsync
-
touchAsync
-
deleteAsync
-
deleteAsync
protected RFuture<Boolean> deleteAsync(CommandAsyncExecutor commandExecutor, TransactionalOperation operation) -
scanIterator
protected ScanResult<Map.Entry<Object,Object>> scanIterator(String name, RedisClient client, long startPos, String pattern, int count) -
containsKeyAsync
-
containsValueAsync
-
addAndGetOperationAsync
-
putIfExistsOperationAsync
-
putIfExistsOperationAsync
-
putIfAbsentOperationAsync
-
putIfAbsentOperationAsync
-
putOperationAsync
-
putOperationAsync
-
fastPutIfExistsOperationAsync
-
fastPutIfExistsOperationAsync
-
fastPutIfAbsentOperationAsync
-
fastPutIfAbsentOperationAsync
-
fastPutOperationAsync
-
fastPutOperationAsync
-
fastRemoveOperationAsync
-
valueSizeAsync
-
getOperationAsync
-
readAllKeySetAsync
-
readAllEntrySetAsync
-
readAllValuesAsync
-
readAllMapAsync
-
getAllOperationAsync
-
removeOperationAsync
-
removeOperationAsync
-
putAllOperationAsync
-
replaceOperationAsync
-
replaceOperationAsync
-
executeLocked
-
getLock
-
expireAsync
-
expireAtAsync
-
clearExpireAsync
-