Interface RedissonRxClient
-
- All Known Implementing Classes:
RedissonRx
public interface RedissonRxClient
Main Redisson interface for access to all redisson objects with RxJava2 interface.- Author:
- Nikita Koksharov
- See Also:
RedissonReactiveClient
,RedissonClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated 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
getAtomicDouble(String name)
Returns "atomic double" instance by name.RAtomicLongRx
getAtomicLong(String name)
Returns "atomic long" instance by name.RBinaryStreamRx
getBinaryStream(String name)
Returns binary stream holder instance byname
RBitSetRx
getBitSet(String name)
Returns bitSet instance by name.<V> RBlockingDequeRx<V>
getBlockingDeque(String name)
Returns unbounded blocking deque instance by name.<V> RBlockingDequeRx<V>
getBlockingDeque(String name, Codec codec)
Returns unbounded blocking deque instance by name using provided codec for deque objects.<V> RBlockingQueueRx<V>
getBlockingQueue(String name)
Returns blocking queue instance by name.<V> RBlockingQueueRx<V>
getBlockingQueue(String name, Codec codec)
Returns blocking queue instance by name using provided codec for queue objects.<V> RBucketRx<V>
getBucket(String name)
Returns object holder instance by name<V> RBucketRx<V>
getBucket(String 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 operationsConfig
getConfig()
Allows to get configuration provided during Redisson instance creation.RCountDownLatchRx
getCountDownLatch(String name)
Returns CountDownLatch instance by name.<V> RDequeRx<V>
getDeque(String name)
Returns deque instance by name.<V> RDequeRx<V>
getDeque(String name, Codec codec)
Returns deque instance by name using provided codec for deque objects.RLockRx
getFairLock(String name)
Returns Lock instance by name.<V> RGeoRx<V>
getGeo(String name)
Returns geospatial items holder instance byname
.<V> RGeoRx<V>
getGeo(String name, Codec codec)
Returns geospatial items holder instance byname
using provided codec for geospatial members.<V> RHyperLogLogRx<V>
getHyperLogLog(String name)
Returns HyperLogLog instance by name.<V> RHyperLogLogRx<V>
getHyperLogLog(String name, Codec codec)
Returns HyperLogLog instance by name using provided codec for hll objects.String
getId()
Returns id of this Redisson instanceRIdGeneratorRx
getIdGenerator(String name)
Returns id generator by name.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)
Returns list instance by name using provided codec for list objects.<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>
RListMultimapCacheRx<K,V>getListMultimapCache(String name)
Returns List based Multimap cache instance by name.<K,V>
RListMultimapCacheRx<K,V>getListMultimapCache(String name, Codec codec)
Returns List based Multimap cache instance by name using provided codec for both map keys and values.RLockRx
getLock(String name)
Returns Lock instance by name.<K,V>
RMapRx<K,V>getMap(String name)
Returns map instance by name.<K,V>
RMapRx<K,V>getMap(String name, MapOptions<K,V> options)
Returns map instance by name.<K,V>
RMapRx<K,V>getMap(String name, Codec codec)
Returns map instance by name using provided codec for both map keys and values.<K,V>
RMapRx<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>
RMapCacheRx<K,V>getMapCache(String name)
Returns map-based cache instance by name.<K,V>
RMapCacheRx<K,V>getMapCache(String name, MapOptions<K,V> options)
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.<K,V>
RMapCacheRx<K,V>getMapCache(String 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
getPatternTopic(String pattern)
Returns topic instance satisfies by pattern name.RPatternTopicRx
getPatternTopic(String pattern, Codec codec)
Returns topic instance satisfies by pattern name using provided codec for messages.RPermitExpirableSemaphoreRx
getPermitExpirableSemaphore(String name)
Returns semaphore instance by name.<V> RQueueRx<V>
getQueue(String name)
Returns queue instance by name.<V> RQueueRx<V>
getQueue(String name, Codec codec)
Returns queue instance by name using provided codec for queue objects.RRateLimiterRx
getRateLimiter(String name)
Returns rate limiter instance byname
RReadWriteLockRx
getReadWriteLock(String name)
Returns ReadWriteLock instance by name.RLockRx
getRedLock(RLock... locks)
Deprecated.RReliableTopicRx
getReliableTopic(String name)
Returns reliable topic instance by name.RReliableTopicRx
getReliableTopic(String 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
getRemoteService(String name)
Returns object for remote operations prefixed with the specified nameRRemoteService
getRemoteService(String 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>
getRingBuffer(String name)
Returns RingBuffer based queue.<V> RRingBufferRx<V>
getRingBuffer(String name, Codec codec)
Returns RingBuffer based queue.<V> RScoredSortedSetRx<V>
getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name.<V> RScoredSortedSetRx<V>
getScoredSortedSet(String 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
getSemaphore(String name)
Returns semaphore instance by name<V> RSetRx<V>
getSet(String name)
Returns set instance by name.<V> RSetRx<V>
getSet(String name, Codec codec)
Returns set instance by name using provided codec for set objects.<V> RSetCacheRx<V>
getSetCache(String name)
Returns set-based cache instance byname
.<V> RSetCacheRx<V>
getSetCache(String name, Codec codec)
Returns set-based cache instance byname
.<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>
RSetMultimapCacheRx<K,V>getSetMultimapCache(String name)
Returns Set based Multimap cache instance by name.<K,V>
RSetMultimapCacheRx<K,V>getSetMultimapCache(String name, Codec codec)
Returns Set based Multimap cache instance by name using provided codec for both map keys and values.RLockRx
getSpinLock(String name)
Returns Spin lock instance by name.RLockRx
getSpinLock(String name, LockOptions.BackOff backOff)
Returns Spin lock instance by name with specified back off options.<K,V>
RStreamRx<K,V>getStream(String name)
Returns stream instance byname
<K,V>
RStreamRx<K,V>getStream(String name, Codec codec)
Returns stream instance byname
using providedcodec
for entries.<V> RTimeSeriesRx<V>
getTimeSeries(String name)
Returns time-series instance byname
<V> RTimeSeriesRx<V>
getTimeSeries(String name, Codec codec)
Returns time-series instance byname
using providedcodec
for values.RTopicRx
getTopic(String name)
Returns topic instance by name.RTopicRx
getTopic(String name, Codec codec)
Returns topic instance by name using provided codec for messages.<V> RTransferQueueRx<V>
getTransferQueue(String name)
Returns transfer queue instance by name.<V> RTransferQueueRx<V>
getTransferQueue(String 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 shutdownisShutdown()
already.void
shutdown()
Shuts down Redisson instance NOT Redis server
-
-
-
Method Detail
-
getTimeSeries
<V> RTimeSeriesRx<V> getTimeSeries(String name)
Returns time-series instance byname
- Type Parameters:
V
- type of value- Parameters:
name
- - name of instance- Returns:
- RTimeSeries object
-
getTimeSeries
<V> RTimeSeriesRx<V> getTimeSeries(String name, Codec codec)
Returns time-series instance byname
using providedcodec
for values.- Type Parameters:
V
- type of value- Parameters:
name
- - name of instancecodec
- - codec for values- Returns:
- RTimeSeries object
-
getStream
<K,V> RStreamRx<K,V> getStream(String name)
Returns stream instance byname
Requires Redis 5.0.0 and higher.
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- of stream- Returns:
- RStream object
-
getStream
<K,V> RStreamRx<K,V> getStream(String name, Codec codec)
Returns stream instance byname
using providedcodec
for entries.Requires Redis 5.0.0 and higher.
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of streamcodec
- - codec for entry- Returns:
- RStream object
-
getGeo
<V> RGeoRx<V> getGeo(String name)
Returns geospatial items holder instance byname
.- Type Parameters:
V
- type of value- Parameters:
name
- - name of object- Returns:
- Geo object
-
getGeo
<V> RGeoRx<V> getGeo(String name, Codec codec)
Returns geospatial items holder instance byname
using provided codec for geospatial members.- Type Parameters:
V
- type of value- Parameters:
name
- - name of objectcodec
- - codec for value- Returns:
- Geo object
-
getRateLimiter
RRateLimiterRx getRateLimiter(String name)
Returns rate limiter instance byname
- Parameters:
name
- of rate limiter- Returns:
- RateLimiter object
-
getBinaryStream
RBinaryStreamRx getBinaryStream(String name)
Returns binary stream holder instance byname
- Parameters:
name
- of binary stream- Returns:
- BinaryStream object
-
getSemaphore
RSemaphoreRx getSemaphore(String name)
Returns semaphore instance by name- Parameters:
name
- - name of object- Returns:
- Semaphore object
-
getPermitExpirableSemaphore
RPermitExpirableSemaphoreRx getPermitExpirableSemaphore(String name)
Returns semaphore instance by name. Supports lease time parameter for each acquired permit.- Parameters:
name
- - name of object- Returns:
- PermitExpirableSemaphore object
-
getReadWriteLock
RReadWriteLockRx getReadWriteLock(String name)
Returns ReadWriteLock instance by name.To increase reliability during failover, all operations wait for propagation to all Redis slaves.
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getFairLock
RLockRx getFairLock(String name)
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.
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getLock
RLockRx getLock(String name)
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.
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getSpinLock
RLockRx getSpinLock(String name)
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
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getSpinLock
RLockRx getSpinLock(String name, LockOptions.BackOff backOff)
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
- Parameters:
name
- - name of object- Returns:
- Lock object
-
getMultiLock
RLockRx getMultiLock(RLock... locks)
Returns MultiLock instance associated with specifiedlocks
- Parameters:
locks
- - collection of locks- Returns:
- MultiLock object
-
getRedLock
@Deprecated RLockRx getRedLock(RLock... locks)
Deprecated.
-
getCountDownLatch
RCountDownLatchRx getCountDownLatch(String name)
Returns CountDownLatch instance by name.- Parameters:
name
- - name of object- Returns:
- CountDownLatch object
-
getSetCache
<V> RSetCacheRx<V> getSetCache(String name)
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
getSet(String, Codec)
.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- SetCache object
-
getSetCache
<V> RSetCacheRx<V> getSetCache(String name, Codec codec)
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
getSet(String, Codec)
.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- SetCache object
-
getMapCache
<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. 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)
.- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- MapCache object
-
getMapCache
<K,V> RMapCacheRx<K,V> getMapCache(String name, Codec codec, MapOptions<K,V> options)
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
getMap(String, Codec, MapOptions)
.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - object namecodec
- - codec for keys and valuesoptions
- - map options- Returns:
- MapCache object
-
getMapCache
<K,V> RMapCacheRx<K,V> getMapCache(String name)
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
getMap(String)
.- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of object- Returns:
- MapCache object
-
getMapCache
<K,V> RMapCacheRx<K,V> getMapCache(String name, MapOptions<K,V> options)
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
getMap(String, MapOptions)
.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectoptions
- - map options- Returns:
- MapCache object
-
getBucket
<V> RBucketRx<V> getBucket(String name)
Returns object holder instance by name- Type Parameters:
V
- type of value- Parameters:
name
- - name of object- Returns:
- Bucket object
-
getBucket
<V> RBucketRx<V> getBucket(String name, Codec codec)
Returns object holder instance by name using provided codec for object.- Type Parameters:
V
- type of value- Parameters:
name
- - name of objectcodec
- - codec for value- Returns:
- Bucket object
-
getBuckets
RBucketsRx getBuckets()
Returns interface for mass operations with Bucket objects.- Returns:
- Buckets
-
getBuckets
RBucketsRx getBuckets(Codec codec)
Returns interface for mass operations with Bucket objects using provided codec for object.- Parameters:
codec
- - codec for bucket objects- Returns:
- Buckets
-
getHyperLogLog
<V> RHyperLogLogRx<V> getHyperLogLog(String name)
Returns HyperLogLog instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- HyperLogLog object
-
getHyperLogLog
<V> RHyperLogLogRx<V> getHyperLogLog(String name, Codec codec)
Returns HyperLogLog instance by name using provided codec for hll objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec of values- Returns:
- HyperLogLog object
-
getIdGenerator
RIdGeneratorRx getIdGenerator(String name)
Returns id generator by name.- Parameters:
name
- - name of object- Returns:
- IdGenerator object
-
getList
<V> RListRx<V> getList(String name)
Returns list instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- List object
-
getList
<V> RListRx<V> getList(String name, Codec codec)
Returns list instance by name using provided codec for list objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- List object
-
getListMultimap
<K,V> RListMultimapRx<K,V> getListMultimap(String name)
Returns List based Multimap instance by name.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- ListMultimap object
-
getListMultimap
<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.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- RListMultimapReactive object
-
getListMultimapCache
<K,V> RListMultimapCacheRx<K,V> getListMultimapCache(String name)
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 multimapgetListMultimap(String)
.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- RListMultimapCacheRx object
-
getListMultimapCache
<K,V> RListMultimapCacheRx<K,V> getListMultimapCache(String name, Codec codec)
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 multimapgetListMultimap(String, Codec)
.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- RListMultimapCacheRx object
-
getSetMultimap
<K,V> RSetMultimapRx<K,V> getSetMultimap(String name)
Returns Set based Multimap instance by name.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- SetMultimap object
-
getSetMultimap
<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.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- SetMultimap object
-
getSetMultimapCache
<K,V> RSetMultimapCacheRx<K,V> getSetMultimapCache(String name)
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 multimapgetSetMultimap(String)
.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of object- Returns:
- RSetMultimapCacheRx object
-
getSetMultimapCache
<K,V> RSetMultimapCacheRx<K,V> getSetMultimapCache(String name, Codec codec)
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 multimapgetSetMultimap(String, Codec)
.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- RSetMultimapCacheRx object
-
getMap
<K,V> RMapRx<K,V> getMap(String name)
Returns map instance by name.- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of object- Returns:
- Map object
-
getMap
<K,V> RMapRx<K,V> getMap(String name, MapOptions<K,V> options)
Returns map instance by name.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectoptions
- - map options- Returns:
- Map object
-
getMap
<K,V> RMapRx<K,V> getMap(String name, Codec codec)
Returns map instance by name using provided codec for both map keys and values.- Type Parameters:
K
- type of keysV
- type of values- Parameters:
name
- - name of objectcodec
- - codec for keys and values- Returns:
- Map object
-
getMap
<K,V> RMapRx<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.- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- - name of objectcodec
- - codec for keys and valuesoptions
- - map options- Returns:
- Map object
-
getSet
<V> RSetRx<V> getSet(String name)
Returns set instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- Set object
-
getSet
<V> RSetRx<V> getSet(String name, Codec codec)
Returns set instance by name using provided codec for set objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of setcodec
- - codec for values- Returns:
- Set object
-
getScoredSortedSet
<V> RScoredSortedSetRx<V> getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name. This sorted set sorts objects by object score.- Type Parameters:
V
- type of values- Parameters:
name
- of scored sorted set- Returns:
- ScoredSortedSet object
-
getScoredSortedSet
<V> RScoredSortedSetRx<V> getScoredSortedSet(String name, Codec codec)
Returns Redis Sorted Set instance by name using provided codec for sorted set objects. This sorted set sorts objects by object score.- Type Parameters:
V
- type of values- Parameters:
name
- - name of scored sorted setcodec
- - codec for values- Returns:
- ScoredSortedSet object
-
getLexSortedSet
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- Parameters:
name
- - name of object- Returns:
- LexSortedSet object
-
getTopic
RTopicRx getTopic(String name)
Returns topic instance by name.- Parameters:
name
- - name of object- Returns:
- Topic object
-
getTopic
RTopicRx getTopic(String name, Codec codec)
Returns topic instance by name using provided codec for messages.- Parameters:
name
- - name of objectcodec
- - codec for message- Returns:
- Topic object
-
getReliableTopic
RReliableTopicRx getReliableTopic(String name)
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.
- Parameters:
name
- - name of object- Returns:
- ReliableTopic object
-
getReliableTopic
RReliableTopicRx getReliableTopic(String name, Codec codec)
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.
- Parameters:
name
- - name of objectcodec
- - codec for message- Returns:
- ReliableTopic object
-
getPatternTopic
RPatternTopicRx getPatternTopic(String pattern)
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- Parameters:
pattern
- of the topic- Returns:
- PatternTopic object
-
getPatternTopic
RPatternTopicRx getPatternTopic(String pattern, Codec codec)
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- Parameters:
pattern
- of the topiccodec
- - codec for message- Returns:
- PatternTopic object
-
getQueue
<V> RQueueRx<V> getQueue(String name)
Returns queue instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- Queue object
-
getQueue
<V> RQueueRx<V> getQueue(String name, Codec codec)
Returns queue instance by name using provided codec for queue objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- Queue object
-
getRingBuffer
<V> RRingBufferRx<V> getRingBuffer(String name)
Returns RingBuffer based queue.- Type Parameters:
V
- value type- Parameters:
name
- - name of object- Returns:
- RingBuffer object
-
getRingBuffer
<V> RRingBufferRx<V> getRingBuffer(String name, Codec codec)
Returns RingBuffer based queue.- Type Parameters:
V
- value type- Parameters:
name
- - name of objectcodec
- - codec for values- Returns:
- RingBuffer object
-
getBlockingQueue
<V> RBlockingQueueRx<V> getBlockingQueue(String name)
Returns blocking queue instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- BlockingQueue object
-
getBlockingQueue
<V> RBlockingQueueRx<V> getBlockingQueue(String name, Codec codec)
Returns blocking queue instance by name using provided codec for queue objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - code for values- Returns:
- BlockingQueue object
-
getBlockingDeque
<V> RBlockingDequeRx<V> getBlockingDeque(String name)
Returns unbounded blocking deque instance by name.- Type Parameters:
V
- type of value- Parameters:
name
- - name of object- Returns:
- BlockingDeque object
-
getBlockingDeque
<V> RBlockingDequeRx<V> getBlockingDeque(String name, Codec codec)
Returns unbounded blocking deque instance by name using provided codec for deque objects.- Type Parameters:
V
- type of value- Parameters:
name
- - name of objectcodec
- - deque objects codec- Returns:
- BlockingDeque object
-
getTransferQueue
<V> RTransferQueueRx<V> getTransferQueue(String name)
Returns transfer queue instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- TransferQueue object
-
getTransferQueue
<V> RTransferQueueRx<V> getTransferQueue(String name, Codec codec)
Returns transfer queue instance by name using provided codec for queue objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - code for values- Returns:
- TransferQueue object
-
getDeque
<V> RDequeRx<V> getDeque(String name)
Returns deque instance by name.- Type Parameters:
V
- type of values- Parameters:
name
- - name of object- Returns:
- Deque object
-
getDeque
<V> RDequeRx<V> getDeque(String name, Codec codec)
Returns deque instance by name using provided codec for deque objects.- Type Parameters:
V
- type of values- Parameters:
name
- - name of objectcodec
- - coded for values- Returns:
- Deque object
-
getAtomicLong
RAtomicLongRx getAtomicLong(String name)
Returns "atomic long" instance by name.- Parameters:
name
- of the "atomic long"- Returns:
- AtomicLong object
-
getAtomicDouble
RAtomicDoubleRx getAtomicDouble(String name)
Returns "atomic double" instance by name.- Parameters:
name
- of the "atomic double"- Returns:
- AtomicLong object
-
getRemoteService
RRemoteService getRemoteService()
Returns object for remote operations prefixed with the default name (redisson_remote_service)- Returns:
- RemoteService object
-
getRemoteService
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.- Parameters:
codec
- - codec for response and request- Returns:
- RemoteService object
-
getRemoteService
RRemoteService getRemoteService(String name)
Returns object for remote operations prefixed with the specified name- Parameters:
name
- - the name used as the Redis key prefix for the services- Returns:
- RemoteService object
-
getRemoteService
RRemoteService getRemoteService(String name, Codec codec)
Returns object for remote operations prefixed with the specified name and uses provided codec for method arguments and result.- Parameters:
name
- - the name used as the Redis key prefix for the servicescodec
- - codec for response and request- Returns:
- RemoteService object
-
getBitSet
RBitSetRx getBitSet(String name)
Returns bitSet instance by name.- Parameters:
name
- - name of object- Returns:
- BitSet object
-
getScript
RScriptRx getScript()
Returns script operations object- Returns:
- Script object
-
getScript
RScriptRx getScript(Codec codec)
Returns script operations object using provided codec.- Parameters:
codec
- - codec for params and result- Returns:
- Script object
-
createTransaction
RTransactionRx createTransaction(TransactionOptions options)
Creates transaction with READ_COMMITTED isolation level.- Parameters:
options
- - transaction configuration- Returns:
- Transaction object
-
createBatch
RBatchRx createBatch(BatchOptions options)
Return batch object which executes group of command in pipeline. See http://redis.io/topics/pipelining- Parameters:
options
- - batch configuration- Returns:
- Batch object
-
createBatch
RBatchRx createBatch()
Return batch object which executes group of command in pipeline. See http://redis.io/topics/pipelining- Returns:
- Batch object
-
getKeys
RKeysRx getKeys()
Returns keys operations. Each of Redis/Redisson object associated with own key- Returns:
- Keys object
-
shutdown
void shutdown()
Shuts down Redisson instance NOT Redis server
-
getConfig
Config getConfig()
Allows to get configuration provided during Redisson instance creation. Further changes on this object not affect Redisson instance.- Returns:
- Config object
-
getNodesGroup
NodesGroup<Node> getNodesGroup()
Get Redis nodes group for server operations- Returns:
- NodesGroup object
-
getClusterNodesGroup
NodesGroup<ClusterNode> getClusterNodesGroup()
Get Redis cluster nodes group for server operations- Returns:
- NodesGroup object
-
isShutdown
boolean isShutdown()
Returnstrue
if this Redisson instance has been shut down.- Returns:
true
if this Redisson instance has been shut down otherwisefalse
-
isShuttingDown
boolean isShuttingDown()
Returnstrue
if this Redisson instance was started to be shutdown or was shutdownisShutdown()
already.- Returns:
true
if this Redisson instance was started to be shutdown or was shutdownisShutdown()
already otherwisefalse
-
getId
String getId()
Returns id of this Redisson instance- Returns:
- id
-
-