Package org.redisson.transaction
Class TransactionalSetCache<V>
java.lang.Object
org.redisson.transaction.BaseTransactionalObject
org.redisson.transaction.BaseTransactionalSet<V>
org.redisson.transaction.TransactionalSetCache<V>
- Type Parameters:
V
- value type
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionTransactionalSetCache
(CommandAsyncExecutor commandExecutor, long timeout, List<TransactionalOperation> operations, RSetCache<V> set, String transactionId) -
Method Summary
Modifier and TypeMethodDescriptionprotected TransactionalOperation
createAddOperation
(V value, long threadId) protected MoveOperation
createMoveOperation
(String destination, V value, long threadId) protected TransactionalOperation
createRemoveOperation
(Object value, long threadId) protected ScanResult
<Object> scanIteratorSource
(String name, RedisClient client, String startPos, String pattern, int count) Methods inherited from class org.redisson.transaction.BaseTransactionalSet
addAllAsync, addAsync, addAsync, clearExpireAsync, containsAllAsync, containsAsync, deleteAsync, deleteAsync, diffAsync, executeLocked, executeLocked, expireAsync, expireAtAsync, intersectionAsync, isExistsAsync, moveAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readUnionAsync, removeAllAsync, removeAsync, removeRandomAsync, removeRandomAsync, retainAllAsync, scanIterator, sortToAsync, touchAsync, unionAsync, unlinkAsync
Methods inherited from class org.redisson.transaction.BaseTransactionalObject
executeLocked, executeLocked, executeLocked, getLockName, getReadLock, getWriteLock, migrateAsync, moveAsync
-
Constructor Details
-
TransactionalSetCache
public TransactionalSetCache(CommandAsyncExecutor commandExecutor, long timeout, List<TransactionalOperation> operations, RSetCache<V> set, String transactionId)
-
-
Method Details
-
scanIteratorSource
protected ScanResult<Object> scanIteratorSource(String name, RedisClient client, String startPos, String pattern, int count) - Specified by:
scanIteratorSource
in classBaseTransactionalSet<V>
-
readAllAsyncSource
- Specified by:
readAllAsyncSource
in classBaseTransactionalSet<V>
-
addAsync
-
createAddOperation
- Specified by:
createAddOperation
in classBaseTransactionalSet<V>
-
createMoveOperation
- Specified by:
createMoveOperation
in classBaseTransactionalSet<V>
-
createRemoveOperation
- Specified by:
createRemoveOperation
in classBaseTransactionalSet<V>
-