public class Redisson extends Object implements RedissonClient
Modifier and Type | Field and Description |
---|---|
protected CodecProvider |
codecProvider |
protected Config |
config |
protected ConnectionManager |
connectionManager |
protected EvictionScheduler |
evictionScheduler |
protected UUID |
id |
protected ConcurrentMap<Class<?>,Class<?>> |
liveObjectClassCache |
protected QueueTransferService |
queueTransferService |
protected ResolverProvider |
resolverProvider |
protected SemaphorePubSub |
semaphorePubSub |
Modifier | Constructor and Description |
---|---|
protected |
Redisson(Config config) |
Modifier and Type | Method and Description |
---|---|
static RedissonClient |
create()
Create sync/async Redisson instance with default config
|
static RedissonClient |
create(Config config)
Create sync/async Redisson instance with provided config
|
RBatch |
createBatch()
Return batch object which executes group of
command in pipeline.
|
static RedissonReactiveClient |
createReactive()
Create reactive Redisson instance with default config
|
static RedissonReactiveClient |
createReactive(Config config)
Create reactive Redisson instance with provided config
|
protected void |
enableRedissonReferenceSupport() |
RAtomicDouble |
getAtomicDouble(String name)
Returns atomicDouble instance by name.
|
RAtomicLong |
getAtomicLong(String name)
Returns atomicLong instance by name.
|
RBinaryStream |
getBinaryStream(String name)
Returns binary stream holder instance by
name |
RBitSet |
getBitSet(String name)
Returns bitSet instance by name.
|
<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> RBlockingFairQueue<V> |
getBlockingFairQueue(String name)
Returns unbounded fair queue instance by name.
|
<V> RBlockingFairQueue<V> |
getBlockingFairQueue(String name,
Codec codec) |
<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> 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> RBoundedBlockingQueue<V> |
getBoundedBlockingQueue(String name)
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> RBucket<V> |
getBucket(String name)
Returns object holder instance by name.
|
<V> RBucket<V> |
getBucket(String name,
Codec codec)
Returns object holder instance by name
using provided codec for object.
|
RBuckets |
getBuckets()
Returns interface for mass operations with Bucket objects.
|
RBuckets |
getBuckets(Codec codec)
Returns interface for mass operations with Bucket objects
using provided codec for object.
|
ClusterNodesGroup |
getClusterNodesGroup()
Get Redis cluster nodes group for server operations
|
CodecProvider |
getCodecProvider()
Returns the CodecProvider instance
|
CommandExecutor |
getCommandExecutor() |
Config |
getConfig()
Allows to get configuration provided
during Redisson instance creation.
|
ConnectionManager |
getConnectionManager() |
RCountDownLatch |
getCountDownLatch(String name)
Returns countDownLatch instance by name.
|
<V> RDelayedQueue<V> |
getDelayedQueue(RQueue<V> destinationQueue)
Returns unbounded delayed queue instance by name.
|
<V> RDeque<V> |
getDeque(String name)
Returns unbounded deque instance by name.
|
<V> RDeque<V> |
getDeque(String name,
Codec codec)
Returns unbounded deque instance by name
using provided codec for deque objects.
|
EvictionScheduler |
getEvictionScheduler() |
RScheduledExecutorService |
getExecutorService(Codec codec,
String name)
Deprecated.
|
RScheduledExecutorService |
getExecutorService(String name)
Returns ScheduledExecutorService by name
|
RScheduledExecutorService |
getExecutorService(String name,
Codec codec)
Returns ScheduledExecutorService by name
using provided codec for task, response and request serialization
|
RLock |
getFairLock(String name)
Returns lock instance by name.
|
<V> RGeo<V> |
getGeo(String name)
Returns geospatial items holder instance by
name . |
<V> RGeo<V> |
getGeo(String name,
Codec codec)
Returns geospatial items holder instance by
name
using provided codec for geospatial members. |
<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.
|
RKeys |
getKeys()
Returns interface with methods for Redis keys.
|
RLexSortedSet |
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> RList<V> |
getList(String name)
Returns list instance by name.
|
<V> RList<V> |
getList(String name,
Codec codec)
Returns list instance by name
using provided codec for list objects.
|
<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> 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.
|
RLiveObjectService |
getLiveObjectService()
Returns RedissonAttachedLiveObjectService which can be used to
retrieve live REntity(s)
|
<K,V> RLocalCachedMap<K,V> |
getLocalCachedMap(String name,
Codec codec,
LocalCachedMapOptions options)
Returns local cached map instance by name
using provided codec.
|
<K,V> RLocalCachedMap<K,V> |
getLocalCachedMap(String name,
LocalCachedMapOptions options)
Returns local cached map instance by name.
|
RLock |
getLock(String name)
Returns lock instance by name.
|
<K,V> RMap<K,V> |
getMap(String name)
Returns map instance by name.
|
<K,V> RMap<K,V> |
getMap(String name,
Codec codec)
Returns map instance by name
using provided codec for both map keys and values.
|
<K,V> RMapCache<K,V> |
getMapCache(String name)
Returns map-based cache instance by name.
|
<K,V> RMapCache<K,V> |
getMapCache(String name,
Codec codec)
Returns map-based cache instance by
name
using provided codec for both cache keys and values. |
NodesGroup<Node> |
getNodesGroup()
Get Redis nodes group for server operations
|
<M> RPatternTopic<M> |
getPatternTopic(String pattern)
Returns topic instance satisfies by pattern name.
|
<M> RPatternTopic<M> |
getPatternTopic(String pattern,
Codec codec)
Returns topic instance satisfies by pattern name
using provided codec for messages.
|
RPermitExpirableSemaphore |
getPermitExpirableSemaphore(String name)
Returns semaphore instance by name.
|
<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> 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> RQueue<V> |
getQueue(String name)
Returns unbounded queue instance by name.
|
<V> RQueue<V> |
getQueue(String name,
Codec codec)
Returns unbounded queue instance by name
using provided codec for queue objects.
|
RReadWriteLock |
getReadWriteLock(String name)
Returns readWriteLock instance by name.
|
RRemoteService |
getRemoteService()
Returns object for remote operations prefixed with the default name (redisson_remote_service)
|
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.
|
RRemoteService |
getRemoteService(String name)
Returns object for remote operations prefixed with the specified name
|
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.
|
ResolverProvider |
getResolverProvider()
Returns the ResolverProvider instance
|
<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.
|
RScript |
getScript()
Returns script operations object
|
RSemaphore |
getSemaphore(String name)
Returns semaphore instance by name
|
<V> RSet<V> |
getSet(String name)
Returns set instance by name.
|
<V> RSet<V> |
getSet(String name,
Codec codec)
Returns set instance by name
using provided codec for set objects.
|
<V> RSetCache<V> |
getSetCache(String name)
Returns set-based cache instance by
name . |
<V> RSetCache<V> |
getSetCache(String name,
Codec codec)
Returns set-based cache instance by
name . |
<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> 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.
|
<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.
|
<M> RTopic<M> |
getTopic(String name)
Returns topic instance by name.
|
<M> RTopic<M> |
getTopic(String name,
Codec codec)
Returns topic instance by name
using provided codec for messages.
|
boolean |
isShutdown()
Returns
true if this Redisson instance has been shut down. |
boolean |
isShuttingDown()
Returns
true if this Redisson instance was started to be shutdown
or was shutdown RedissonClient.isShutdown() already. |
void |
shutdown()
Shutdown Redisson instance but NOT Redis server
This equates to invoke shutdown(2, 15, TimeUnit.SECONDS);
|
void |
shutdown(long quietPeriod,
long timeout,
TimeUnit unit)
Shuts down Redisson instance NOT Redis server
Shutdown ensures that no tasks are submitted for 'the quiet period'
(usually a couple seconds) before it shuts itself down.
|
protected final QueueTransferService queueTransferService
protected final EvictionScheduler evictionScheduler
protected final ConnectionManager connectionManager
protected final ConcurrentMap<Class<?>,Class<?>> liveObjectClassCache
protected final CodecProvider codecProvider
protected final ResolverProvider resolverProvider
protected final Config config
protected final SemaphorePubSub semaphorePubSub
protected final UUID id
protected Redisson(Config config)
public EvictionScheduler getEvictionScheduler()
public CommandExecutor getCommandExecutor()
public ConnectionManager getConnectionManager()
public static RedissonClient create()
public static RedissonClient create(Config config)
config
- for Redissonpublic static RedissonReactiveClient createReactive()
public static RedissonReactiveClient createReactive(Config config)
config
- for Redissonpublic RBinaryStream getBinaryStream(String name)
RedissonClient
name
getBinaryStream
in interface RedissonClient
name
- of binary streampublic <V> RGeo<V> getGeo(String name)
RedissonClient
name
.getGeo
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RGeo<V> getGeo(String name, Codec codec)
RedissonClient
name
using provided codec for geospatial members.getGeo
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuepublic <V> RBucket<V> getBucket(String name)
RedissonClient
getBucket
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RBucket<V> getBucket(String name, Codec codec)
RedissonClient
getBucket
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic RBuckets getBuckets()
RedissonClient
getBuckets
in interface RedissonClient
public RBuckets getBuckets(Codec codec)
RedissonClient
getBuckets
in interface RedissonClient
codec
- - codec for bucket objectspublic <V> RHyperLogLog<V> getHyperLogLog(String name)
RedissonClient
getHyperLogLog
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RHyperLogLog<V> getHyperLogLog(String name, Codec codec)
RedissonClient
getHyperLogLog
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <V> RList<V> getList(String name)
RedissonClient
getList
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RList<V> getList(String name, Codec codec)
RedissonClient
getList
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <K,V> RListMultimap<K,V> getListMultimap(String name)
RedissonClient
getListMultimap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RListMultimap<K,V> getListMultimap(String name, Codec codec)
RedissonClient
getListMultimap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RLocalCachedMap<K,V> getLocalCachedMap(String name, LocalCachedMapOptions options)
RedissonClient
getLocalCachedMap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectoptions
- - local map optionspublic <K,V> RLocalCachedMap<K,V> getLocalCachedMap(String name, Codec codec, LocalCachedMapOptions options)
RedissonClient
getLocalCachedMap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuesoptions
- - local map optionspublic <K,V> RMap<K,V> getMap(String name)
RedissonClient
getMap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RSetMultimap<K,V> getSetMultimap(String name)
RedissonClient
getSetMultimap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RSetMultimapCache<K,V> getSetMultimapCache(String name)
RedissonClient
If eviction is not required then it's better to use regular map RedissonClient.getSetMultimap(String)
.
getSetMultimapCache
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RSetMultimapCache<K,V> getSetMultimapCache(String name, Codec codec)
RedissonClient
If eviction is not required then it's better to use regular map RedissonClient.getSetMultimap(String, Codec)
.
getSetMultimapCache
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RListMultimapCache<K,V> getListMultimapCache(String name)
RedissonClient
If eviction is not required then it's better to use regular map RedissonClient.getSetMultimap(String)
.
getListMultimapCache
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RListMultimapCache<K,V> getListMultimapCache(String name, Codec codec)
RedissonClient
If eviction is not required then it's better to use regular map RedissonClient.getSetMultimap(String, Codec)
.
getListMultimapCache
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RSetMultimap<K,V> getSetMultimap(String name, Codec codec)
RedissonClient
getSetMultimap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <V> RSetCache<V> getSetCache(String name)
RedissonClient
name
.
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)
.
getSetCache
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RSetCache<V> getSetCache(String name, Codec codec)
RedissonClient
name
.
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)
.
getSetCache
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <K,V> RMapCache<K,V> getMapCache(String name)
RedissonClient
If eviction is not required then it's better to use regular map RedissonClient.getMap(String)
.
getMapCache
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RMapCache<K,V> getMapCache(String name, Codec codec)
RedissonClient
name
using provided codec
for both cache keys and values.
Supports entry eviction with a given TTL value.
If eviction is not required then it's better to use regular map RedissonClient.getMap(String, Codec)
.
getMapCache
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RMap<K,V> getMap(String name, Codec codec)
RedissonClient
getMap
in interface RedissonClient
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic RLock getLock(String name)
RedissonClient
Implements a non-fair locking so doesn't guarantees an acquire order by threads.
getLock
in interface RedissonClient
name
- - name of objectpublic RLock getFairLock(String name)
RedissonClient
Implements a fair locking so it guarantees an acquire order by threads.
getFairLock
in interface RedissonClient
name
- - name of objectpublic RReadWriteLock getReadWriteLock(String name)
RedissonClient
getReadWriteLock
in interface RedissonClient
name
- - name of objectpublic <V> RSet<V> getSet(String name)
RedissonClient
getSet
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RSet<V> getSet(String name, Codec codec)
RedissonClient
getSet
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic RScript getScript()
RedissonClient
getScript
in interface RedissonClient
public RScheduledExecutorService getExecutorService(String name)
RedissonClient
getExecutorService
in interface RedissonClient
name
- - name of object@Deprecated public RScheduledExecutorService getExecutorService(Codec codec, String name)
RedissonClient
getExecutorService
in interface RedissonClient
codec
- - codec for task, response and requestname
- - name of objectpublic RScheduledExecutorService getExecutorService(String name, Codec codec)
RedissonClient
getExecutorService
in interface RedissonClient
name
- - name of objectcodec
- - codec for task, response and requestpublic RRemoteService getRemoteService()
RedissonClient
getRemoteService
in interface RedissonClient
public RRemoteService getRemoteService(String name)
RedissonClient
getRemoteService
in interface RedissonClient
name
- - the name used as the Redis key prefix for the servicespublic RRemoteService getRemoteService(Codec codec)
RedissonClient
getRemoteService
in interface RedissonClient
codec
- - codec for response and requestpublic RRemoteService getRemoteService(String name, Codec codec)
RedissonClient
getRemoteService
in interface RedissonClient
name
- - the name used as the Redis key prefix for the servicescodec
- - codec for response and requestpublic <V> RSortedSet<V> getSortedSet(String name)
RedissonClient
getSortedSet
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RSortedSet<V> getSortedSet(String name, Codec codec)
RedissonClient
getSortedSet
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <V> RScoredSortedSet<V> getScoredSortedSet(String name)
RedissonClient
getScoredSortedSet
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RScoredSortedSet<V> getScoredSortedSet(String name, Codec codec)
RedissonClient
getScoredSortedSet
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic RLexSortedSet getLexSortedSet(String name)
RedissonClient
getLexSortedSet
in interface RedissonClient
name
- - name of objectpublic <M> RTopic<M> getTopic(String name)
RedissonClient
getTopic
in interface RedissonClient
M
- type of messagename
- - name of objectpublic <M> RTopic<M> getTopic(String name, Codec codec)
RedissonClient
getTopic
in interface RedissonClient
M
- type of messagename
- - name of objectcodec
- - codec for messagepublic <M> RPatternTopic<M> getPatternTopic(String pattern)
RedissonClient
getPatternTopic
in interface RedissonClient
M
- type of messagepattern
- of the topicpublic <M> RPatternTopic<M> getPatternTopic(String pattern, Codec codec)
RedissonClient
getPatternTopic
in interface RedissonClient
M
- type of messagepattern
- of the topiccodec
- - codec for messagepublic <V> RBlockingFairQueue<V> getBlockingFairQueue(String name)
RedissonClient
getBlockingFairQueue
in interface RedissonClient
V
- type of valuename
- of queuepublic <V> RBlockingFairQueue<V> getBlockingFairQueue(String name, Codec codec)
getBlockingFairQueue
in interface RedissonClient
public <V> RDelayedQueue<V> getDelayedQueue(RQueue<V> destinationQueue)
RedissonClient
Could be attached to destination queue only. All elements are inserted with transfer delay to destination queue.
getDelayedQueue
in interface RedissonClient
V
- type of valuedestinationQueue
- - destination queuepublic <V> RQueue<V> getQueue(String name)
RedissonClient
getQueue
in interface RedissonClient
V
- type of valuename
- of objectpublic <V> RQueue<V> getQueue(String name, Codec codec)
RedissonClient
getQueue
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for messagepublic <V> RBlockingQueue<V> getBlockingQueue(String name)
RedissonClient
getBlockingQueue
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RBlockingQueue<V> getBlockingQueue(String name, Codec codec)
RedissonClient
getBlockingQueue
in interface RedissonClient
V
- type of valuename
- - name of queuecodec
- - queue objects codecpublic <V> RBoundedBlockingQueue<V> getBoundedBlockingQueue(String name)
RedissonClient
getBoundedBlockingQueue
in interface RedissonClient
V
- type of valuename
- of queuepublic <V> RBoundedBlockingQueue<V> getBoundedBlockingQueue(String name, Codec codec)
RedissonClient
getBoundedBlockingQueue
in interface RedissonClient
V
- type of valuename
- - name of queuecodec
- - codec for valuespublic <V> RDeque<V> getDeque(String name)
RedissonClient
getDeque
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RDeque<V> getDeque(String name, Codec codec)
RedissonClient
getDeque
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <V> RBlockingDeque<V> getBlockingDeque(String name)
RedissonClient
getBlockingDeque
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RBlockingDeque<V> getBlockingDeque(String name, Codec codec)
RedissonClient
getBlockingDeque
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - deque objects codecpublic RAtomicLong getAtomicLong(String name)
RedissonClient
getAtomicLong
in interface RedissonClient
name
- - name of objectpublic RAtomicDouble getAtomicDouble(String name)
RedissonClient
getAtomicDouble
in interface RedissonClient
name
- - name of objectpublic RCountDownLatch getCountDownLatch(String name)
RedissonClient
getCountDownLatch
in interface RedissonClient
name
- - name of objectpublic RBitSet getBitSet(String name)
RedissonClient
getBitSet
in interface RedissonClient
name
- - name of objectpublic RSemaphore getSemaphore(String name)
RedissonClient
getSemaphore
in interface RedissonClient
name
- - name of objectpublic RPermitExpirableSemaphore getPermitExpirableSemaphore(String name)
RedissonClient
getPermitExpirableSemaphore
in interface RedissonClient
name
- - name of objectpublic <V> RBloomFilter<V> getBloomFilter(String name)
RedissonClient
getBloomFilter
in interface RedissonClient
V
- type of valuename
- - name of objectpublic <V> RBloomFilter<V> getBloomFilter(String name, Codec codec)
RedissonClient
getBloomFilter
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic RKeys getKeys()
RedissonClient
getKeys
in interface RedissonClient
public RBatch createBatch()
RedissonClient
createBatch
in interface RedissonClient
public RLiveObjectService getLiveObjectService()
RedissonClient
getLiveObjectService
in interface RedissonClient
public void shutdown()
RedissonClient
shutdown
in interface RedissonClient
public void shutdown(long quietPeriod, long timeout, TimeUnit unit)
RedissonClient
shutdown
in interface RedissonClient
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 of quietPeriod
and timeout
public Config getConfig()
RedissonClient
getConfig
in interface RedissonClient
public CodecProvider getCodecProvider()
RedissonClient
getCodecProvider
in interface RedissonClient
public ResolverProvider getResolverProvider()
RedissonClient
getResolverProvider
in interface RedissonClient
public NodesGroup<Node> getNodesGroup()
RedissonClient
getNodesGroup
in interface RedissonClient
public ClusterNodesGroup getClusterNodesGroup()
RedissonClient
getClusterNodesGroup
in interface RedissonClient
public boolean isShutdown()
RedissonClient
true
if this Redisson instance has been shut down.isShutdown
in interface RedissonClient
false
public boolean isShuttingDown()
RedissonClient
true
if this Redisson instance was started to be shutdown
or was shutdown RedissonClient.isShutdown()
already.isShuttingDown
in interface RedissonClient
true
if this Redisson instance was started to be shutdown
or was shutdown RedissonClient.isShutdown()
already.protected void enableRedissonReferenceSupport()
public <V> RPriorityQueue<V> getPriorityQueue(String name)
RedissonClient
getPriorityQueue
in interface RedissonClient
V
- type of valuename
- of objectpublic <V> RPriorityQueue<V> getPriorityQueue(String name, Codec codec)
RedissonClient
getPriorityQueue
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for messagepublic <V> RPriorityDeque<V> getPriorityDeque(String name)
RedissonClient
getPriorityDeque
in interface RedissonClient
V
- type of valuename
- of objectpublic <V> RPriorityDeque<V> getPriorityDeque(String name, Codec codec)
RedissonClient
getPriorityDeque
in interface RedissonClient
V
- type of valuename
- - name of objectcodec
- - codec for messageCopyright © 2014–2017 The Redisson Project. All rights reserved.