Class RedissonRx
-
- org.redisson.RedissonRx
-
- All Implemented Interfaces:
RedissonRxClient
public class RedissonRx extends implements RedissonRxClient
Main infrastructure class allows to get access to all Redisson objects on top of Redis server.- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandRxExecutor
commandExecutor
protected ConnectionManager
connectionManager
protected EvictionScheduler
evictionScheduler
protected <,ResponseEntry>
responses
protected WriteBehindService
writeBehindService
-
Constructor Summary
Constructors Modifier Constructor Description protected
RedissonRx(Config config)
protected
RedissonRx(ConnectionManager connectionManager, EvictionScheduler evictionScheduler, WriteBehindService writeBehindService, <,ResponseEntry> responses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RBatchRx
createBatch()
Return batch object which executes group of command in pipeline.RBatchRx
createBatch(BatchOptions options)
Return batch object which executes group of command in pipeline.RTransactionRx
createTransaction(TransactionOptions options)
Creates transaction with READ_COMMITTED isolation level.RAtomicDoubleRx
name)
Returns "atomic double" instance by name.RAtomicLongRx
name)
Returns "atomic long" instance by name.RBinaryStreamRx
name)
Returns binary stream holder instance byname
RBitSetRx
name)
Returns bitSet instance by name.<V> RBlockingDequeRx<V>
name)
Returns unbounded blocking deque instance by name.<V> RBlockingDequeRx<V>
name, Codec codec)
Returns unbounded blocking deque instance by name using provided codec for deque objects.<V> RBlockingQueueRx<V>
name)
Returns blocking queue instance by name.<V> RBlockingQueueRx<V>
name, Codec codec)
Returns blocking queue instance by name using provided codec for queue objects.<V> RBucketRx<V>
name)
Returns object holder instance by name<V> RBucketRx<V>
name, Codec codec)
Returns object holder instance by name using provided codec for object.RBucketsRx
getBuckets()
Returns interface for mass operations with Bucket objects.RBucketsRx
getBuckets(Codec codec)
Returns interface for mass operations with Bucket objects using provided codec for object.NodesGroup<ClusterNode>
getClusterNodesGroup()
Get Redis cluster nodes group for server operationsCommandRxExecutor
getCommandExecutor()
Config
getConfig()
Allows to get configuration provided during Redisson instance creation.RCountDownLatchRx
name)
Returns CountDownLatch instance by name.<V> RDequeRx<V>
name)
Returns deque instance by name.<V> RDequeRx<V>
name, Codec codec)
Returns deque instance by name using provided codec for deque objects.RLockRx
name)
Returns Lock instance by name.<V> RGeoRx<V>
name)
Returns geospatial items holder instance byname
.<V> RGeoRx<V>
name, Codec codec)
Returns geospatial items holder instance byname
using provided codec for geospatial members.<V> RHyperLogLogRx<V>
name)
Returns HyperLogLog instance by name.<V> RHyperLogLogRx<V>
name, Codec codec)
Returns HyperLogLog instance by name using provided codec for hll objects.getId()
Returns id of this Redisson instanceRIdGeneratorRx
name)
Returns id generator by name.RKeysRx
getKeys()
Returns keys operations.RLexSortedSetRx
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>
name)
Returns list instance by name.<V> RListRx<V>
name, Codec codec)
Returns list instance by name using provided codec for list objects.<K,V>
RListMultimapRx<K,V>name)
Returns List based Multimap instance by name.<K,V>
RListMultimapRx<K,V>name, Codec codec)
Returns List based Multimap instance by name using provided codec for both map keys and values.<K,V>
RListMultimapCacheRx<K,V>name)
Returns List based Multimap cache instance by name.<K,V>
RListMultimapCacheRx<K,V>name, Codec codec)
Returns List based Multimap cache instance by name using provided codec for both map keys and values.RLockRx
name)
Returns Lock instance by name.<K,V>
RMapRx<K,V>name)
Returns map instance by name.<K,V>
RMapRx<K,V>name, MapOptions<K,V> options)
Returns map instance by name.<K,V>
RMapRx<K,V>name, Codec codec)
Returns map instance by name using provided codec for both map keys and values.<K,V>
RMapRx<K,V>name, Codec codec, MapOptions<K,V> options)
Returns map instance by name using provided codec for both map keys and values.<K,V>
RMapCacheRx<K,V>name)
Returns map-based cache instance by name.<K,V>
RMapCacheRx<K,V>name, MapOptions<K,V> options)
Returns map-based cache instance by name.<K,V>
RMapCacheRx<K,V>name, Codec codec)
Returns map-based cache instance by name using provided codec for both cache keys and values.<K,V>
RMapCacheRx<K,V>name, Codec codec, MapOptions<K,V> options)
Returns map-based cache instance byname
using providedcodec
for both cache keys and values.RLockRx
getMultiLock(RLock... locks)
Returns MultiLock instance associated with specifiedlocks
NodesGroup<Node>
getNodesGroup()
Get Redis nodes group for server operationsRPatternTopicRx
pattern)
Returns topic instance satisfies by pattern name.RPatternTopicRx
pattern, Codec codec)
Returns topic instance satisfies by pattern name using provided codec for messages.RPermitExpirableSemaphoreRx
name)
Returns semaphore instance by name.<V> RQueueRx<V>
name)
Returns queue instance by name.<V> RQueueRx<V>
name, Codec codec)
Returns queue instance by name using provided codec for queue objects.RRateLimiterRx
name)
Returns rate limiter instance byname
RReadWriteLockRx
name)
Returns ReadWriteLock instance by name.RLockRx
getRedLock(RLock... locks)
RReliableTopicRx
name)
Returns reliable topic instance by name.RReliableTopicRx
name, Codec codec)
Returns reliable topic instance by name using provided codec for messages.RRemoteService
getRemoteService()
Returns object for remote operations prefixed with the default name (redisson_remote_service)RRemoteService
name)
Returns object for remote operations prefixed with the specified nameRRemoteService
name, Codec codec)
Returns object for remote operations prefixed with the specified name and uses provided codec for method arguments and result.RRemoteService
getRemoteService(Codec codec)
Returns object for remote operations prefixed with the default name (redisson_remote_service) and uses provided codec for method arguments and result.<V> RRingBufferRx<V>
name)
Returns RingBuffer based queue.<V> RRingBufferRx<V>
name, Codec codec)
Returns RingBuffer based queue.<V> RScoredSortedSetRx<V>
name)
Returns Redis Sorted Set instance by name.<V> RScoredSortedSetRx<V>
name, Codec codec)
Returns Redis Sorted Set instance by name using provided codec for sorted set objects.RScriptRx
getScript()
Returns script operations objectRScriptRx
getScript(Codec codec)
Returns script operations object using provided codec.RSemaphoreRx
name)
Returns semaphore instance by name<V> RSetRx<V>
name)
Returns set instance by name.<V> RSetRx<V>
name, Codec codec)
Returns set instance by name using provided codec for set objects.<V> RSetCacheRx<V>
name)
Returns set-based cache instance byname
.<V> RSetCacheRx<V>
name, Codec codec)
Returns set-based cache instance byname
.<K,V>
RSetMultimapRx<K,V>name)
Returns Set based Multimap instance by name.<K,V>
RSetMultimapRx<K,V>name, Codec codec)
Returns Set based Multimap instance by name using provided codec for both map keys and values.<K,V>
RSetMultimapCacheRx<K,V>name)
Returns Set based Multimap cache instance by name.<K,V>
RSetMultimapCacheRx<K,V>name, Codec codec)
Returns Set based Multimap cache instance by name using provided codec for both map keys and values.RLockRx
name)
Returns Spin lock instance by name.RLockRx
name, LockOptions.BackOff backOff)
Returns Spin lock instance by name with specified back off options.<K,V>
RStreamRx<K,V>name)
Returns stream instance byname
<K,V>
RStreamRx<K,V>name, Codec codec)
Returns stream instance byname
using providedcodec
for entries.<V> RTimeSeriesRx<V>
name)
Returns time-series instance byname
<V> RTimeSeriesRx<V>
name, Codec codec)
Returns time-series instance byname
using providedcodec
for values.RTopicRx
name)
Returns topic instance by name.RTopicRx
name, Codec codec)
Returns topic instance by name using provided codec for messages.<V> RTransferQueueRx<V>
name)
Returns transfer queue instance by name.<V> RTransferQueueRx<V>
name, Codec codec)
Returns transfer queue instance by name using provided codec for queue objects.boolean
isShutdown()
Returnstrue
if this Redisson instance has been shut down.boolean
isShuttingDown()
Returnstrue
if this Redisson instance was started to be shutdown or was shutdownRedissonRxClient.isShutdown()
already.void
shutdown()
Shuts down Redisson instance NOT Redis server
-
-
-
Field Detail
-
writeBehindService
protected final WriteBehindService writeBehindService
-
evictionScheduler
protected final EvictionScheduler evictionScheduler
-
commandExecutor
protected final CommandRxExecutor commandExecutor
-
connectionManager
protected final ConnectionManager connectionManager
-
responses
protected final <,ResponseEntry> responses
-
-
Constructor Detail
-
RedissonRx
protected RedissonRx(Config config)
-
RedissonRx
protected RedissonRx(ConnectionManager connectionManager, EvictionScheduler evictionScheduler, WriteBehindService writeBehindService, <,ResponseEntry> responses)
-
-
Method Detail
-
getCommandExecutor
public CommandRxExecutor getCommandExecutor()
-
getStream
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns stream instance byname
Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- of stream- Returns:
- RStream object
-
getStream
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns stream instance byname
using providedcodec
for entries.Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of streamcodec
- - codec for entry- Returns:
- RStream object
-
getGeo
public <V> name)
Description copied from interface:RedissonRxClient
Returns geospatial items holder instance byname
.- Specified by:
getGeo
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of object- Returns:
- Geo object
-
getGeo
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns geospatial items holder instance byname
using provided codec for geospatial members.- Specified by:
getGeo
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of objectcodec
- - codec for value- Returns:
- Geo object
-
getFairLock
public name)
Description copied from interface:RedissonRxClient
Returns Lock instance by name.Implements a fair locking so it guarantees an acquire order by threads.
To increase reliability during failover, all operations wait for propagation to all Redis slaves.
- Specified by:
getFairLock
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getRateLimiter
public name)
Description copied from interface:RedissonRxClient
Returns rate limiter instance byname
- Specified by:
getRateLimiter
in interfaceRedissonRxClient
- Parameters:
name
- of rate limiter- Returns:
- RateLimiter object
-
getBinaryStream
public name)
Description copied from interface:RedissonRxClient
Returns binary stream holder instance byname
- Specified by:
getBinaryStream
in interfaceRedissonRxClient
- Parameters:
name
- of binary stream- Returns:
- BinaryStream object
-
getSemaphore
public name)
Description copied from interface:RedissonRxClient
Returns semaphore instance by name- Specified by:
getSemaphore
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Semaphore object
-
getPermitExpirableSemaphore
public name)
Description copied from interface:RedissonRxClient
Returns semaphore instance by name. Supports lease time parameter for each acquired permit.- Specified by:
getPermitExpirableSemaphore
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- PermitExpirableSemaphore object
-
getReadWriteLock
public name)
Description copied from interface:RedissonRxClient
Returns ReadWriteLock instance by name.To increase reliability during failover, all operations wait for propagation to all Redis slaves.
- Specified by:
getReadWriteLock
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getLock
public name)
Description copied from interface:RedissonRxClient
Returns Lock instance by name.Implements a non-fair locking so doesn't guarantees an acquire order by threads.
To increase reliability during failover, all operations wait for propagation to all Redis slaves.
- Specified by:
getLock
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getSpinLock
public name)
Description copied from interface:RedissonRxClient
Returns Spin lock instance by name.Implements a non-fair locking so doesn't guarantees an acquire order by threads.
Lock doesn't use a pub/sub mechanism
- Specified by:
getSpinLock
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getSpinLock
public name, LockOptions.BackOff backOff)
Description copied from interface:RedissonRxClient
Returns Spin lock instance by name with specified back off options.Implements a non-fair locking so doesn't guarantees an acquire order by threads.
Lock doesn't use a pub/sub mechanism
- Specified by:
getSpinLock
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getMultiLock
public RLockRx getMultiLock(RLock... locks)
Description copied from interface:RedissonRxClient
Returns MultiLock instance associated with specifiedlocks
- Specified by:
getMultiLock
in interfaceRedissonRxClient
- Parameters:
locks
- - collection of locks- Returns:
- MultiLock object
-
getRedLock
public RLockRx getRedLock(RLock... locks)
- Specified by:
getRedLock
in interfaceRedissonRxClient
-
getCountDownLatch
public name)
Description copied from interface:RedissonRxClient
Returns CountDownLatch instance by name.- Specified by:
getCountDownLatch
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- CountDownLatch object
-
getMapCache
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns map-based cache instance by 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
RedissonRxClient.getMap(String, Codec)
.- Specified by:
getMapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- MapCache object
-
getMapCache
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns map-based cache instance by name. Supports entry eviction with a given MaxIdleTime and TTL settings.If eviction is not required then it's better to use regular map
RedissonRxClient.getMap(String)
.- Specified by:
getMapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of object- Returns:
- MapCache object
-
getBucket
public <V> name)
Description copied from interface:RedissonRxClient
Returns object holder instance by name- Specified by:
getBucket
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of object- Returns:
- Bucket object
-
getBucket
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns object holder instance by name using provided codec for object.- Specified by:
getBucket
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of objectcodec
- - codec for value- Returns:
- Bucket object
-
getBuckets
public RBucketsRx getBuckets()
Description copied from interface:RedissonRxClient
Returns interface for mass operations with Bucket objects.- Specified by:
getBuckets
in interfaceRedissonRxClient
- Returns:
- Buckets
-
getBuckets
public RBucketsRx getBuckets(Codec codec)
Description copied from interface:RedissonRxClient
Returns interface for mass operations with Bucket objects using provided codec for object.- Specified by:
getBuckets
in interfaceRedissonRxClient
- Parameters:
codec
- - codec for bucket objects- Returns:
- Buckets
-
getHyperLogLog
public <V> name)
Description copied from interface:RedissonRxClient
Returns HyperLogLog instance by name.- Specified by:
getHyperLogLog
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- HyperLogLog object
-
getHyperLogLog
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns HyperLogLog instance by name using provided codec for hll objects.- Specified by:
getHyperLogLog
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec of values- Returns:
- HyperLogLog object
-
getIdGenerator
public name)
Description copied from interface:RedissonRxClient
Returns id generator by name.- Specified by:
getIdGenerator
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- IdGenerator object
-
getList
public <V> name)
Description copied from interface:RedissonRxClient
Returns list instance by name.- Specified by:
getList
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- List object
-
getList
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns list instance by name using provided codec for list objects.- Specified by:
getList
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- List object
-
getListMultimap
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns List based Multimap instance by name.- Specified by:
getListMultimap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- ListMultimap object
-
getListMultimap
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns List based Multimap instance by name using provided codec for both map keys and values.- Specified by:
getListMultimap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- RListMultimapReactive object
-
getListMultimapCache
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns List based Multimap cache instance by name. Supports key eviction by specifying a time to live. If eviction is not required then it's better to use regular list multimapRedissonRxClient.getListMultimap(String)
.- Specified by:
getListMultimapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- RListMultimapCacheRx object
-
getListMultimapCache
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns List based Multimap cache instance by name using provided codec for both map keys and values. Supports key eviction by specifying a time to live. If eviction is not required then it's better to use regular list multimapRedissonRxClient.getListMultimap(String, Codec)
.- Specified by:
getListMultimapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- RListMultimapCacheRx object
-
getSetMultimap
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns Set based Multimap instance by name.- Specified by:
getSetMultimap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- SetMultimap object
-
getSetMultimap
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns Set based Multimap instance by name using provided codec for both map keys and values.- Specified by:
getSetMultimap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- SetMultimap object
-
getSetMultimapCache
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns Set based Multimap cache instance by name. Supports key eviction by specifying a time to live. If eviction is not required then it's better to use regular set multimapRedissonRxClient.getSetMultimap(String)
.- Specified by:
getSetMultimapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- RSetMultimapCacheRx object
-
getSetMultimapCache
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns Set based Multimap cache instance by name using provided codec for both map keys and values. Supports key eviction by specifying a time to live. If eviction is not required then it's better to use regular set multimapRedissonRxClient.getSetMultimap(String, Codec)
.- Specified by:
getSetMultimapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- RSetMultimapCacheRx object
-
getMap
public <K,V> name)
Description copied from interface:RedissonRxClient
Returns map instance by name.- Specified by:
getMap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of object- Returns:
- Map object
-
getMap
public <K,V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns map instance by name using provided codec for both map keys and values.- Specified by:
getMap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- Map object
-
getSet
public <V> name)
Description copied from interface:RedissonRxClient
Returns set instance by name.- Specified by:
getSet
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- Set object
-
getSet
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns set instance by name using provided codec for set objects.- Specified by:
getSet
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of setcodec
- - codec for values- Returns:
- Set object
-
getScoredSortedSet
public <V> name)
Description copied from interface:RedissonRxClient
Returns Redis Sorted Set instance by name. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSet
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- of scored sorted set- Returns:
- ScoredSortedSet object
-
getScoredSortedSet
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns Redis Sorted Set instance by name using provided codec for sorted set objects. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSet
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of scored sorted setcodec
- - codec for values- Returns:
- ScoredSortedSet object
-
getLexSortedSet
public name)
Description copied from interface:RedissonRxClient
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- Specified by:
getLexSortedSet
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- LexSortedSet object
-
getTopic
public name)
Description copied from interface:RedissonRxClient
Returns topic instance by name.- Specified by:
getTopic
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- Topic object
-
getTopic
public name, Codec codec)
Description copied from interface:RedissonRxClient
Returns topic instance by name using provided codec for messages.- Specified by:
getTopic
in interfaceRedissonRxClient
- Parameters:
name
- - name of objectcodec
- - codec for message- Returns:
- Topic object
-
getReliableTopic
public name)
Description copied from interface:RedissonRxClient
Returns reliable topic instance by name.Dedicated Redis connection is allocated per instance (subscriber) of this object. Messages are delivered to all listeners attached to the same Redis setup.
Requires Redis 5.0.0 and higher.
- Specified by:
getReliableTopic
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- ReliableTopic object
-
getReliableTopic
public name, Codec codec)
Description copied from interface:RedissonRxClient
Returns reliable topic instance by name using provided codec for messages.Dedicated Redis connection is allocated per instance (subscriber) of this object. Messages are delivered to all listeners attached to the same Redis setup.
Requires Redis 5.0.0 and higher.
- Specified by:
getReliableTopic
in interfaceRedissonRxClient
- Parameters:
name
- - name of objectcodec
- - codec for message- Returns:
- ReliableTopic object
-
getPatternTopic
public pattern)
Description copied from interface:RedissonRxClient
Returns topic instance satisfies by pattern name. Supported glob-style patterns: h?llo subscribes to hello, hallo and hxllo h*llo subscribes to hllo and heeeello h[ae]llo subscribes to hello and hallo, but not hillo- Specified by:
getPatternTopic
in interfaceRedissonRxClient
- Parameters:
pattern
- of the topic- Returns:
- PatternTopic object
-
getPatternTopic
public pattern, Codec codec)
Description copied from interface:RedissonRxClient
Returns topic instance satisfies by pattern name using provided codec for messages. Supported glob-style patterns: h?llo subscribes to hello, hallo and hxllo h*llo subscribes to hllo and heeeello h[ae]llo subscribes to hello and hallo, but not hillo- Specified by:
getPatternTopic
in interfaceRedissonRxClient
- Parameters:
pattern
- of the topiccodec
- - codec for message- Returns:
- PatternTopic object
-
getQueue
public <V> name)
Description copied from interface:RedissonRxClient
Returns queue instance by name.- Specified by:
getQueue
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- Queue object
-
getQueue
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns queue instance by name using provided codec for queue objects.- Specified by:
getQueue
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- Queue object
-
getRingBuffer
public <V> name)
Description copied from interface:RedissonRxClient
Returns RingBuffer based queue.- Specified by:
getRingBuffer
in interfaceRedissonRxClient
- Type Parameters:
V
- value type- Parameters:
name
- - name of object- Returns:
- RingBuffer object
-
getRingBuffer
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns RingBuffer based queue.- Specified by:
getRingBuffer
in interfaceRedissonRxClient
- Type Parameters:
V
- value type- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- RingBuffer object
-
getBlockingQueue
public <V> name)
Description copied from interface:RedissonRxClient
Returns blocking queue instance by name.- Specified by:
getBlockingQueue
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- BlockingQueue object
-
getBlockingQueue
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns blocking queue instance by name using provided codec for queue objects.- Specified by:
getBlockingQueue
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - code for values- Returns:
- BlockingQueue object
-
getDeque
public <V> name)
Description copied from interface:RedissonRxClient
Returns deque instance by name.- Specified by:
getDeque
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- Deque object
-
getDeque
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns deque instance by name using provided codec for deque objects.- Specified by:
getDeque
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - coded for values- Returns:
- Deque object
-
getTimeSeries
public <V> name)
Description copied from interface:RedissonRxClient
Returns time-series instance byname
- Specified by:
getTimeSeries
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of instance- Returns:
- RTimeSeries object
-
getTimeSeries
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns time-series instance byname
using providedcodec
for values.- Specified by:
getTimeSeries
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of instancecodec
- - codec for values- Returns:
- RTimeSeries object
-
getSetCache
public <V> name)
Description copied from interface:RedissonRxClient
Returns set-based cache instance byname
. Supports value eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonRxClient.getSet(String, Codec)
.- Specified by:
getSetCache
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- SetCache object
-
getSetCache
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns set-based cache instance byname
. Supports value eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonRxClient.getSet(String, Codec)
.- Specified by:
getSetCache
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- SetCache object
-
getAtomicLong
public name)
Description copied from interface:RedissonRxClient
Returns "atomic long" instance by name.- Specified by:
getAtomicLong
in interfaceRedissonRxClient
- Parameters:
name
- of the "atomic long"- Returns:
- AtomicLong object
-
getAtomicDouble
public name)
Description copied from interface:RedissonRxClient
Returns "atomic double" instance by name.- Specified by:
getAtomicDouble
in interfaceRedissonRxClient
- Parameters:
name
- of the "atomic double"- Returns:
- AtomicLong object
-
getRemoteService
public RRemoteService getRemoteService()
Description copied from interface:RedissonRxClient
Returns object for remote operations prefixed with the default name (redisson_remote_service)- Specified by:
getRemoteService
in interfaceRedissonRxClient
- Returns:
- RemoteService object
-
getRemoteService
public name)
Description copied from interface:RedissonRxClient
Returns object for remote operations prefixed with the specified name- Specified by:
getRemoteService
in interfaceRedissonRxClient
- Parameters:
name
- - the name used as the Redis key prefix for the services- Returns:
- RemoteService object
-
getRemoteService
public RRemoteService getRemoteService(Codec codec)
Description copied from interface:RedissonRxClient
Returns object for remote operations prefixed with the default name (redisson_remote_service) and uses provided codec for method arguments and result.- Specified by:
getRemoteService
in interfaceRedissonRxClient
- Parameters:
codec
- - codec for response and request- Returns:
- RemoteService object
-
getRemoteService
public name, Codec codec)
Description copied from interface:RedissonRxClient
Returns object for remote operations prefixed with the specified name and uses provided codec for method arguments and result.- Specified by:
getRemoteService
in interfaceRedissonRxClient
- Parameters:
name
- - the name used as the Redis key prefix for the servicescodec
- - codec for response and request- Returns:
- RemoteService object
-
getBitSet
public name)
Description copied from interface:RedissonRxClient
Returns bitSet instance by name.- Specified by:
getBitSet
in interfaceRedissonRxClient
- Parameters:
name
- - name of object- Returns:
- BitSet object
-
getScript
public RScriptRx getScript()
Description copied from interface:RedissonRxClient
Returns script operations object- Specified by:
getScript
in interfaceRedissonRxClient
- Returns:
- Script object
-
getScript
public RScriptRx getScript(Codec codec)
Description copied from interface:RedissonRxClient
Returns script operations object using provided codec.- Specified by:
getScript
in interfaceRedissonRxClient
- Parameters:
codec
- - codec for params and result- Returns:
- Script object
-
createBatch
public RBatchRx createBatch()
Description copied from interface:RedissonRxClient
Return batch object which executes group of command in pipeline. See- Specified by:
createBatch
in interfaceRedissonRxClient
- Returns:
- Batch object
-
createBatch
public RBatchRx createBatch(BatchOptions options)
Description copied from interface:RedissonRxClient
Return batch object which executes group of command in pipeline. See- Specified by:
createBatch
in interfaceRedissonRxClient
- Parameters:
options
- - batch configuration- Returns:
- Batch object
-
getKeys
public RKeysRx getKeys()
Description copied from interface:RedissonRxClient
Returns keys operations. Each of Redis/Redisson object associated with own key- Specified by:
getKeys
in interfaceRedissonRxClient
- Returns:
- Keys object
-
getConfig
public Config getConfig()
Description copied from interface:RedissonRxClient
Allows to get configuration provided during Redisson instance creation. Further changes on this object not affect Redisson instance.- Specified by:
getConfig
in interfaceRedissonRxClient
- Returns:
- Config object
-
getNodesGroup
public NodesGroup<Node> getNodesGroup()
Description copied from interface:RedissonRxClient
Get Redis nodes group for server operations- Specified by:
getNodesGroup
in interfaceRedissonRxClient
- Returns:
- NodesGroup object
-
getClusterNodesGroup
public NodesGroup<ClusterNode> getClusterNodesGroup()
Description copied from interface:RedissonRxClient
Get Redis cluster nodes group for server operations- Specified by:
getClusterNodesGroup
in interfaceRedissonRxClient
- Returns:
- NodesGroup object
-
shutdown
public void shutdown()
Description copied from interface:RedissonRxClient
Shuts down Redisson instance NOT Redis server- Specified by:
shutdown
in interfaceRedissonRxClient
-
isShutdown
public boolean isShutdown()
Description copied from interface:RedissonRxClient
Returnstrue
if this Redisson instance has been shut down.- Specified by:
isShutdown
in interfaceRedissonRxClient
- Returns:
true
if this Redisson instance has been shut down otherwisefalse
-
isShuttingDown
public boolean isShuttingDown()
Description copied from interface:RedissonRxClient
Returnstrue
if this Redisson instance was started to be shutdown or was shutdownRedissonRxClient.isShutdown()
already.- Specified by:
isShuttingDown
in interfaceRedissonRxClient
- Returns:
true
if this Redisson instance was started to be shutdown or was shutdownRedissonRxClient.isShutdown()
already otherwisefalse
-
getMapCache
public <K,V> name, Codec codec, MapOptions<K,V> options)
Description copied from interface:RedissonRxClient
Returns map-based cache instance byname
using providedcodec
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
RedissonRxClient.getMap(String, Codec, MapOptions)
.- Specified by:
getMapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - object namecodec
- - codec for keys and valuesoptions
- - map options- Returns:
- MapCache object
-
getMapCache
public <K,V> name, MapOptions<K,V> options)
Description copied from interface:RedissonRxClient
Returns map-based cache instance by name. Supports entry eviction with a given MaxIdleTime and TTL settings.If eviction is not required then it's better to use regular map
RedissonRxClient.getMap(String, MapOptions)
.- Specified by:
getMapCache
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectoptions
- - map options- Returns:
- MapCache object
-
getMap
public <K,V> name, MapOptions<K,V> options)
Description copied from interface:RedissonRxClient
Returns map instance by name.- Specified by:
getMap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectoptions
- - map options- Returns:
- Map object
-
getMap
public <K,V> name, Codec codec, MapOptions<K,V> options)
Description copied from interface:RedissonRxClient
Returns map instance by name using provided codec for both map keys and values.- Specified by:
getMap
in interfaceRedissonRxClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and valuesoptions
- - map options- Returns:
- Map object
-
createTransaction
public RTransactionRx createTransaction(TransactionOptions options)
Description copied from interface:RedissonRxClient
Creates transaction with READ_COMMITTED isolation level.- Specified by:
createTransaction
in interfaceRedissonRxClient
- Parameters:
options
- - transaction configuration- Returns:
- Transaction object
-
getBlockingDeque
public <V> name)
Description copied from interface:RedissonRxClient
Returns unbounded blocking deque instance by name.- Specified by:
getBlockingDeque
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of object- Returns:
- BlockingDeque object
-
getBlockingDeque
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns unbounded blocking deque instance by name using provided codec for deque objects.- Specified by:
getBlockingDeque
in interfaceRedissonRxClient
- Type Parameters:
V
- type of value- Parameters:
name
- - name of objectcodec
- - deque objects codec- Returns:
- BlockingDeque object
-
getTransferQueue
public <V> name)
Description copied from interface:RedissonRxClient
Returns transfer queue instance by name.- Specified by:
getTransferQueue
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- TransferQueue object
-
getTransferQueue
public <V> name, Codec codec)
Description copied from interface:RedissonRxClient
Returns transfer queue instance by name using provided codec for queue objects.- Specified by:
getTransferQueue
in interfaceRedissonRxClient
- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - code for values- Returns:
- TransferQueue object
-
getId
public getId()
Description copied from interface:RedissonRxClient
Returns id of this Redisson instance- Specified by:
getId
in interfaceRedissonRxClient
- Returns:
- id
-
-