public class RedissonReactive extends Object implements RedissonReactiveClient
Modifier and Type | Field and Description |
---|---|
protected ReferenceCodecProvider |
codecProvider |
protected CommandReactiveService |
commandExecutor |
protected Config |
config |
protected ConnectionManager |
connectionManager |
protected EvictionScheduler |
evictionScheduler |
protected UUID |
id |
protected SemaphorePubSub |
semaphorePubSub |
Modifier | Constructor and Description |
---|---|
protected |
RedissonReactive(Config config) |
Modifier and Type | Method and Description |
---|---|
RBatchReactive |
createBatch() |
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.
|
protected void |
enableRedissonReferenceSupport() |
<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> 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.
|
<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,
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> RMapReactive<K,V> |
getMap(String name,
MapOptions<K,V> options)
Returns map instance by name.
|
<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.
|
<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. |
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name,
MapOptions<K,V> options)
Returns map-based cache instance by name.
|
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.
|
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.
|
<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 RedissonReactiveClient.isShutdown() already. |
void |
shutdown()
Shuts down Redisson instance NOT Redis server
|
protected final EvictionScheduler evictionScheduler
protected final CommandReactiveService commandExecutor
protected final ConnectionManager connectionManager
protected final Config config
protected final ReferenceCodecProvider codecProvider
protected final UUID id
protected final SemaphorePubSub semaphorePubSub
protected RedissonReactive(Config config)
public RSemaphoreReactive getSemaphore(String name)
RedissonReactiveClient
getSemaphore
in interface RedissonReactiveClient
name
- - name of objectpublic RPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(String name)
RedissonReactiveClient
getPermitExpirableSemaphore
in interface RedissonReactiveClient
name
- - name of objectpublic RReadWriteLockReactive getReadWriteLock(String name)
RedissonReactiveClient
getReadWriteLock
in interface RedissonReactiveClient
name
- - name of objectpublic RLockReactive getLock(String name)
RedissonReactiveClient
Implements a non-fair locking so doesn't guarantee an acquire order by threads.
getLock
in interface RedissonReactiveClient
name
- - name of objectpublic <K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec)
RedissonReactiveClient
If eviction is not required then it's better to use regular map RedissonReactiveClient.getMap(String, Codec)
.
getMapCache
in interface RedissonReactiveClient
K
- type of keysV
- type of valuesname
- - name of objectcodec
- - codec for valuespublic <K,V> RMapCacheReactive<K,V> getMapCache(String name)
RedissonReactiveClient
If eviction is not required then it's better to use regular map RedissonReactiveClient.getMap(String)
.
getMapCache
in interface RedissonReactiveClient
K
- type of keysV
- type of valuesname
- - name of objectpublic <V> RBucketReactive<V> getBucket(String name)
RedissonReactiveClient
getBucket
in interface RedissonReactiveClient
V
- type of valuename
- - name of objectpublic <V> RBucketReactive<V> getBucket(String name, Codec codec)
RedissonReactiveClient
getBucket
in interface RedissonReactiveClient
V
- type of valuename
- - name of objectcodec
- - codec for valuepublic <V> List<RBucketReactive<V>> findBuckets(String pattern)
RedissonReactiveClient
findBuckets
in interface RedissonReactiveClient
V
- type of valuepattern
- - pattern for name of bucketspublic <V> RHyperLogLogReactive<V> getHyperLogLog(String name)
RedissonReactiveClient
getHyperLogLog
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RHyperLogLogReactive<V> getHyperLogLog(String name, Codec codec)
RedissonReactiveClient
getHyperLogLog
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectcodec
- - codec of valuespublic <V> RListReactive<V> getList(String name)
RedissonReactiveClient
getList
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RListReactive<V> getList(String name, Codec codec)
RedissonReactiveClient
getList
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectcodec
- - codec for valuespublic <K,V> RListMultimapReactive<K,V> getListMultimap(String name)
RedissonReactiveClient
getListMultimap
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RListMultimapReactive<K,V> getListMultimap(String name, Codec codec)
RedissonReactiveClient
getListMultimap
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RSetMultimapReactive<K,V> getSetMultimap(String name)
RedissonReactiveClient
getSetMultimap
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RSetMultimapReactive<K,V> getSetMultimap(String name, Codec codec)
RedissonReactiveClient
getSetMultimap
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RMapReactive<K,V> getMap(String name)
RedissonReactiveClient
getMap
in interface RedissonReactiveClient
K
- type of keysV
- type of valuesname
- - name of objectpublic <K,V> RMapReactive<K,V> getMap(String name, Codec codec)
RedissonReactiveClient
getMap
in interface RedissonReactiveClient
K
- type of keysV
- type of valuesname
- - name of objectcodec
- - codec for keys and valuespublic <V> RSetReactive<V> getSet(String name)
RedissonReactiveClient
getSet
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RSetReactive<V> getSet(String name, Codec codec)
RedissonReactiveClient
getSet
in interface RedissonReactiveClient
V
- type of valuesname
- - name of setcodec
- - codec for valuespublic <V> RScoredSortedSetReactive<V> getScoredSortedSet(String name)
RedissonReactiveClient
getScoredSortedSet
in interface RedissonReactiveClient
V
- type of valuesname
- of scored sorted setpublic <V> RScoredSortedSetReactive<V> getScoredSortedSet(String name, Codec codec)
RedissonReactiveClient
getScoredSortedSet
in interface RedissonReactiveClient
V
- type of valuesname
- - name of scored sorted setcodec
- - codec for valuespublic RLexSortedSetReactive getLexSortedSet(String name)
RedissonReactiveClient
getLexSortedSet
in interface RedissonReactiveClient
name
- - name of objectpublic <M> RTopicReactive<M> getTopic(String name)
RedissonReactiveClient
getTopic
in interface RedissonReactiveClient
M
- type of messagename
- - name of objectpublic <M> RTopicReactive<M> getTopic(String name, Codec codec)
RedissonReactiveClient
getTopic
in interface RedissonReactiveClient
M
- type of messagename
- - name of objectcodec
- - codec for messagepublic <M> RPatternTopicReactive<M> getPatternTopic(String pattern)
RedissonReactiveClient
getPatternTopic
in interface RedissonReactiveClient
M
- type of messagepattern
- of the topicpublic <M> RPatternTopicReactive<M> getPatternTopic(String pattern, Codec codec)
RedissonReactiveClient
getPatternTopic
in interface RedissonReactiveClient
M
- type of messagepattern
- of the topiccodec
- - codec for messagepublic <V> RQueueReactive<V> getQueue(String name)
RedissonReactiveClient
getQueue
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RQueueReactive<V> getQueue(String name, Codec codec)
RedissonReactiveClient
getQueue
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectcodec
- - codec for valuespublic <V> RBlockingQueueReactive<V> getBlockingQueue(String name)
RedissonReactiveClient
getBlockingQueue
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RBlockingQueueReactive<V> getBlockingQueue(String name, Codec codec)
RedissonReactiveClient
getBlockingQueue
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectcodec
- - code for valuespublic <V> RDequeReactive<V> getDeque(String name)
RedissonReactiveClient
getDeque
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RDequeReactive<V> getDeque(String name, Codec codec)
RedissonReactiveClient
getDeque
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectcodec
- - coded for valuespublic <V> RSetCacheReactive<V> getSetCache(String name)
RedissonReactiveClient
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RedissonReactiveClient.getSet(String, Codec)
.
getSetCache
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectpublic <V> RSetCacheReactive<V> getSetCache(String name, Codec codec)
RedissonReactiveClient
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RedissonReactiveClient.getSet(String, Codec)
.
getSetCache
in interface RedissonReactiveClient
V
- type of valuesname
- - name of objectcodec
- - codec for valuespublic RAtomicLongReactive getAtomicLong(String name)
RedissonReactiveClient
getAtomicLong
in interface RedissonReactiveClient
name
- of the "atomic long"public RAtomicDoubleReactive getAtomicDouble(String name)
RedissonReactiveClient
getAtomicDouble
in interface RedissonReactiveClient
name
- of the "atomic double"public RBitSetReactive getBitSet(String name)
RedissonReactiveClient
getBitSet
in interface RedissonReactiveClient
name
- - name of objectpublic RScriptReactive getScript()
RedissonReactiveClient
getScript
in interface RedissonReactiveClient
public RBatchReactive createBatch(BatchOptions options)
RedissonReactiveClient
createBatch
in interface RedissonReactiveClient
options
- - batch configurationpublic RBatchReactive createBatch()
createBatch
in interface RedissonReactiveClient
public RKeysReactive getKeys()
RedissonReactiveClient
getKeys
in interface RedissonReactiveClient
public Config getConfig()
RedissonReactiveClient
getConfig
in interface RedissonReactiveClient
public ReferenceCodecProvider getCodecProvider()
RedissonReactiveClient
getCodecProvider
in interface RedissonReactiveClient
public NodesGroup<Node> getNodesGroup()
RedissonReactiveClient
getNodesGroup
in interface RedissonReactiveClient
public NodesGroup<ClusterNode> getClusterNodesGroup()
RedissonReactiveClient
getClusterNodesGroup
in interface RedissonReactiveClient
public void shutdown()
RedissonReactiveClient
shutdown
in interface RedissonReactiveClient
public boolean isShutdown()
RedissonReactiveClient
true
if this Redisson instance has been shut down.isShutdown
in interface RedissonReactiveClient
true
if this Redisson instance has been shut down otherwise false
public boolean isShuttingDown()
RedissonReactiveClient
true
if this Redisson instance was started to be shutdown
or was shutdown RedissonReactiveClient.isShutdown()
already.isShuttingDown
in interface RedissonReactiveClient
true
if this Redisson instance was started to be shutdown
or was shutdown RedissonReactiveClient.isShutdown()
already otherwise false
protected void enableRedissonReferenceSupport()
public <K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec, MapOptions<K,V> options)
RedissonReactiveClient
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 RedissonReactiveClient.getMap(String, Codec, MapOptions)
.
getMapCache
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - object namecodec
- - codec for keys and valuesoptions
- - map optionspublic <K,V> RMapCacheReactive<K,V> getMapCache(String name, MapOptions<K,V> options)
RedissonReactiveClient
If eviction is not required then it's better to use regular map RedissonReactiveClient.getMap(String, MapOptions)
.
getMapCache
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectoptions
- - map optionspublic <K,V> RMapReactive<K,V> getMap(String name, MapOptions<K,V> options)
RedissonReactiveClient
getMap
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectoptions
- - map optionspublic <K,V> RMapReactive<K,V> getMap(String name, Codec codec, MapOptions<K,V> options)
RedissonReactiveClient
getMap
in interface RedissonReactiveClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuesoptions
- - map optionspublic RTransactionReactive createTransaction(TransactionOptions options)
RedissonReactiveClient
createTransaction
in interface RedissonReactiveClient
options
- - transaction configurationCopyright © 2014–2018 The Redisson Project. All rights reserved.