public class RedissonBatchReactive extends Object implements RBatchReactive
Constructor and Description |
---|
RedissonBatchReactive(EvictionScheduler evictionScheduler,
ConnectionManager connectionManager,
CommandReactiveService commandExecutor,
BatchOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
enableRedissonReferenceSupport(RedissonReactiveClient redissonReactive) |
reactor.core.publisher.Mono<BatchResult<?>> |
execute()
Executes all operations accumulated during Reactive methods invocations Reactivehronously.
|
RAtomicDoubleReactive |
getAtomicDouble(String name)
Returns atomicDouble instance by name.
|
RAtomicLongReactive |
getAtomicLong(String name)
Returns "atomic long" instance by name.
|
RBitSetReactive |
getBitSet(String name)
Returns bitSet instance by name.
|
<V> RBlockingDequeReactive<V> |
getBlockingDeque(String name)
Returns blocking deque instance by name.
|
<V> RBlockingDequeReactive<V> |
getBlockingDeque(String name,
Codec codec) |
<V> RBlockingQueueReactive<V> |
getBlockingQueue(String name)
Returns blocking queue instance by name.
|
<V> RBlockingQueueReactive<V> |
getBlockingQueue(String name,
Codec codec) |
<V> RBucketReactive<V> |
getBucket(String name)
Returns object holder by name
|
<V> RBucketReactive<V> |
getBucket(String name,
Codec codec) |
<V> RDequeReactive<V> |
getDeque(String name)
Returns deque instance by name.
|
<V> RDequeReactive<V> |
getDeque(String name,
Codec codec) |
<V> RGeoReactive<V> |
getGeo(String name)
Returns geospatial items holder instance by
name . |
<V> RGeoReactive<V> |
getGeo(String name,
Codec codec)
Returns geospatial items holder instance by
name
using provided codec for geospatial members. |
<V> RHyperLogLogReactive<V> |
getHyperLogLog(String name)
Returns HyperLogLog object by name
|
<V> RHyperLogLogReactive<V> |
getHyperLogLog(String name,
Codec codec) |
RKeysReactive |
getKeys()
Returns keys operations.
|
RLexSortedSetReactive |
getLexSortedSet(String name)
Returns String based Redis Sorted Set instance by name
All elements are inserted with the same score during addition,
in order to force lexicographical ordering
|
<V> RListReactive<V> |
getList(String name)
Returns list instance by name.
|
<V> RListReactive<V> |
getList(String name,
Codec codec) |
<K,V> RListMultimapReactive<K,V> |
getListMultimap(String name)
Returns List based MultiMap instance by name.
|
<K,V> RListMultimapReactive<K,V> |
getListMultimap(String name,
Codec codec)
Returns List based MultiMap instance by name
using provided codec for both map keys and values.
|
<K,V> RMapReactive<K,V> |
getMap(String name)
Returns map instance by name.
|
<K,V> RMapReactive<K,V> |
getMap(String name,
Codec codec) |
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name)
Returns map-based cache instance by
name . |
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name,
Codec codec)
Returns map-based cache instance by
name
using provided codec for both cache keys and values. |
<V> RQueueReactive<V> |
getQueue(String name)
Returns queue instance by name.
|
<V> RQueueReactive<V> |
getQueue(String name,
Codec codec) |
<V> RScoredSortedSetReactive<V> |
getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name
|
<V> RScoredSortedSetReactive<V> |
getScoredSortedSet(String name,
Codec codec) |
RScriptReactive |
getScript()
Returns script operations object
|
RScriptReactive |
getScript(Codec codec)
Returns script operations object using provided codec.
|
<V> RSetReactive<V> |
getSet(String name)
Returns set instance by name.
|
<V> RSetReactive<V> |
getSet(String name,
Codec codec) |
<V> RSetCacheReactive<V> |
getSetCache(String name)
Returns set-based cache instance by
name . |
<V> RSetCacheReactive<V> |
getSetCache(String name,
Codec codec)
Returns set-based cache instance by
name
using provided codec for values. |
<K,V> RSetMultimapReactive<K,V> |
getSetMultimap(String name)
Returns Set based Multimap instance by name.
|
<K,V> RSetMultimapReactive<K,V> |
getSetMultimap(String name,
Codec codec)
Returns Set based Multimap instance by name
using provided codec for both map keys and values.
|
<K,V> RStreamReactive<K,V> |
getStream(String name)
Returns stream instance by
name
Requires Redis 5.0.0 and higher. |
<K,V> RStreamReactive<K,V> |
getStream(String name,
Codec codec)
Returns stream instance by
name
using provided codec for entries. |
RTopicReactive |
getTopic(String name)
Returns topic instance by name.
|
RTopicReactive |
getTopic(String name,
Codec codec) |
public RedissonBatchReactive(EvictionScheduler evictionScheduler, ConnectionManager connectionManager, CommandReactiveService commandExecutor, BatchOptions options)
public <K,V> RStreamReactive<K,V> getStream(String name)
RBatchReactive
name
Requires Redis 5.0.0 and higher.
getStream
in interface RBatchReactive
K
- type of keyV
- type of valuename
- of streampublic <K,V> RStreamReactive<K,V> getStream(String name, Codec codec)
RBatchReactive
name
using provided codec
for entries.
Requires Redis 5.0.0 and higher.
getStream
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of streamcodec
- - codec for entrypublic <V> RBucketReactive<V> getBucket(String name)
RBatchReactive
getBucket
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RBucketReactive<V> getBucket(String name, Codec codec)
getBucket
in interface RBatchReactive
public <V> RHyperLogLogReactive<V> getHyperLogLog(String name)
RBatchReactive
getHyperLogLog
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RHyperLogLogReactive<V> getHyperLogLog(String name, Codec codec)
getHyperLogLog
in interface RBatchReactive
public <V> RListReactive<V> getList(String name)
RBatchReactive
getList
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RListReactive<V> getList(String name, Codec codec)
getList
in interface RBatchReactive
public <K,V> RMapReactive<K,V> getMap(String name)
RBatchReactive
getMap
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RMapReactive<K,V> getMap(String name, Codec codec)
getMap
in interface RBatchReactive
public <K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec)
RBatchReactive
name
using provided codec
for both cache keys and values.
Supports entry eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatchReactive.getMap(String, Codec)
.
getMapCache
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RMapCacheReactive<K,V> getMapCache(String name)
RBatchReactive
name
.
Supports entry eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatchReactive.getMap(String)
.
getMapCache
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectpublic <V> RSetReactive<V> getSet(String name)
RBatchReactive
getSet
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RSetReactive<V> getSet(String name, Codec codec)
getSet
in interface RBatchReactive
public RTopicReactive getTopic(String name)
RBatchReactive
getTopic
in interface RBatchReactive
name
- - name of objectpublic RTopicReactive getTopic(String name, Codec codec)
getTopic
in interface RBatchReactive
public <V> RQueueReactive<V> getQueue(String name)
RBatchReactive
getQueue
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RQueueReactive<V> getQueue(String name, Codec codec)
getQueue
in interface RBatchReactive
public <V> RBlockingQueueReactive<V> getBlockingQueue(String name)
RBatchReactive
getBlockingQueue
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RBlockingQueueReactive<V> getBlockingQueue(String name, Codec codec)
getBlockingQueue
in interface RBatchReactive
public <V> RDequeReactive<V> getDeque(String name)
RBatchReactive
getDeque
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RDequeReactive<V> getDeque(String name, Codec codec)
getDeque
in interface RBatchReactive
public RAtomicLongReactive getAtomicLong(String name)
RBatchReactive
getAtomicLong
in interface RBatchReactive
name
- - name of objectpublic <V> RSetCacheReactive<V> getSetCache(String name)
RBatchReactive
name
.
Uses map (value_hash, value) under the hood for minimal memory consumption.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatchReactive.getSet(String, Codec)
.
getSetCache
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RSetCacheReactive<V> getSetCache(String name, Codec codec)
RBatchReactive
name
using provided codec
for values.
Uses map (value_hash, value) under the hood for minimal memory consumption.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatchReactive.getSet(String, Codec)
.
getSetCache
in interface RBatchReactive
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <V> RScoredSortedSetReactive<V> getScoredSortedSet(String name)
RBatchReactive
getScoredSortedSet
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RScoredSortedSetReactive<V> getScoredSortedSet(String name, Codec codec)
getScoredSortedSet
in interface RBatchReactive
public RLexSortedSetReactive getLexSortedSet(String name)
RBatchReactive
getLexSortedSet
in interface RBatchReactive
name
- - name of objectpublic RBitSetReactive getBitSet(String name)
RBatchReactive
getBitSet
in interface RBatchReactive
name
- of bitSetpublic RScriptReactive getScript()
RBatchReactive
getScript
in interface RBatchReactive
public RScriptReactive getScript(Codec codec)
RBatchReactive
getScript
in interface RBatchReactive
codec
- - codec for params and resultpublic RKeysReactive getKeys()
RBatchReactive
getKeys
in interface RBatchReactive
public reactor.core.publisher.Mono<BatchResult<?>> execute()
RBatchReactive
execute
in interface RBatchReactive
public void enableRedissonReferenceSupport(RedissonReactiveClient redissonReactive)
public <V> RGeoReactive<V> getGeo(String name)
RBatchReactive
name
.getGeo
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RGeoReactive<V> getGeo(String name, Codec codec)
RBatchReactive
name
using provided codec for geospatial members.getGeo
in interface RBatchReactive
V
- type of valuename
- - name of objectcodec
- - codec for valuepublic <K,V> RSetMultimapReactive<K,V> getSetMultimap(String name)
RBatchReactive
getSetMultimap
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RSetMultimapReactive<K,V> getSetMultimap(String name, Codec codec)
RBatchReactive
getSetMultimap
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RListMultimapReactive<K,V> getListMultimap(String name)
RBatchReactive
getListMultimap
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RListMultimapReactive<K,V> getListMultimap(String name, Codec codec)
RBatchReactive
getListMultimap
in interface RBatchReactive
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic RAtomicDoubleReactive getAtomicDouble(String name)
RBatchReactive
getAtomicDouble
in interface RBatchReactive
name
- - name of objectpublic <V> RBlockingDequeReactive<V> getBlockingDeque(String name)
RBatchReactive
getBlockingDeque
in interface RBatchReactive
V
- type of valuename
- - name of objectpublic <V> RBlockingDequeReactive<V> getBlockingDeque(String name, Codec codec)
getBlockingDeque
in interface RBatchReactive
Copyright © 2014–2020 Redisson. All rights reserved.