Class Redisson
- All Implemented Interfaces:
RedissonClient
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionstatic RedissonClient
create()
Create sync/async Redisson instance with default configstatic RedissonClient
Create sync/async Redisson instance with provided configCreates batch object which could be executed later with collected group of commands in pipeline mode.createBatch
(BatchOptions options) Creates batch object which could be executed later with collected group of commands in pipeline mode.static RedissonReactiveClient
Deprecated.static RedissonReactiveClient
createReactive
(Config config) Deprecated.static RedissonRxClient
createRx()
Deprecated.static RedissonRxClient
Deprecated.createTransaction
(TransactionOptions options) Creates transaction with READ_COMMITTED isolation level.getAtomicDouble
(String name) Returns atomicDouble instance by name.getAtomicDouble
(CommonOptions options) Returns atomicDouble instance with specifiedoptions
.getAtomicLong
(String name) Returns atomicLong instance by name.getAtomicLong
(CommonOptions options) Returns atomicLong instance with specifiedoptions
.getBinaryStream
(String name) Returns binary stream holder instance byname
getBinaryStream
(CommonOptions options) Returns binary stream holder instance with specifiedoptions
.Returns bitSet instance by name.getBitSet
(CommonOptions options) Returns bitSet instance with specifiedoptions
.<V> RBlockingDeque
<V> getBlockingDeque
(String name) Returns unbounded blocking deque instance by name.<V> RBlockingDeque
<V> getBlockingDeque
(String name, Codec codec) Returns unbounded blocking deque instance by name using provided codec for deque objects.<V> RBlockingDeque
<V> getBlockingDeque
(PlainOptions options) Returns unbounded blocking deque instance with specifiedoptions
.<V> RBlockingQueue
<V> getBlockingQueue
(String name) Returns unbounded blocking queue instance by name.<V> RBlockingQueue
<V> getBlockingQueue
(String name, Codec codec) Returns unbounded blocking queue instance by name using provided codec for queue objects.<V> RBlockingQueue
<V> getBlockingQueue
(PlainOptions options) Returns unbounded blocking queue instance with specifiedoptions
.<V> RBloomFilter
<V> getBloomFilter
(String name) Returns bloom filter instance by name.<V> RBloomFilter
<V> getBloomFilter
(String name, Codec codec) Returns bloom filter instance by name using provided codec for objects.<V> RBloomFilter
<V> getBloomFilter
(PlainOptions options) Returns bloom filter instance with specifiedoptions
.<V> RBoundedBlockingQueue
<V> Returns bounded blocking queue instance by name.<V> RBoundedBlockingQueue
<V> getBoundedBlockingQueue
(String name, Codec codec) Returns bounded blocking queue instance by name using provided codec for queue objects.<V> RBoundedBlockingQueue
<V> getBoundedBlockingQueue
(PlainOptions options) Returns bounded blocking queue instance with specifiedoptions
.<V> RBucket
<V> Returns object holder instance by name.<V> RBucket
<V> Returns object holder instance by name using provided codec for object.<V> RBucket
<V> getBucket
(PlainOptions options) Returns object holder instance with specifiedoptions
.Returns interface for mass operations with Bucket objects.getBuckets
(OptionalOptions options) Returns API for mass operations over Bucket objects with specifiedoptions
.getBuckets
(Codec codec) Returns interface for mass operations with Bucket objects using provided codec for object.Allows to get configuration provided during Redisson instance creation.getCountDownLatch
(String name) Returns countDownLatch instance by name.getCountDownLatch
(CommonOptions options) Returns countDownLatch instance with specifiedoptions
.<V> RDelayedQueue
<V> getDelayedQueue
(RQueue<V> destinationQueue) Returns unbounded delayed queue instance by name.<V> RDeque
<V> Returns unbounded deque instance by name.<V> RDeque
<V> Returns unbounded deque instance by name using provided codec for deque objects.<V> RDeque
<V> getDeque
(PlainOptions options) Returns unbounded deque instance with specifiedoptions
.getDoubleAdder
(String name) Returns DoubleAdder instances by name.getDoubleAdder
(CommonOptions options) Returns DoubleAdder instances with specifiedoptions
.getExecutorService
(String name) Returns ScheduledExecutorService by namegetExecutorService
(String name, ExecutorOptions options) getExecutorService
(String name, Codec codec) Returns ScheduledExecutorService by name using provided codec for task, response and request serializationgetExecutorService
(String name, Codec codec, ExecutorOptions options) getExecutorService
(ExecutorOptions options) Returns ScheduledExecutorService with defined optionsgetFairLock
(String name) Returns Lock instance by name.getFairLock
(CommonOptions options) Returns Lock instance with specifiedoptions
.getFencedLock
(String name) Returns Fenced Lock instance by name.getFencedLock
(CommonOptions options) Returns Fenced Lock instance with specifiedoptions
..Returns API for Redis Function featuregetFunction
(OptionalOptions options) Returns interface for Redis Function feature with specifiedoptions
.getFunction
(Codec codec) Returns API for Redis Function feature using provided codec<V> RGeo
<V> Returns geospatial items holder instance byname
.<V> RGeo
<V> Returns geospatial items holder instance byname
using provided codec for geospatial members.<V> RGeo
<V> getGeo
(PlainOptions options) Returns geospatial items holder instance with specifiedoptions
.<V> RHyperLogLog
<V> getHyperLogLog
(String name) Returns HyperLogLog instance by name.<V> RHyperLogLog
<V> getHyperLogLog
(String name, Codec codec) Returns HyperLogLog instance by name using provided codec for hll objects.<V> RHyperLogLog
<V> getHyperLogLog
(PlainOptions options) Returns HyperLogLog instance with specifiedoptions
.getId()
Returns id of this Redisson instancegetIdGenerator
(String name) Returns id generator instance by name.getIdGenerator
(CommonOptions options) Returns id generator instance with specifiedoptions
.<V> RJsonBucket
<V> getJsonBucket
(String name, JsonCodec<V> codec) Returns JSON data holder instance by name using provided codec.<V> RJsonBucket
<V> getJsonBucket
(JsonBucketOptions<V> options) Returns JSON data holder instance with specifiedoptions
.getKeys()
Returns interface with methods for Redis keys.getKeys
(KeysOptions options) Returns interface for operations over Redis keys with specifiedoptions
.getLexSortedSet
(String name) Returns String based Redis Sorted Set instance by name.getLexSortedSet
(CommonOptions options) Returns String based Redis Sorted Set instance with specifiedoptions
.<V> RList
<V> Returns list instance by name.<V> RList
<V> Returns list instance by name using provided codec for list objects.<V> RList
<V> getList
(PlainOptions options) Returns list instance with specifiedoptions
.<K,
V> RListMultimap <K, V> getListMultimap
(String name) Returns List based Multimap instance by name.<K,
V> RListMultimap <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> RListMultimap <K, V> getListMultimap
(PlainOptions options) Returns List based Multimap instance with specifiedoptions
.<K,
V> RListMultimapCache <K, V> getListMultimapCache
(String name) Returns List based Multimap instance by name.<K,
V> RListMultimapCache <K, V> getListMultimapCache
(String name, Codec codec) Returns List based Multimap instance by name using provided codec for both map keys and values.<K,
V> RListMultimapCache <K, V> getListMultimapCache
(PlainOptions options) Returns List based Multimap instance by name.Returns Live Object Service which is used to store Java objectsgetLiveObjectService
(LiveObjectOptions options) Returns Live Object Service which is used to store Java objects with specifiedoptions
.<K,
V> RLocalCachedMap <K, V> getLocalCachedMap
(String name, LocalCachedMapOptions<K, V> options) Returns local cached map instance by name.<K,
V> RLocalCachedMap <K, V> getLocalCachedMap
(String name, Codec codec, LocalCachedMapOptions<K, V> options) Returns local cached map instance by name using provided codec.<K,
V> RLocalCachedMap <K, V> getLocalCachedMap
(LocalCachedMapOptions<K, V> options) Returns local cached map instance with specifiedoptions
.Returns Lock instance by name.getLock
(CommonOptions options) Returns Lock instance with specifiedoptions
.getLongAdder
(String name) Returns LongAdder instances by name.getLongAdder
(CommonOptions options) Returns LongAdder instances with specifiedoptions
.<K,
V> RMap <K, V> Returns map instance by name.<K,
V> RMap <K, V> getMap
(String name, MapOptions<K, V> options) Returns map instance by name.<K,
V> RMap <K, V> Returns map instance by name using provided codec for both map keys and values.<K,
V> RMap <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> RMap <K, V> getMap
(MapOptions<K, V> options) Returns map instance by name.<K,
V> RMapCache <K, V> getMapCache
(String name) Returns map-based cache instance by name.<K,
V> RMapCache <K, V> getMapCache
(String name, MapCacheOptions<K, V> options) Returns map-based cache instance by name.<K,
V> RMapCache <K, V> getMapCache
(String name, Codec codec) Returns map-based cache instance byname
using providedcodec
for both cache keys and values.<K,
V> RMapCache <K, V> getMapCache
(String name, Codec codec, MapCacheOptions<K, V> options) Returns map-based cache instance byname
using providedcodec
for both cache keys and values.<K,
V> RMapCache <K, V> getMapCache
(MapCacheOptions<K, V> options) Returns map-based cache instance with specifiedoptions
.getMultiLock
(RLock... locks) Returns MultiLock instance associated with specifiedlocks
getPatternTopic
(String pattern) Returns topic instance satisfies by pattern name.getPatternTopic
(String pattern, Codec codec) Returns topic instance satisfies by pattern name using provided codec for messages.getPatternTopic
(PatternTopicOptions options) Returns topic instance satisfies pattern name and specifiedoptions
..Returns semaphore instance by name.getPermitExpirableSemaphore
(CommonOptions options) Returns semaphore instance with specifiedoptions
.<V> RPriorityBlockingDeque
<V> Returns unbounded priority blocking deque instance by name.<V> RPriorityBlockingDeque
<V> getPriorityBlockingDeque
(String name, Codec codec) Returns unbounded priority blocking deque instance by name using provided codec for queue objects.<V> RPriorityBlockingDeque
<V> getPriorityBlockingDeque
(PlainOptions options) Returns unbounded priority blocking deque instance with specifiedoptions
.<V> RPriorityBlockingQueue
<V> Returns unbounded priority blocking queue instance by name.<V> RPriorityBlockingQueue
<V> getPriorityBlockingQueue
(String name, Codec codec) Returns unbounded priority blocking queue instance by name using provided codec for queue objects.<V> RPriorityBlockingQueue
<V> getPriorityBlockingQueue
(PlainOptions options) Returns unbounded priority blocking queue instance with specifiedoptions
.<V> RPriorityDeque
<V> getPriorityDeque
(String name) Returns priority unbounded deque instance by name.<V> RPriorityDeque
<V> getPriorityDeque
(String name, Codec codec) Returns priority unbounded deque instance by name using provided codec for queue objects.<V> RPriorityDeque
<V> getPriorityDeque
(PlainOptions options) Returns priority unbounded deque instance with specifiedoptions
.<V> RPriorityQueue
<V> getPriorityQueue
(String name) Returns priority unbounded queue instance by name.<V> RPriorityQueue
<V> getPriorityQueue
(String name, Codec codec) Returns priority unbounded queue instance by name using provided codec for queue objects.<V> RPriorityQueue
<V> getPriorityQueue
(PlainOptions options) <V> RQueue
<V> Returns unbounded queue instance by name.<V> RQueue
<V> Returns unbounded queue instance by name using provided codec for queue objects.<V> RQueue
<V> getQueue
(PlainOptions options) Returns unbounded queue instance with specifiedoptions
.getRateLimiter
(String name) Returns rate limiter instance byname
getRateLimiter
(CommonOptions options) Returns rate limiter instance with specifiedoptions
.getReadWriteLock
(String name) Returns ReadWriteLock instance by name.getReadWriteLock
(CommonOptions options) Returns ReadWriteLock instance with specifiedoptions
.<T extends BaseRedisNodes>
TgetRedisNodes
(RedisNodes<T> nodes) Returns API to manage Redis nodesgetRedLock
(RLock... locks) getReliableTopic
(String name) Returns reliable topic instance by name.getReliableTopic
(String name, Codec codec) Returns reliable topic instance by name using provided codec for messages.getReliableTopic
(PlainOptions options) Returns reliable topic instance with specifiedoptions
.Returns object for remote operations prefixed with the default name (redisson_remote_service)getRemoteService
(String name) Returns object for remote operations prefixed with the specified namegetRemoteService
(String name, Codec codec) Returns object for remote operations prefixed with the specified name and uses provided codec for method arguments and result.getRemoteService
(PlainOptions options) Returns object for remote operations prefixed with specifiedoptions
.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> RRingBuffer
<V> getRingBuffer
(String name) Returns RingBuffer based queue.<V> RRingBuffer
<V> getRingBuffer
(String name, Codec codec) Returns RingBuffer based queue.<V> RRingBuffer
<V> getRingBuffer
(PlainOptions options) Returns RingBuffer based queue instance with specifiedoptions
.<V> RScoredSortedSet
<V> getScoredSortedSet
(String name) Returns Redis Sorted Set instance by name.<V> RScoredSortedSet
<V> getScoredSortedSet
(String name, Codec codec) Returns Redis Sorted Set instance by name using provided codec for sorted set objects.<V> RScoredSortedSet
<V> getScoredSortedSet
(PlainOptions options) Returns Redis Sorted Set instance with specifiedoptions
.Returns script operations objectgetScript
(OptionalOptions options) Returns script operations object with specifiedoptions
.Returns script operations object using provided codec.Returns API for RediSearch modulegetSearch
(OptionalOptions options) Returns API for RediSearch module with specifiedoptions
.Returns API for RediSearch module using defined codec for attribute values.getSemaphore
(String name) Returns semaphore instance by namegetSemaphore
(CommonOptions options) Returns semaphore instance with specifiedoptions
.<V> RSet
<V> Returns set instance by name.<V> RSet
<V> Returns set instance by name using provided codec for set objects.<V> RSet
<V> getSet
(PlainOptions options) Returns set instance with specifiedoptions
.<V> RSetCache
<V> getSetCache
(String name) Returns set-based cache instance byname
.<V> RSetCache
<V> getSetCache
(String name, Codec codec) Returns set-based cache instance byname
.<V> RSetCache
<V> getSetCache
(PlainOptions options) Returns set-based cache instance with specifiedoptions
.<K,
V> RSetMultimap <K, V> getSetMultimap
(String name) Returns Set based Multimap instance by name.<K,
V> RSetMultimap <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> RSetMultimap <K, V> getSetMultimap
(PlainOptions options) Returns Set based Multimap instance with specifiedoptions
.<K,
V> RSetMultimapCache <K, V> getSetMultimapCache
(String name) Returns Set based Multimap instance by name.<K,
V> RSetMultimapCache <K, V> getSetMultimapCache
(String name, Codec codec) Returns Set based Multimap instance by name using provided codec for both map keys and values.<K,
V> RSetMultimapCache <K, V> getSetMultimapCache
(PlainOptions options) Returns Set based Multimap instance with specifiedoptions
.getShardedTopic
(String name) Returns Sharded Topic instance by name.getShardedTopic
(String name, Codec codec) Returns Sharded Topic instance by name using provided codec for messages.getShardedTopic
(PlainOptions options) Returns Sharded Topic instance with specifiedoptions
.<V> RSortedSet
<V> getSortedSet
(String name) Returns sorted set instance by name.<V> RSortedSet
<V> getSortedSet
(String name, Codec codec) Returns sorted set instance by name using provided codec for sorted set objects.<V> RSortedSet
<V> getSortedSet
(PlainOptions options) Returns sorted set instance with specifiedoptions
.getSpinLock
(String name) Returns Spin lock instance by name.getSpinLock
(String name, LockOptions.BackOff backOff) Returns Spin lock instance by name with specified back off options.<K,
V> RStream <K, V> Returns stream instance byname
<K,
V> RStream <K, V> Returns stream instance byname
using providedcodec
for entries.<K,
V> RStream <K, V> getStream
(PlainOptions options) Returns time-series instance with specifiedoptions
.<V,
L> RTimeSeries <V, L> getTimeSeries
(String name) Returns time-series instance byname
<V,
L> RTimeSeries <V, L> getTimeSeries
(String name, Codec codec) Returns time-series instance byname
using providedcodec
for values.<V,
L> RTimeSeries <V, L> getTimeSeries
(PlainOptions options) Returns time-series instance with specifiedoptions
.Returns topic instance by name.Returns topic instance by name using provided codec for messages.getTopic
(PlainOptions options) Returns topic instance with specifiedoptions
.<V> RTransferQueue
<V> getTransferQueue
(String name) Returns transfer queue instance by name.<V> RTransferQueue
<V> getTransferQueue
(String name, Codec codec) Returns transfer queue instance by name using provided codec for queue objects.<V> RTransferQueue
<V> getTransferQueue
(PlainOptions options) Returns transfer queue instance with specifiedoptions
.boolean
Returnstrue
if this Redisson instance has been shut down.boolean
Returnstrue
if this Redisson instance was started to be shutdown or was shutdownRedissonClient.isShutdown()
already.reactive()
Returns Reactive Redisson instancerxJava()
Returns RxJava Redisson instancevoid
shutdown()
Shutdown Redisson instance but NOT Redis server This equates to invoke shutdown(0, 2, TimeUnit.SECONDS);void
Shuts down Redisson instance but NOT Redis server Shutdown ensures that no tasks are submitted for 'the quiet period' (usually a couple seconds) before it shuts itself down.
-
Method Details
-
getEvictionScheduler
-
getCommandExecutor
-
getConnectionManager
-
getServiceManager
-
create
Create sync/async Redisson instance with default config- Returns:
- Redisson instance
-
create
Create sync/async Redisson instance with provided config- Parameters:
config
- for Redisson- Returns:
- Redisson instance
-
createRx
Deprecated. -
createRx
Deprecated. -
rxJava
Description copied from interface:RedissonClient
Returns RxJava Redisson instance- Specified by:
rxJava
in interfaceRedissonClient
- Returns:
- redisson instance
-
createReactive
Deprecated. -
createReactive
Deprecated. -
reactive
Description copied from interface:RedissonClient
Returns Reactive Redisson instance- Specified by:
reactive
in interfaceRedissonClient
- Returns:
- redisson instance
-
getTimeSeries
Description copied from interface:RedissonClient
Returns time-series instance byname
- Specified by:
getTimeSeries
in interfaceRedissonClient
- Type Parameters:
V
- value typeL
- label type- Parameters:
name
- name of instance- Returns:
- RTimeSeries object
-
getTimeSeries
Description copied from interface:RedissonClient
Returns time-series instance byname
using providedcodec
for values.- Specified by:
getTimeSeries
in interfaceRedissonClient
- Type Parameters:
V
- value typeL
- label type- Parameters:
name
- name of instancecodec
- codec for values- Returns:
- RTimeSeries object
-
getTimeSeries
Description copied from interface:RedissonClient
Returns time-series instance with specifiedoptions
.- Specified by:
getTimeSeries
in interfaceRedissonClient
- Type Parameters:
V
- value typeL
- label type- Parameters:
options
- instance options- Returns:
- RTimeSeries object
-
getStream
Description copied from interface:RedissonClient
Returns stream instance byname
Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- of stream- Returns:
- RStream object
-
getStream
Description copied from interface:RedissonClient
Returns stream instance byname
using providedcodec
for entries.Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of streamcodec
- codec for entry- Returns:
- RStream object
-
getStream
Description copied from interface:RedissonClient
Returns time-series instance with specifiedoptions
.Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- RStream object
-
getSearch
Description copied from interface:RedissonClient
Returns API for RediSearch module- Specified by:
getSearch
in interfaceRedissonClient
- Returns:
- RSearch object
-
getSearch
Description copied from interface:RedissonClient
Returns API for RediSearch module using defined codec for attribute values.- Specified by:
getSearch
in interfaceRedissonClient
- Parameters:
codec
- codec for entry- Returns:
- RSearch object
-
getSearch
Description copied from interface:RedissonClient
Returns API for RediSearch module with specifiedoptions
.- Specified by:
getSearch
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- RSearch object
-
getBinaryStream
Description copied from interface:RedissonClient
Returns binary stream holder instance byname
- Specified by:
getBinaryStream
in interfaceRedissonClient
- Parameters:
name
- of binary stream- Returns:
- BinaryStream object
-
getBinaryStream
Description copied from interface:RedissonClient
Returns binary stream holder instance with specifiedoptions
.- Specified by:
getBinaryStream
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- BinaryStream object
-
getGeo
Description copied from interface:RedissonClient
Returns geospatial items holder instance byname
.- Specified by:
getGeo
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Geo object
-
getGeo
Description copied from interface:RedissonClient
Returns geospatial items holder instance byname
using provided codec for geospatial members.- Specified by:
getGeo
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for value- Returns:
- Geo object
-
getGeo
Description copied from interface:RedissonClient
Returns geospatial items holder instance with specifiedoptions
.- Specified by:
getGeo
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Geo object
-
getBucket
Description copied from interface:RedissonClient
Returns object holder instance by name.- Specified by:
getBucket
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Bucket object
-
getRateLimiter
Description copied from interface:RedissonClient
Returns rate limiter instance byname
- Specified by:
getRateLimiter
in interfaceRedissonClient
- Parameters:
name
- of rate limiter- Returns:
- RateLimiter object
-
getRateLimiter
Description copied from interface:RedissonClient
Returns rate limiter instance with specifiedoptions
.- Specified by:
getRateLimiter
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- RateLimiter object
-
getBucket
Description copied from interface:RedissonClient
Returns object holder instance by name using provided codec for object.- Specified by:
getBucket
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- Bucket object
-
getBucket
Description copied from interface:RedissonClient
Returns object holder instance with specifiedoptions
.- Specified by:
getBucket
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Bucket object
-
getBuckets
Description copied from interface:RedissonClient
Returns interface for mass operations with Bucket objects.- Specified by:
getBuckets
in interfaceRedissonClient
- Returns:
- Buckets object
-
getBuckets
Description copied from interface:RedissonClient
Returns interface for mass operations with Bucket objects using provided codec for object.- Specified by:
getBuckets
in interfaceRedissonClient
- Parameters:
codec
- codec for bucket objects- Returns:
- Buckets object
-
getBuckets
Description copied from interface:RedissonClient
Returns API for mass operations over Bucket objects with specifiedoptions
.- Specified by:
getBuckets
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Buckets object
-
getJsonBucket
Description copied from interface:RedissonClient
Returns JSON data holder instance by name using provided codec.- Specified by:
getJsonBucket
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- JsonBucket object
-
getJsonBucket
Description copied from interface:RedissonClient
Returns JSON data holder instance with specifiedoptions
.- Specified by:
getJsonBucket
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- JsonBucket object
-
getHyperLogLog
Description copied from interface:RedissonClient
Returns HyperLogLog instance by name.- Specified by:
getHyperLogLog
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- HyperLogLog object
-
getHyperLogLog
Description copied from interface:RedissonClient
Returns HyperLogLog instance by name using provided codec for hll objects.- Specified by:
getHyperLogLog
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- HyperLogLog object
-
getHyperLogLog
Description copied from interface:RedissonClient
Returns HyperLogLog instance with specifiedoptions
.- Specified by:
getHyperLogLog
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- HyperLogLog object
-
getList
Description copied from interface:RedissonClient
Returns list instance by name.- Specified by:
getList
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- List object
-
getList
Description copied from interface:RedissonClient
Returns list instance by name using provided codec for list objects.- Specified by:
getList
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- List object
-
getList
Description copied from interface:RedissonClient
Returns list instance with specifiedoptions
.- Specified by:
getList
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- List object
-
getListMultimap
Description copied from interface:RedissonClient
Returns List based Multimap instance by name.- Specified by:
getListMultimap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- ListMultimap object
-
getListMultimap
Description copied from interface:RedissonClient
Returns List based Multimap instance by name using provided codec for both map keys and values.- Specified by:
getListMultimap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and values- Returns:
- ListMultimap object
-
getListMultimap
Description copied from interface:RedissonClient
Returns List based Multimap instance with specifiedoptions
.- Specified by:
getListMultimap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- ListMultimap object
-
getLocalCachedMap
public <K,V> RLocalCachedMap<K,V> getLocalCachedMap(String name, LocalCachedMapOptions<K, V> options) Description copied from interface:RedissonClient
Returns local cached map instance by name. Configured by parameters of options-object.- Specified by:
getLocalCachedMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectoptions
- local map options- Returns:
- LocalCachedMap object
-
getLocalCachedMap
public <K,V> RLocalCachedMap<K,V> getLocalCachedMap(String name, Codec codec, LocalCachedMapOptions<K, V> options) Description copied from interface:RedissonClient
Returns local cached map instance by name using provided codec. Configured by parameters of options-object.- Specified by:
getLocalCachedMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and valuesoptions
- local map options- Returns:
- LocalCachedMap object
-
getLocalCachedMap
Description copied from interface:RedissonClient
Returns local cached map instance with specifiedoptions
.- Specified by:
getLocalCachedMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- LocalCachedMap object
-
getMap
Description copied from interface:RedissonClient
Returns map instance by name.- Specified by:
getMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- Map object
-
getMap
Description copied from interface:RedissonClient
Returns map instance by name.- Specified by:
getMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectoptions
- map options- Returns:
- Map object
-
getMap
Description copied from interface:RedissonClient
Returns map instance by name.- Specified by:
getMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- Map object
-
getSetMultimap
Description copied from interface:RedissonClient
Returns Set based Multimap instance by name.- Specified by:
getSetMultimap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- SetMultimap object
-
getSetMultimapCache
Description copied from interface:RedissonClient
Returns Set based Multimap instance by name. Supports key-entry eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSetMultimap(String)
.- Specified by:
getSetMultimapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- SetMultimapCache object
-
getSetMultimapCache
Description copied from interface:RedissonClient
Returns Set based Multimap instance by name using provided codec for both map keys and values. Supports key-entry eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSetMultimap(String, Codec)
.- Specified by:
getSetMultimapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and values- Returns:
- SetMultimapCache object
-
getSetMultimapCache
Description copied from interface:RedissonClient
Returns Set based Multimap instance with specifiedoptions
. Supports key-entry eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSetMultimap(PlainOptions)
.- Specified by:
getSetMultimapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- SetMultimapCache object
-
getListMultimapCache
Description copied from interface:RedissonClient
Returns List based Multimap instance by name. Supports key-entry eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSetMultimap(String)
.- Specified by:
getListMultimapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- ListMultimapCache object
-
getListMultimapCache
Description copied from interface:RedissonClient
Returns List based Multimap instance by name using provided codec for both map keys and values. Supports key-entry eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSetMultimap(String, Codec)
.- Specified by:
getListMultimapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and values- Returns:
- ListMultimapCache object
-
getListMultimapCache
Description copied from interface:RedissonClient
Returns List based Multimap instance by name. Supports key-entry eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSetMultimap(String)
.- Specified by:
getListMultimapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- ListMultimapCache object
-
getSetMultimap
Description copied from interface:RedissonClient
Returns Set based Multimap instance by name using provided codec for both map keys and values.- Specified by:
getSetMultimap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and values- Returns:
- SetMultimap object
-
getSetMultimap
Description copied from interface:RedissonClient
Returns Set based Multimap instance with specifiedoptions
.- Specified by:
getSetMultimap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- SetMultimap object
-
getSetCache
Description copied from interface:RedissonClient
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
RedissonClient.getSet(String, Codec)
.- Specified by:
getSetCache
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- SetCache object
-
getSetCache
Description copied from interface:RedissonClient
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
RedissonClient.getSet(String, Codec)
.- Specified by:
getSetCache
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- SetCache object
-
getSetCache
Description copied from interface:RedissonClient
Returns set-based cache instance with specifiedoptions
. Supports value eviction with a given TTL value.If eviction is not required then it's better to use regular map
RedissonClient.getSet(PlainOptions)
.- Specified by:
getSetCache
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- SetCache object
-
getMapCache
Description copied from interface:RedissonClient
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
RedissonClient.getMap(String)
.- Specified by:
getMapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- MapCache object
-
getMapCache
Description copied from interface:RedissonClient
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
RedissonClient.getMap(String)
.- Specified by:
getMapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectoptions
- map options- Returns:
- MapCache object
-
getMapCache
Description copied from interface:RedissonClient
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
RedissonClient.getMap(String, Codec)
.- Specified by:
getMapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- object namecodec
- codec for keys and values- Returns:
- MapCache object
-
getMapCache
Description copied from interface:RedissonClient
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
RedissonClient.getMap(String, Codec)
.- Specified by:
getMapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- object namecodec
- codec for keys and valuesoptions
- map options- Returns:
- MapCache object
-
getMapCache
Description copied from interface:RedissonClient
Returns map-based cache instance with specifiedoptions
. Supports entry eviction with a given MaxIdleTime and TTL settings.If eviction is not required then it's better to use regular map
RedissonClient.getMap(org.redisson.api.options.MapOptions)
.- Specified by:
getMapCache
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
options
- instance options- Returns:
- MapCache object
-
getMap
Description copied from interface:RedissonClient
Returns map instance by name using provided codec for both map keys and values.- Specified by:
getMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and values- Returns:
- Map object
-
getMap
Description copied from interface:RedissonClient
Returns map instance by name using provided codec for both map keys and values.- Specified by:
getMap
in interfaceRedissonClient
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and valuesoptions
- map options- Returns:
- Map object
-
getLock
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Lock object
-
getLock
Description copied from interface:RedissonClient
Returns Lock instance with specifiedoptions
.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 interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Lock object
-
getSpinLock
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Lock object
-
getSpinLock
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Lock object
-
getFencedLock
Description copied from interface:RedissonClient
Returns Fenced Lock instance by name.Implements a non-fair locking so doesn't guarantee an acquire order by threads.
- Specified by:
getFencedLock
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Lock object
-
getFencedLock
Description copied from interface:RedissonClient
Returns Fenced Lock instance with specifiedoptions
..Implements a non-fair locking so doesn't guarantee an acquire order by threads.
- Specified by:
getFencedLock
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Lock object
-
getMultiLock
Description copied from interface:RedissonClient
Returns MultiLock instance associated with specifiedlocks
- Specified by:
getMultiLock
in interfaceRedissonClient
- Parameters:
locks
- collection of locks- Returns:
- MultiLock object
-
getRedLock
- Specified by:
getRedLock
in interfaceRedissonClient
-
getFairLock
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Lock object
-
getFairLock
Description copied from interface:RedissonClient
Returns Lock instance with specifiedoptions
.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 interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Lock object
-
getReadWriteLock
Description copied from interface:RedissonClient
Returns ReadWriteLock instance by name.To increase reliability during failover, all operations wait for propagation to all Redis slaves.
- Specified by:
getReadWriteLock
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Lock object
-
getReadWriteLock
Description copied from interface:RedissonClient
Returns ReadWriteLock instance with specifiedoptions
.To increase reliability during failover, all operations wait for propagation to all Redis slaves.
- Specified by:
getReadWriteLock
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Lock object
-
getSet
Description copied from interface:RedissonClient
Returns set instance by name.- Specified by:
getSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Set object
-
getSet
Description copied from interface:RedissonClient
Returns set instance by name using provided codec for set objects.- Specified by:
getSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- Set object
-
getSet
Description copied from interface:RedissonClient
Returns set instance with specifiedoptions
.- Specified by:
getSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Set object
-
getFunction
Description copied from interface:RedissonClient
Returns API for Redis Function feature- Specified by:
getFunction
in interfaceRedissonClient
- Returns:
- function object
-
getFunction
Description copied from interface:RedissonClient
Returns API for Redis Function feature using provided codec- Specified by:
getFunction
in interfaceRedissonClient
- Parameters:
codec
- codec for params and result- Returns:
- function interface
-
getFunction
Description copied from interface:RedissonClient
Returns interface for Redis Function feature with specifiedoptions
.- Specified by:
getFunction
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- function object
-
getScript
Description copied from interface:RedissonClient
Returns script operations object- Specified by:
getScript
in interfaceRedissonClient
- Returns:
- Script object
-
getScript
Description copied from interface:RedissonClient
Returns script operations object using provided codec.- Specified by:
getScript
in interfaceRedissonClient
- Parameters:
codec
- codec for params and result- Returns:
- Script object
-
getScript
Description copied from interface:RedissonClient
Returns script operations object with specifiedoptions
.- Specified by:
getScript
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Script object
-
getExecutorService
Description copied from interface:RedissonClient
Returns ScheduledExecutorService by name- Specified by:
getExecutorService
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- ScheduledExecutorService object
-
getExecutorService
Description copied from interface:RedissonClient
- Specified by:
getExecutorService
in interfaceRedissonClient
- Parameters:
name
- name of objectoptions
- options for executor- Returns:
- ScheduledExecutorService object
-
getExecutorService
Description copied from interface:RedissonClient
Returns ScheduledExecutorService by name using provided codec for task, response and request serialization- Specified by:
getExecutorService
in interfaceRedissonClient
- Parameters:
name
- name of objectcodec
- codec for task, response and request- Returns:
- ScheduledExecutorService object
-
getExecutorService
public RScheduledExecutorService getExecutorService(String name, Codec codec, ExecutorOptions options) Description copied from interface:RedissonClient
- Specified by:
getExecutorService
in interfaceRedissonClient
- Parameters:
name
- name of objectcodec
- codec for task, response and requestoptions
- options for executor- Returns:
- ScheduledExecutorService object
-
getExecutorService
Description copied from interface:RedissonClient
Returns ScheduledExecutorService with defined optionsUsage examples:
RScheduledExecutorService service = redisson.getExecutorService( ExecutorOptions.name("test") .taskRetryInterval(Duration.ofSeconds(60)));
- Specified by:
getExecutorService
in interfaceRedissonClient
- Parameters:
options
- options instance- Returns:
- ScheduledExecutorService object
-
getRemoteService
Description copied from interface:RedissonClient
Returns object for remote operations prefixed with the default name (redisson_remote_service)- Specified by:
getRemoteService
in interfaceRedissonClient
- Returns:
- RemoteService object
-
getRemoteService
Description copied from interface:RedissonClient
Returns object for remote operations prefixed with the specified name- Specified by:
getRemoteService
in interfaceRedissonClient
- Parameters:
name
- the name used as the Redis key prefix for the services- Returns:
- RemoteService object
-
getRemoteService
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
codec
- codec for response and request- Returns:
- RemoteService object
-
getRemoteService
Description copied from interface:RedissonClient
Returns object for remote operations prefixed with the specified name and uses provided codec for method arguments and result.- Specified by:
getRemoteService
in interfaceRedissonClient
- Parameters:
name
- the name used as the Redis key prefix for the servicescodec
- codec for response and request- Returns:
- RemoteService object
-
getRemoteService
Description copied from interface:RedissonClient
Returns object for remote operations prefixed with specifiedoptions
.- Specified by:
getRemoteService
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- RemoteService object
-
getSortedSet
Description copied from interface:RedissonClient
Returns sorted set instance by name. This sorted set uses comparator to sort objects.- Specified by:
getSortedSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- SortedSet object
-
getSortedSet
Description copied from interface:RedissonClient
Returns sorted set instance by name using provided codec for sorted set objects. This sorted set sorts objects using comparator.- Specified by:
getSortedSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- SortedSet object
-
getSortedSet
Description copied from interface:RedissonClient
Returns sorted set instance with specifiedoptions
. This sorted set uses comparator to sort objects.- Specified by:
getSortedSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- SortedSet object
-
getScoredSortedSet
Description copied from interface:RedissonClient
Returns Redis Sorted Set instance by name. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- ScoredSortedSet object
-
getScoredSortedSet
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- ScoredSortedSet object
-
getScoredSortedSet
Description copied from interface:RedissonClient
Returns Redis Sorted Set instance with specifiedoptions
. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSet
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- ScoredSortedSet object
-
getLexSortedSet
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- LexSortedSet object
-
getLexSortedSet
Description copied from interface:RedissonClient
Returns String based Redis Sorted Set instance with specifiedoptions
. All elements are inserted with the same score during addition, in order to force lexicographical ordering- Specified by:
getLexSortedSet
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- LexSortedSet object
-
getShardedTopic
Description copied from interface:RedissonClient
Returns Sharded Topic instance by name.Messages are delivered to message listeners connected to the same Topic.
- Specified by:
getShardedTopic
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Topic object
-
getShardedTopic
Description copied from interface:RedissonClient
Returns Sharded Topic instance by name using provided codec for messages.Messages are delivered to message listeners connected to the same Topic.
- Specified by:
getShardedTopic
in interfaceRedissonClient
- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Topic object
-
getShardedTopic
Description copied from interface:RedissonClient
Returns Sharded Topic instance with specifiedoptions
.Messages are delivered to message listeners connected to the same Topic.
- Specified by:
getShardedTopic
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Topic object
-
getTopic
Description copied from interface:RedissonClient
Returns topic instance by name.Messages are delivered to message listeners connected to the same Topic.
- Specified by:
getTopic
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Topic object
-
getTopic
Description copied from interface:RedissonClient
Returns topic instance by name using provided codec for messages.Messages are delivered to message listeners connected to the same Topic.
- Specified by:
getTopic
in interfaceRedissonClient
- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Topic object
-
getTopic
Description copied from interface:RedissonClient
Returns topic instance with specifiedoptions
.Messages are delivered to message listeners connected to the same Topic.
- Specified by:
getTopic
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Topic object
-
getReliableTopic
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- ReliableTopic object
-
getReliableTopic
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- ReliableTopic object
-
getReliableTopic
Description copied from interface:RedissonClient
Returns reliable topic instance with specifiedoptions
.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 interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- ReliableTopic object
-
getPatternTopic
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
pattern
- of the topic- Returns:
- PatterTopic object
-
getPatternTopic
Description copied from interface:RedissonClient
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 interfaceRedissonClient
- Parameters:
pattern
- of the topiccodec
- codec for message- Returns:
- PatterTopic object
-
getPatternTopic
Description copied from interface:RedissonClient
Returns topic instance satisfies pattern name and specifiedoptions
.. 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 interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- PatterTopic object
-
getDelayedQueue
Description copied from interface:RedissonClient
Returns unbounded delayed queue instance by name.Could be attached to destination queue only. All elements are inserted with transfer delay to destination queue.
- Specified by:
getDelayedQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
destinationQueue
- destination queue- Returns:
- Delayed queue object
-
getQueue
Description copied from interface:RedissonClient
Returns unbounded queue instance by name.- Specified by:
getQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- of object- Returns:
- queue object
-
getQueue
Description copied from interface:RedissonClient
Returns unbounded queue instance by name using provided codec for queue objects.- Specified by:
getQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Queue object
-
getQueue
Description copied from interface:RedissonClient
Returns unbounded queue instance with specifiedoptions
.- Specified by:
getQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- queue object
-
getTransferQueue
Description copied from interface:RedissonClient
Returns transfer queue instance by name.- Specified by:
getTransferQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of values- Parameters:
name
- name of object- Returns:
- TransferQueue object
-
getTransferQueue
Description copied from interface:RedissonClient
Returns transfer queue instance by name using provided codec for queue objects.- Specified by:
getTransferQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of values- Parameters:
name
- name of objectcodec
- code for values- Returns:
- TransferQueue object
-
getTransferQueue
Description copied from interface:RedissonClient
Returns transfer queue instance with specifiedoptions
.- Specified by:
getTransferQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of values- Parameters:
options
- instance options- Returns:
- TransferQueue object
-
getRingBuffer
Description copied from interface:RedissonClient
Returns RingBuffer based queue.- Specified by:
getRingBuffer
in interfaceRedissonClient
- Type Parameters:
V
- value type- Parameters:
name
- name of object- Returns:
- RingBuffer object
-
getRingBuffer
Description copied from interface:RedissonClient
Returns RingBuffer based queue.- Specified by:
getRingBuffer
in interfaceRedissonClient
- Type Parameters:
V
- value type- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- RingBuffer object
-
getRingBuffer
Description copied from interface:RedissonClient
Returns RingBuffer based queue instance with specifiedoptions
.- Specified by:
getRingBuffer
in interfaceRedissonClient
- Type Parameters:
V
- value type- Parameters:
options
- instance options- Returns:
- RingBuffer object
-
getBlockingQueue
Description copied from interface:RedissonClient
Returns unbounded blocking queue instance by name.- Specified by:
getBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- BlockingQueue object
-
getBlockingQueue
Description copied from interface:RedissonClient
Returns unbounded blocking queue instance by name using provided codec for queue objects.- Specified by:
getBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of queuecodec
- queue objects codec- Returns:
- BlockingQueue object
-
getBlockingQueue
Description copied from interface:RedissonClient
Returns unbounded blocking queue instance with specifiedoptions
.- Specified by:
getBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- BlockingQueue object
-
getBoundedBlockingQueue
Description copied from interface:RedissonClient
Returns bounded blocking queue instance by name.- Specified by:
getBoundedBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- of queue- Returns:
- BoundedBlockingQueue object
-
getBoundedBlockingQueue
Description copied from interface:RedissonClient
Returns bounded blocking queue instance by name using provided codec for queue objects.- Specified by:
getBoundedBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of queuecodec
- codec for values- Returns:
- BoundedBlockingQueue object
-
getBoundedBlockingQueue
Description copied from interface:RedissonClient
Returns bounded blocking queue instance with specifiedoptions
.- Specified by:
getBoundedBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- BoundedBlockingQueue object
-
getDeque
Description copied from interface:RedissonClient
Returns unbounded deque instance by name.- Specified by:
getDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Deque object
-
getDeque
Description copied from interface:RedissonClient
Returns unbounded deque instance by name using provided codec for deque objects.- Specified by:
getDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- Deque object
-
getDeque
Description copied from interface:RedissonClient
Returns unbounded deque instance with specifiedoptions
.- Specified by:
getDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Deque object
-
getBlockingDeque
Description copied from interface:RedissonClient
Returns unbounded blocking deque instance by name.- Specified by:
getBlockingDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- BlockingDeque object
-
getBlockingDeque
Description copied from interface:RedissonClient
Returns unbounded blocking deque instance by name using provided codec for deque objects.- Specified by:
getBlockingDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- deque objects codec- Returns:
- BlockingDeque object
-
getBlockingDeque
Description copied from interface:RedissonClient
Returns unbounded blocking deque instance with specifiedoptions
.- Specified by:
getBlockingDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- BlockingDeque object
-
getAtomicLong
Description copied from interface:RedissonClient
Returns atomicLong instance by name.- Specified by:
getAtomicLong
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- AtomicLong object
-
getAtomicLong
Description copied from interface:RedissonClient
Returns atomicLong instance with specifiedoptions
.- Specified by:
getAtomicLong
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- AtomicLong object
-
getLongAdder
Description copied from interface:RedissonClient
Returns LongAdder instances by name.- Specified by:
getLongAdder
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- LongAdder object
-
getLongAdder
Description copied from interface:RedissonClient
Returns LongAdder instances with specifiedoptions
.- Specified by:
getLongAdder
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- LongAdder object
-
getDoubleAdder
Description copied from interface:RedissonClient
Returns DoubleAdder instances by name.- Specified by:
getDoubleAdder
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- LongAdder object
-
getDoubleAdder
Description copied from interface:RedissonClient
Returns DoubleAdder instances with specifiedoptions
.- Specified by:
getDoubleAdder
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- LongAdder object
-
getAtomicDouble
Description copied from interface:RedissonClient
Returns atomicDouble instance by name.- Specified by:
getAtomicDouble
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- AtomicDouble object
-
getAtomicDouble
Description copied from interface:RedissonClient
Returns atomicDouble instance with specifiedoptions
.- Specified by:
getAtomicDouble
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- AtomicDouble object
-
getCountDownLatch
Description copied from interface:RedissonClient
Returns countDownLatch instance by name.- Specified by:
getCountDownLatch
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- CountDownLatch object
-
getCountDownLatch
Description copied from interface:RedissonClient
Returns countDownLatch instance with specifiedoptions
.- Specified by:
getCountDownLatch
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- CountDownLatch object
-
getBitSet
Description copied from interface:RedissonClient
Returns bitSet instance by name.- Specified by:
getBitSet
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- BitSet object
-
getBitSet
Description copied from interface:RedissonClient
Returns bitSet instance with specifiedoptions
.- Specified by:
getBitSet
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- BitSet object
-
getSemaphore
Description copied from interface:RedissonClient
Returns semaphore instance by name- Specified by:
getSemaphore
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- Semaphore object
-
getSemaphore
Description copied from interface:RedissonClient
Returns semaphore instance with specifiedoptions
.- Specified by:
getSemaphore
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- Semaphore object
-
getPermitExpirableSemaphore
Description copied from interface:RedissonClient
Returns semaphore instance by name. Supports lease time parameter for each acquired permit.- Specified by:
getPermitExpirableSemaphore
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- PermitExpirableSemaphore object
-
getPermitExpirableSemaphore
Description copied from interface:RedissonClient
Returns semaphore instance with specifiedoptions
. Supports lease time parameter for each acquired permit.- Specified by:
getPermitExpirableSemaphore
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- PermitExpirableSemaphore object
-
getBloomFilter
Description copied from interface:RedissonClient
Returns bloom filter instance by name.- Specified by:
getBloomFilter
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- BloomFilter object
-
getBloomFilter
Description copied from interface:RedissonClient
Returns bloom filter instance by name using provided codec for objects.- Specified by:
getBloomFilter
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- BloomFilter object
-
getBloomFilter
Description copied from interface:RedissonClient
Returns bloom filter instance with specifiedoptions
.- Specified by:
getBloomFilter
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- BloomFilter object
-
getIdGenerator
Description copied from interface:RedissonClient
Returns id generator instance by name.- Specified by:
getIdGenerator
in interfaceRedissonClient
- Parameters:
name
- name of object- Returns:
- IdGenerator object
-
getIdGenerator
Description copied from interface:RedissonClient
Returns id generator instance with specifiedoptions
.- Specified by:
getIdGenerator
in interfaceRedissonClient
- Parameters:
options
- instance options- Returns:
- IdGenerator object
-
getKeys
Description copied from interface:RedissonClient
Returns interface with methods for Redis keys. Each of Redis/Redisson object associated with own key- Specified by:
getKeys
in interfaceRedissonClient
- Returns:
- Keys object
-
getKeys
Description copied from interface:RedissonClient
Returns interface for operations over Redis keys with specifiedoptions
. Each of Redis/Redisson object is associated with own key.- Specified by:
getKeys
in interfaceRedissonClient
- Returns:
- Keys object
-
createTransaction
Description copied from interface:RedissonClient
Creates transaction with READ_COMMITTED isolation level.- Specified by:
createTransaction
in interfaceRedissonClient
- Parameters:
options
- transaction configuration- Returns:
- Transaction object
-
createBatch
Description copied from interface:RedissonClient
Creates batch object which could be executed later with collected group of commands in pipeline mode.- Specified by:
createBatch
in interfaceRedissonClient
- Parameters:
options
- batch configuration- Returns:
- Batch object
-
createBatch
Description copied from interface:RedissonClient
Creates batch object which could be executed later with collected group of commands in pipeline mode.- Specified by:
createBatch
in interfaceRedissonClient
- Returns:
- Batch object
-
getLiveObjectService
Description copied from interface:RedissonClient
Returns Live Object Service which is used to store Java objects- Specified by:
getLiveObjectService
in interfaceRedissonClient
- Returns:
- LiveObjectService object
-
getLiveObjectService
Description copied from interface:RedissonClient
Returns Live Object Service which is used to store Java objects with specifiedoptions
.- Specified by:
getLiveObjectService
in interfaceRedissonClient
- Returns:
- LiveObjectService object
-
shutdown
public void shutdown()Description copied from interface:RedissonClient
Shutdown Redisson instance but NOT Redis server This equates to invoke shutdown(0, 2, TimeUnit.SECONDS);- Specified by:
shutdown
in interfaceRedissonClient
-
shutdown
Description copied from interface:RedissonClient
Shuts down Redisson instance but NOT Redis server Shutdown ensures that no tasks are submitted for 'the quiet period' (usually a couple seconds) before it shuts itself down. If a task is submitted during the quiet period, it is guaranteed to be accepted and the quiet period will start over.- Specified by:
shutdown
in interfaceRedissonClient
- Parameters:
quietPeriod
- the quiet period as described in the documentationtimeout
- the maximum amount of time to wait until the executor is RedissonClient.shutdown() regardless if a task was submitted during the quiet periodunit
- the unit ofquietPeriod
andtimeout
-
getConfig
Description copied from interface:RedissonClient
Allows to get configuration provided during Redisson instance creation. Further changes on this object not affect Redisson instance.- Specified by:
getConfig
in interfaceRedissonClient
- Returns:
- Config object
-
getRedisNodes
Description copied from interface:RedissonClient
Returns API to manage Redis nodes- Specified by:
getRedisNodes
in interfaceRedissonClient
- Type Parameters:
T
- type of Redis nodes API- Parameters:
nodes
- Redis nodes API class- Returns:
- Redis nodes API object
- See Also:
-
getNodesGroup
- Specified by:
getNodesGroup
in interfaceRedissonClient
-
getClusterNodesGroup
- Specified by:
getClusterNodesGroup
in interfaceRedissonClient
-
isShutdown
public boolean isShutdown()Description copied from interface:RedissonClient
Returnstrue
if this Redisson instance has been shut down.- Specified by:
isShutdown
in interfaceRedissonClient
- Returns:
true
if this Redisson instance has been shut down overwisefalse
-
isShuttingDown
public boolean isShuttingDown()Description copied from interface:RedissonClient
Returnstrue
if this Redisson instance was started to be shutdown or was shutdownRedissonClient.isShutdown()
already.- Specified by:
isShuttingDown
in interfaceRedissonClient
- Returns:
true
if this Redisson instance was started to be shutdown or was shutdownRedissonClient.isShutdown()
already.
-
getPriorityQueue
Description copied from interface:RedissonClient
Returns priority unbounded queue instance by name. It uses comparator to sort objects.- Specified by:
getPriorityQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- of object- Returns:
- Queue object
-
getPriorityQueue
Description copied from interface:RedissonClient
Returns priority unbounded queue instance by name using provided codec for queue objects. It uses comparator to sort objects.- Specified by:
getPriorityQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Queue object
-
getPriorityQueue
- Specified by:
getPriorityQueue
in interfaceRedissonClient
-
getPriorityBlockingQueue
Description copied from interface:RedissonClient
Returns unbounded priority blocking queue instance by name. It uses comparator to sort objects.- Specified by:
getPriorityBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- of object- Returns:
- Queue object
-
getPriorityBlockingQueue
Description copied from interface:RedissonClient
Returns unbounded priority blocking queue instance by name using provided codec for queue objects. It uses comparator to sort objects.- Specified by:
getPriorityBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Queue object
-
getPriorityBlockingQueue
Description copied from interface:RedissonClient
Returns unbounded priority blocking queue instance with specifiedoptions
. It uses comparator to sort objects.- Specified by:
getPriorityBlockingQueue
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Queue object
-
getPriorityBlockingDeque
Description copied from interface:RedissonClient
Returns unbounded priority blocking deque instance by name. It uses comparator to sort objects.- Specified by:
getPriorityBlockingDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- of object- Returns:
- Queue object
-
getPriorityBlockingDeque
Description copied from interface:RedissonClient
Returns unbounded priority blocking deque instance by name using provided codec for queue objects. It uses comparator to sort objects.- Specified by:
getPriorityBlockingDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Queue object
-
getPriorityBlockingDeque
Description copied from interface:RedissonClient
Returns unbounded priority blocking deque instance with specifiedoptions
. It uses comparator to sort objects.- Specified by:
getPriorityBlockingDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Queue object
-
getPriorityDeque
Description copied from interface:RedissonClient
Returns priority unbounded deque instance by name. It uses comparator to sort objects.- Specified by:
getPriorityDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- of object- Returns:
- Queue object
-
getPriorityDeque
Description copied from interface:RedissonClient
Returns priority unbounded deque instance by name using provided codec for queue objects. It uses comparator to sort objects.- Specified by:
getPriorityDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Queue object
-
getPriorityDeque
Description copied from interface:RedissonClient
Returns priority unbounded deque instance with specifiedoptions
. It uses comparator to sort objects.- Specified by:
getPriorityDeque
in interfaceRedissonClient
- Type Parameters:
V
- type of value- Parameters:
options
- instance options- Returns:
- Queue object
-
getId
Description copied from interface:RedissonClient
Returns id of this Redisson instance- Specified by:
getId
in interfaceRedissonClient
- Returns:
- id
-