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
-
Constructor Summary
ConstructorDescriptionRedissonBuckets
(Codec codec, CommandAsyncExecutor commandExecutor) RedissonBuckets
(CommandAsyncExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionReturns Redis object mapped by key.Returns Redis object mapped by key.void
Saves objects mapped by Redis key.Saves objects mapped by Redis key.boolean
Try 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:RBuckets
Returns Redis object mapped by key. Result Map is not contains key-value entry for null values. -
trySet
Description copied from interface:RBuckets
Try 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:RBuckets
Saves objects mapped by Redis key. -
getAsync
Description copied from interface:RBucketsAsync
Returns Redis object mapped by key. Result Map is not contains key-value entry for null values.- Specified by:
getAsync
in 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:RBucketsAsync
Try 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:
trySetAsync
in interfaceRBucketsAsync
- Parameters:
buckets
- - map of buckets- Returns:
true
if object has been set otherwisefalse
-
setAsync
Description copied from interface:RBucketsAsync
Saves objects mapped by Redis key.- Specified by:
setAsync
in interfaceRBucketsAsync
- Parameters:
buckets
- - map of buckets- Returns:
- void
-