RedissonReactive
public interface RedissonReactiveClient
Modifier and Type | Method | Description |
---|---|---|
RBatchReactive |
createBatch() |
Deprecated.
|
RBatchReactive |
createBatch(BatchOptions options) |
Return batch object which executes group of
command in pipeline.
|
RTransactionReactive |
createTransaction(TransactionOptions options) |
Creates transaction with READ_COMMITTED isolation level.
|
<V> List<RBucketReactive<V>> |
findBuckets(String pattern) |
Returns a list of object holder instances by a key pattern
|
RAtomicDoubleReactive |
getAtomicDouble(String name) |
Returns "atomic double" 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 unbounded blocking deque instance by name.
|
<V> RBlockingDequeReactive<V> |
getBlockingDeque(String name,
Codec codec) |
Returns unbounded blocking deque instance by name
using provided codec for deque objects.
|
<V> RBlockingQueueReactive<V> |
getBlockingQueue(String name) |
Returns blocking queue instance by name.
|
<V> RBlockingQueueReactive<V> |
getBlockingQueue(String name,
Codec codec) |
Returns blocking queue instance by name
using provided codec for queue objects.
|
<V> RBucketReactive<V> |
getBucket(String name) |
Returns object holder instance by name
|
<V> RBucketReactive<V> |
getBucket(String name,
Codec codec) |
Returns object holder instance by name
using provided codec for object.
|
NodesGroup<ClusterNode> |
getClusterNodesGroup() |
Get Redis cluster nodes group for server operations
|
ReferenceCodecProvider |
getCodecProvider() |
Returns the CodecProvider instance
|
Config |
getConfig() |
Allows to get configuration provided
during Redisson instance creation.
|
<V> RDequeReactive<V> |
getDeque(String name) |
Returns deque instance by name.
|
<V> RDequeReactive<V> |
getDeque(String name,
Codec codec) |
Returns deque instance by name
using provided codec for deque objects.
|
RLockReactive |
getFairLock(String name) |
Returns lock instance by name.
|
<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 instance by name.
|
<V> RHyperLogLogReactive<V> |
getHyperLogLog(String name,
Codec codec) |
Returns HyperLogLog instance by name
using provided codec for hll objects.
|
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) |
Returns list instance by name
using provided codec for list objects.
|
<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.
|
RLockReactive |
getLock(String name) |
Returns lock instance by name.
|
<K,V> RMapReactive<K,V> |
getMap(String name) |
Returns map instance by name.
|
<K,V> RMapReactive<K,V> |
getMap(String name,
MapOptions<K,V> options) |
Returns map instance by name.
|
<K,V> RMapReactive<K,V> |
getMap(String name,
Codec codec) |
Returns map instance by name
using provided codec for both map keys and values.
|
<K,V> RMapReactive<K,V> |
getMap(String name,
Codec codec,
MapOptions<K,V> options) |
Returns map instance by name
using provided codec for both map keys and values.
|
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name) |
Returns map-based cache instance by name.
|
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name,
MapOptions<K,V> options) |
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.
|
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name,
Codec codec,
MapOptions<K,V> options) |
Returns map-based cache instance by
name
using provided codec for both cache keys and values. |
NodesGroup<Node> |
getNodesGroup() |
Get Redis nodes group for server operations
|
<M> RPatternTopicReactive<M> |
getPatternTopic(String pattern) |
Returns topic instance satisfies by pattern name.
|
<M> RPatternTopicReactive<M> |
getPatternTopic(String pattern,
Codec codec) |
Returns topic instance satisfies by pattern name
using provided codec for messages.
|
RPermitExpirableSemaphoreReactive |
getPermitExpirableSemaphore(String name) |
Returns semaphore instance by name.
|
<V> RQueueReactive<V> |
getQueue(String name) |
Returns queue instance by name.
|
<V> RQueueReactive<V> |
getQueue(String name,
Codec codec) |
Returns queue instance by name
using provided codec for queue objects.
|
RRateLimiterReactive |
getRateLimiter(String name) |
Returns rate limiter instance by
name |
RReadWriteLockReactive |
getReadWriteLock(String name) |
Returns readWriteLock instance by name.
|
<V> RScoredSortedSetReactive<V> |
getScoredSortedSet(String name) |
Returns Redis Sorted Set instance by name.
|
<V> RScoredSortedSetReactive<V> |
getScoredSortedSet(String name,
Codec codec) |
Returns Redis Sorted Set instance by name
using provided codec for sorted set objects.
|
RScriptReactive |
getScript() |
Returns script operations object
|
RSemaphoreReactive |
getSemaphore(String name) |
Returns semaphore instance by name
|
<V> RSetReactive<V> |
getSet(String name) |
Returns set instance by name.
|
<V> RSetReactive<V> |
getSet(String name,
Codec codec) |
Returns set instance by name
using provided codec for set objects.
|
<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 . |
<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 |
<K,V> RStreamReactive<K,V> |
getStream(String name,
Codec codec) |
Returns stream instance by
name
using provided codec for entries. |
<M> RTopicReactive<M> |
getTopic(String name) |
Returns topic instance by name.
|
<M> RTopicReactive<M> |
getTopic(String name,
Codec codec) |
Returns topic instance by name
using provided codec for messages.
|
boolean |
isShutdown() |
Returns
true if this Redisson instance has been shut down. |
boolean |
isShuttingDown() |
Returns
true if this Redisson instance was started to be shutdown
or was shutdown isShutdown() already. |
void |
shutdown() |
Shuts down Redisson instance NOT Redis server
|
<K,V> RStreamReactive<K,V> getStream(String name)
name
Requires Redis 5.0.0 and higher.
K
- type of keyV
- type of valuename
- of stream<K,V> RStreamReactive<K,V> getStream(String name, Codec codec)
name
using provided codec
for entries.
Requires Redis 5.0.0 and higher.
K
- type of keyV
- type of valuename
- - name of streamcodec
- - codec for entry<V> RGeoReactive<V> getGeo(String name)
name
.V
- type of valuename
- - name of object<V> RGeoReactive<V> getGeo(String name, Codec codec)
name
using provided codec for geospatial members.V
- type of valuename
- - name of objectcodec
- - codec for valueRRateLimiterReactive getRateLimiter(String name)
name
name
- of rate limiterRSemaphoreReactive getSemaphore(String name)
name
- - name of objectRPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(String name)
name
- - name of objectRReadWriteLockReactive getReadWriteLock(String name)
name
- - name of objectRLockReactive getFairLock(String name)
Implements a fair locking so it guarantees an acquire order by threads.
name
- - name of objectRLockReactive getLock(String name)
Implements a non-fair locking so doesn't guarantee an acquire order by threads.
name
- - name of object<V> RSetCacheReactive<V> getSetCache(String name)
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map getSet(String, Codec)
.
V
- type of valuesname
- - name of object<V> RSetCacheReactive<V> getSetCache(String name, Codec codec)
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map getSet(String, Codec)
.
V
- type of valuesname
- - name of objectcodec
- - codec for values<K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec)
If eviction is not required then it's better to use regular map getMap(String, Codec)
.
K
- type of keysV
- type of valuesname
- - name of objectcodec
- - codec for values<K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec, MapOptions<K,V> options)
name
using provided codec
for both cache keys and values.
Supports entry eviction with a given MaxIdleTime and TTL settings.
If eviction is not required then it's better to use regular map getMap(String, Codec, MapOptions)
.
K
- type of keyV
- type of valuename
- - object namecodec
- - codec for keys and valuesoptions
- - map options<K,V> RMapCacheReactive<K,V> getMapCache(String name)
If eviction is not required then it's better to use regular map getMap(String)
.
K
- type of keysV
- type of valuesname
- - name of object<K,V> RMapCacheReactive<K,V> getMapCache(String name, MapOptions<K,V> options)
If eviction is not required then it's better to use regular map getMap(String, MapOptions)
.
K
- type of keyV
- type of valuename
- - name of objectoptions
- - map options<V> RBucketReactive<V> getBucket(String name)
V
- type of valuename
- - name of object<V> RBucketReactive<V> getBucket(String name, Codec codec)
V
- type of valuename
- - name of objectcodec
- - codec for value<V> List<RBucketReactive<V>> findBuckets(String pattern)
V
- type of valuepattern
- - pattern for name of buckets<V> RHyperLogLogReactive<V> getHyperLogLog(String name)
V
- type of valuesname
- - name of object<V> RHyperLogLogReactive<V> getHyperLogLog(String name, Codec codec)
V
- type of valuesname
- - name of objectcodec
- - codec of values<V> RListReactive<V> getList(String name)
V
- type of valuesname
- - name of object<V> RListReactive<V> getList(String name, Codec codec)
V
- type of valuesname
- - name of objectcodec
- - codec for values<K,V> RListMultimapReactive<K,V> getListMultimap(String name)
K
- type of keyV
- type of valuename
- - name of object<K,V> RListMultimapReactive<K,V> getListMultimap(String name, Codec codec)
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and values<K,V> RSetMultimapReactive<K,V> getSetMultimap(String name)
K
- type of keyV
- type of valuename
- - name of object<K,V> RSetMultimapReactive<K,V> getSetMultimap(String name, Codec codec)
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and values<K,V> RMapReactive<K,V> getMap(String name)
K
- type of keysV
- type of valuesname
- - name of object<K,V> RMapReactive<K,V> getMap(String name, MapOptions<K,V> options)
K
- type of keyV
- type of valuename
- - name of objectoptions
- - map options<K,V> RMapReactive<K,V> getMap(String name, Codec codec)
K
- type of keysV
- type of valuesname
- - name of objectcodec
- - codec for keys and values<K,V> RMapReactive<K,V> getMap(String name, Codec codec, MapOptions<K,V> options)
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuesoptions
- - map options<V> RSetReactive<V> getSet(String name)
V
- type of valuesname
- - name of object<V> RSetReactive<V> getSet(String name, Codec codec)
V
- type of valuesname
- - name of setcodec
- - codec for values<V> RScoredSortedSetReactive<V> getScoredSortedSet(String name)
V
- type of valuesname
- of scored sorted set<V> RScoredSortedSetReactive<V> getScoredSortedSet(String name, Codec codec)
V
- type of valuesname
- - name of scored sorted setcodec
- - codec for valuesRLexSortedSetReactive getLexSortedSet(String name)
name
- - name of object<M> RTopicReactive<M> getTopic(String name)
M
- type of messagename
- - name of object<M> RTopicReactive<M> getTopic(String name, Codec codec)
M
- type of messagename
- - name of objectcodec
- - codec for message<M> RPatternTopicReactive<M> getPatternTopic(String pattern)
M
- type of messagepattern
- of the topic<M> RPatternTopicReactive<M> getPatternTopic(String pattern, Codec codec)
M
- type of messagepattern
- of the topiccodec
- - codec for message<V> RQueueReactive<V> getQueue(String name)
V
- type of valuesname
- - name of object<V> RQueueReactive<V> getQueue(String name, Codec codec)
V
- type of valuesname
- - name of objectcodec
- - codec for values<V> RBlockingQueueReactive<V> getBlockingQueue(String name)
V
- type of valuesname
- - name of object<V> RBlockingQueueReactive<V> getBlockingQueue(String name, Codec codec)
V
- type of valuesname
- - name of objectcodec
- - code for values<V> RBlockingDequeReactive<V> getBlockingDeque(String name)
V
- type of valuename
- - name of object<V> RBlockingDequeReactive<V> getBlockingDeque(String name, Codec codec)
V
- type of valuename
- - name of objectcodec
- - deque objects codec<V> RDequeReactive<V> getDeque(String name)
V
- type of valuesname
- - name of object<V> RDequeReactive<V> getDeque(String name, Codec codec)
V
- type of valuesname
- - name of objectcodec
- - coded for valuesRAtomicLongReactive getAtomicLong(String name)
name
- of the "atomic long"RAtomicDoubleReactive getAtomicDouble(String name)
name
- of the "atomic double"RBitSetReactive getBitSet(String name)
name
- - name of objectRScriptReactive getScript()
RTransactionReactive createTransaction(TransactionOptions options)
options
- - transaction configurationRBatchReactive createBatch(BatchOptions options)
options
- - batch configuration@Deprecated RBatchReactive createBatch()
RKeysReactive getKeys()
void shutdown()
Config getConfig()
ReferenceCodecProvider getCodecProvider()
NodesGroup<Node> getNodesGroup()
NodesGroup<ClusterNode> getClusterNodesGroup()
boolean isShutdown()
true
if this Redisson instance has been shut down.true
if this Redisson instance has been shut down otherwise false
boolean isShuttingDown()
true
if this Redisson instance was started to be shutdown
or was shutdown isShutdown()
already.true
if this Redisson instance was started to be shutdown
or was shutdown isShutdown()
already otherwise false
Copyright © 2014–2018 The Redisson Project. All rights reserved.