Constructor and Description |
---|
RedissonBatchRx(EvictionScheduler evictionScheduler,
ConnectionManager connectionManager,
CommandRxExecutor commandExecutor,
BatchOptions options) |
Modifier and Type | Method and Description |
---|---|
RBatchRx |
atomic() |
void |
enableRedissonReferenceSupport(RedissonRxClient redissonRx) |
io.reactivex.Maybe<BatchResult<?>> |
execute()
Executes all operations accumulated during Reactive methods invocations Reactivehronously.
|
RAtomicDoubleRx |
getAtomicDouble(String name)
Returns atomicDouble instance by name.
|
RAtomicLongRx |
getAtomicLong(String name)
Returns "atomic long" instance by name.
|
RBitSetRx |
getBitSet(String name)
Returns bitSet instance by name.
|
<V> RBlockingDequeRx<V> |
getBlockingDeque(String name)
Returns blocking deque instance by name.
|
<V> RBlockingDequeRx<V> |
getBlockingDeque(String name,
Codec codec) |
<V> RBlockingQueueRx<V> |
getBlockingQueue(String name)
Returns blocking queue instance by name.
|
<V> RBlockingQueueRx<V> |
getBlockingQueue(String name,
Codec codec) |
<V> RBucketRx<V> |
getBucket(String name)
Returns object holder by name
|
<V> RBucketRx<V> |
getBucket(String name,
Codec codec) |
<V> RDequeRx<V> |
getDeque(String name)
Returns deque instance by name.
|
<V> RDequeRx<V> |
getDeque(String name,
Codec codec) |
<V> RGeoRx<V> |
getGeo(String name)
Returns geospatial items holder instance by
name . |
<V> RGeoRx<V> |
getGeo(String name,
Codec codec)
Returns geospatial items holder instance by
name
using provided codec for geospatial members. |
<V> RHyperLogLogRx<V> |
getHyperLogLog(String name)
Returns HyperLogLog object by name
|
<V> RHyperLogLogRx<V> |
getHyperLogLog(String name,
Codec codec) |
RKeysRx |
getKeys()
Returns keys operations.
|
RLexSortedSetRx |
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> RListRx<V> |
getList(String name)
Returns list instance by name.
|
<V> RListRx<V> |
getList(String name,
Codec codec) |
<K,V> RListMultimapRx<K,V> |
getListMultimap(String name)
Returns List based MultiMap instance by name.
|
<K,V> RListMultimapRx<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> RMapRx<K,V> |
getMap(String name)
Returns map instance by name.
|
<K,V> RMapRx<K,V> |
getMap(String name,
Codec codec) |
<K,V> RMapCacheRx<K,V> |
getMapCache(String name)
Returns map-based cache instance by
name . |
<K,V> RMapCacheRx<K,V> |
getMapCache(String name,
Codec codec)
Returns map-based cache instance by
name
using provided codec for both cache keys and values. |
<V> RQueueRx<V> |
getQueue(String name)
Returns queue instance by name.
|
<V> RQueueRx<V> |
getQueue(String name,
Codec codec) |
<V> RScoredSortedSetRx<V> |
getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name
|
<V> RScoredSortedSetRx<V> |
getScoredSortedSet(String name,
Codec codec) |
RScriptRx |
getScript()
Returns script operations object
|
RScriptRx |
getScript(Codec codec)
Returns script operations object using provided codec.
|
<V> RSetRx<V> |
getSet(String name)
Returns set instance by name.
|
<V> RSetRx<V> |
getSet(String name,
Codec codec) |
<V> RSetCacheRx<V> |
getSetCache(String name)
Returns set-based cache instance by
name . |
<V> RSetCacheRx<V> |
getSetCache(String name,
Codec codec)
Returns set-based cache instance by
name
using provided codec for values. |
<K,V> RSetMultimapRx<K,V> |
getSetMultimap(String name)
Returns Set based Multimap instance by name.
|
<K,V> RSetMultimapRx<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> RStreamRx<K,V> |
getStream(String name)
Returns stream instance by
name
Requires Redis 5.0.0 and higher. |
<K,V> RStreamRx<K,V> |
getStream(String name,
Codec codec)
Returns stream instance by
name
using provided codec for entries. |
RTopicRx |
getTopic(String name)
Returns topic instance by name.
|
RTopicRx |
getTopic(String name,
Codec codec) |
RBatchRx |
retryAttempts(int retryAttempts) |
RBatchRx |
retryInterval(long retryInterval,
TimeUnit unit) |
RBatchRx |
skipResult() |
RBatchRx |
syncSlaves(int slaves,
long timeout,
TimeUnit unit) |
RBatchRx |
timeout(long timeout,
TimeUnit unit) |
public RedissonBatchRx(EvictionScheduler evictionScheduler, ConnectionManager connectionManager, CommandRxExecutor commandExecutor, BatchOptions options)
public <K,V> RStreamRx<K,V> getStream(String name)
RBatchRx
name
Requires Redis 5.0.0 and higher.
public <K,V> RStreamRx<K,V> getStream(String name, Codec codec)
RBatchRx
name
using provided codec
for entries.
Requires Redis 5.0.0 and higher.
public <V> RBucketRx<V> getBucket(String name)
RBatchRx
public <V> RHyperLogLogRx<V> getHyperLogLog(String name)
RBatchRx
getHyperLogLog
in interface RBatchRx
V
- type of valuename
- - name of objectpublic <V> RHyperLogLogRx<V> getHyperLogLog(String name, Codec codec)
getHyperLogLog
in interface RBatchRx
public <V> RListRx<V> getList(String name)
RBatchRx
public <K,V> RMapRx<K,V> getMap(String name)
RBatchRx
public <K,V> RMapCacheRx<K,V> getMapCache(String name, Codec codec)
RBatchRx
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 RBatchRx.getMap(String, Codec)
.
getMapCache
in interface RBatchRx
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RMapCacheRx<K,V> getMapCache(String name)
RBatchRx
name
.
Supports entry eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatchRx.getMap(String)
.
getMapCache
in interface RBatchRx
K
- type of keyV
- type of valuename
- - name of objectpublic <V> RSetRx<V> getSet(String name)
RBatchRx
public RTopicRx getTopic(String name)
RBatchRx
public <V> RQueueRx<V> getQueue(String name)
RBatchRx
public <V> RBlockingQueueRx<V> getBlockingQueue(String name)
RBatchRx
getBlockingQueue
in interface RBatchRx
V
- type of valuename
- - name of objectpublic <V> RBlockingQueueRx<V> getBlockingQueue(String name, Codec codec)
getBlockingQueue
in interface RBatchRx
public <V> RDequeRx<V> getDeque(String name)
RBatchRx
public RAtomicLongRx getAtomicLong(String name)
RBatchRx
getAtomicLong
in interface RBatchRx
name
- - name of objectpublic <V> RSetCacheRx<V> getSetCache(String name)
RBatchRx
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 RBatchRx.getSet(String, Codec)
.
getSetCache
in interface RBatchRx
V
- type of valuename
- - name of objectpublic <V> RSetCacheRx<V> getSetCache(String name, Codec codec)
RBatchRx
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 RBatchRx.getSet(String, Codec)
.
getSetCache
in interface RBatchRx
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <V> RScoredSortedSetRx<V> getScoredSortedSet(String name)
RBatchRx
getScoredSortedSet
in interface RBatchRx
V
- type of valuename
- - name of objectpublic <V> RScoredSortedSetRx<V> getScoredSortedSet(String name, Codec codec)
getScoredSortedSet
in interface RBatchRx
public RLexSortedSetRx getLexSortedSet(String name)
RBatchRx
getLexSortedSet
in interface RBatchRx
name
- - name of objectpublic RBitSetRx getBitSet(String name)
RBatchRx
public RScriptRx getScript()
RBatchRx
public RScriptRx getScript(Codec codec)
RBatchRx
public RKeysRx getKeys()
RBatchRx
public io.reactivex.Maybe<BatchResult<?>> execute()
RBatchRx
public RBatchRx syncSlaves(int slaves, long timeout, TimeUnit unit)
syncSlaves
in interface RBatchRx
public RBatchRx skipResult()
skipResult
in interface RBatchRx
public RBatchRx retryAttempts(int retryAttempts)
retryAttempts
in interface RBatchRx
public RBatchRx retryInterval(long retryInterval, TimeUnit unit)
retryInterval
in interface RBatchRx
public void enableRedissonReferenceSupport(RedissonRxClient redissonRx)
public <V> RGeoRx<V> getGeo(String name)
RBatchRx
name
.public <V> RGeoRx<V> getGeo(String name, Codec codec)
RBatchRx
name
using provided codec for geospatial members.public <K,V> RSetMultimapRx<K,V> getSetMultimap(String name)
RBatchRx
getSetMultimap
in interface RBatchRx
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RSetMultimapRx<K,V> getSetMultimap(String name, Codec codec)
RBatchRx
getSetMultimap
in interface RBatchRx
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RListMultimapRx<K,V> getListMultimap(String name)
RBatchRx
getListMultimap
in interface RBatchRx
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RListMultimapRx<K,V> getListMultimap(String name, Codec codec)
RBatchRx
getListMultimap
in interface RBatchRx
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic RAtomicDoubleRx getAtomicDouble(String name)
RBatchRx
getAtomicDouble
in interface RBatchRx
name
- - name of objectpublic <V> RBlockingDequeRx<V> getBlockingDeque(String name)
RBatchRx
getBlockingDeque
in interface RBatchRx
V
- type of valuename
- - name of objectpublic <V> RBlockingDequeRx<V> getBlockingDeque(String name, Codec codec)
getBlockingDeque
in interface RBatchRx
Copyright © 2014–2019 The Redisson Project. All rights reserved.