Package org.redisson
Class RedissonBuckets
java.lang.Object
org.redisson.RedissonBuckets
- All Implemented Interfaces:
RBuckets,RBucketsAsync
- Direct Known Subclasses:
RedissonTransactionalBuckets
- Author:
- Nikita Koksharov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRedissonBuckets(Codec codec, CommandAsyncExecutor commandExecutor) RedissonBuckets(CommandAsyncExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionReturns Redis object mapped by key.Returns Redis object mapped by key.voidSaves objects mapped by Redis key.Saves objects mapped by Redis key.booleanTry to save objects mapped by Redis key.trySetAsync(Map<String, ?> buckets) Try to save objects mapped by Redis key.
-
Field Details
-
codec
-
commandExecutor
-
-
Constructor Details
-
RedissonBuckets
-
RedissonBuckets
-
-
Method Details
-
get
Description copied from interface:RBucketsReturns Redis object mapped by key. Result Map is not contains key-value entry for null values. -
trySet
Description copied from interface:RBucketsTry to save objects mapped by Redis key. If at least one of them is already exist then don't set none of them. -
set
Description copied from interface:RBucketsSaves objects mapped by Redis key. -
getAsync
Description copied from interface:RBucketsAsyncReturns Redis object mapped by key. Result Map is not contains key-value entry for null values.- Specified by:
getAsyncin interfaceRBucketsAsync- Type Parameters:
V- type of value- Parameters:
keys- - keys- Returns:
- Map with name of bucket as key and bucket as value
-
trySetAsync
Description copied from interface:RBucketsAsyncTry to save objects mapped by Redis key. If at least one of them is already exist then don't set none of them.- Specified by:
trySetAsyncin interfaceRBucketsAsync- Parameters:
buckets- - map of buckets- Returns:
trueif object has been set otherwisefalse
-
setAsync
Description copied from interface:RBucketsAsyncSaves objects mapped by Redis key.- Specified by:
setAsyncin interfaceRBucketsAsync- Parameters:
buckets- - map of buckets- Returns:
- void
-