public class RedissonTransactionalBuckets extends RedissonBuckets
codec, commandExecutor
Constructor and Description |
---|
RedissonTransactionalBuckets(Codec codec,
CommandAsyncExecutor commandExecutor,
long timeout,
List<TransactionalOperation> operations,
AtomicBoolean executed,
String transactionId) |
RedissonTransactionalBuckets(CommandAsyncExecutor commandExecutor,
long timeout,
List<TransactionalOperation> operations,
AtomicBoolean executed,
String transactionId) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkState() |
RFuture<Long> |
deleteAsync(String... keys) |
protected <R> void |
executeLocked(RPromise<R> promise,
Runnable runnable,
Collection<String> keys) |
<V> RFuture<Map<String,V>> |
getAsync(String... keys)
Returns Redis object mapped by key.
|
RFuture<Void> |
setAsync(Map<String,?> buckets)
Saves objects mapped by Redis key.
|
RFuture<Boolean> |
trySetAsync(Map<String,?> buckets)
Try to save objects mapped by Redis key.
|
delete, get, set, trySet
public RedissonTransactionalBuckets(CommandAsyncExecutor commandExecutor, long timeout, List<TransactionalOperation> operations, AtomicBoolean executed, String transactionId)
public RedissonTransactionalBuckets(Codec codec, CommandAsyncExecutor commandExecutor, long timeout, List<TransactionalOperation> operations, AtomicBoolean executed, String transactionId)
public <V> RFuture<Map<String,V>> getAsync(String... keys)
RBucketsAsync
getAsync
in interface RBucketsAsync
getAsync
in class RedissonBuckets
V
- type of valuekeys
- - keyspublic RFuture<Void> setAsync(Map<String,?> buckets)
RBucketsAsync
setAsync
in interface RBucketsAsync
setAsync
in class RedissonBuckets
buckets
- - map of bucketspublic RFuture<Long> deleteAsync(String... keys)
deleteAsync
in interface RBucketsAsync
deleteAsync
in class RedissonBuckets
public RFuture<Boolean> trySetAsync(Map<String,?> buckets)
RBucketsAsync
trySetAsync
in interface RBucketsAsync
trySetAsync
in class RedissonBuckets
buckets
- - map of bucketstrue
if object has been set otherwise false
protected <R> void executeLocked(RPromise<R> promise, Runnable runnable, Collection<String> keys)
protected void checkState()
Copyright © 2014–2020 Redisson. All rights reserved.