public class RedissonRx extends Object implements RedissonRxClient
| Modifier and Type | Field and Description |
|---|---|
protected CommandRxExecutor |
commandExecutor |
protected ConnectionManager |
connectionManager |
protected EvictionScheduler |
evictionScheduler |
protected ConcurrentMap<String,ResponseEntry> |
responses |
protected WriteBehindService |
writeBehindService |
| Modifier | Constructor and Description |
|---|---|
protected |
RedissonRx(Config config) |
protected |
RedissonRx(ConnectionManager connectionManager,
EvictionScheduler evictionScheduler,
WriteBehindService writeBehindService,
ConcurrentMap<String,ResponseEntry> responses) |
| Modifier and Type | Method and Description |
|---|---|
RBatchRx |
createBatch()
Return batch object which executes group of
command in pipeline.
|
RBatchRx |
createBatch(BatchOptions options)
Return batch object which executes group of
command in pipeline.
|
RTransactionRx |
createTransaction(TransactionOptions options)
Creates transaction with READ_COMMITTED isolation level.
|
RAtomicDoubleRx |
getAtomicDouble(String name)
Returns "atomic double" instance by name.
|
RAtomicLongRx |
getAtomicLong(String name)
Returns "atomic long" instance by name.
|
RBinaryStreamRx |
getBinaryStream(String name)
Returns binary stream holder instance by
name |
RBitSetRx |
getBitSet(String name)
Returns bitSet instance by name.
|
<V> RBlockingDequeRx<V> |
getBlockingDeque(String name)
Returns unbounded blocking deque instance by name.
|
<V> RBlockingDequeRx<V> |
getBlockingDeque(String name,
Codec codec)
Returns unbounded blocking deque instance by name
using provided codec for deque objects.
|
<V> RBlockingQueueRx<V> |
getBlockingQueue(String name)
Returns blocking queue instance by name.
|
<V> RBlockingQueueRx<V> |
getBlockingQueue(String name,
Codec codec)
Returns blocking queue instance by name
using provided codec for queue objects.
|
<V> RBucketRx<V> |
getBucket(String name)
Returns object holder instance by name
|
<V> RBucketRx<V> |
getBucket(String name,
Codec codec)
Returns object holder instance by name
using provided codec for object.
|
RBucketsRx |
getBuckets()
Returns interface for mass operations with Bucket objects.
|
RBucketsRx |
getBuckets(Codec codec)
Returns interface for mass operations with Bucket objects
using provided codec for object.
|
NodesGroup<ClusterNode> |
getClusterNodesGroup()
Get Redis cluster nodes group for server operations
|
CommandRxExecutor |
getCommandExecutor() |
Config |
getConfig()
Allows to get configuration provided
during Redisson instance creation.
|
RCountDownLatchRx |
getCountDownLatch(String name)
Returns CountDownLatch instance by name.
|
<V> RDequeRx<V> |
getDeque(String name)
Returns deque instance by name.
|
<V> RDequeRx<V> |
getDeque(String name,
Codec codec)
Returns deque instance by name
using provided codec for deque objects.
|
RLockRx |
getFairLock(String name)
Returns Lock instance by name.
|
<V> RGeoRx<V> |
getGeo(String name)
Returns geospatial items holder instance by
name. |
<V> RGeoRx<V> |
getGeo(String name,
Codec codec)
Returns geospatial items holder instance by
name
using provided codec for geospatial members. |
<V> RHyperLogLogRx<V> |
getHyperLogLog(String name)
Returns HyperLogLog instance by name.
|
<V> RHyperLogLogRx<V> |
getHyperLogLog(String name,
Codec codec)
Returns HyperLogLog instance by name
using provided codec for hll objects.
|
String |
getId()
Returns id of this Redisson instance
|
RIdGeneratorRx |
getIdGenerator(String name)
Returns id generator by name.
|
RKeysRx |
getKeys()
Returns keys operations.
|
RLexSortedSetRx |
getLexSortedSet(String name)
Returns String based Redis Sorted Set instance by name
All elements are inserted with the same score during addition,
in order to force lexicographical ordering
|
<V> RListRx<V> |
getList(String name)
Returns list instance by name.
|
<V> RListRx<V> |
getList(String name,
Codec codec)
Returns list instance by name
using provided codec for list objects.
|
<K,V> RListMultimapRx<K,V> |
getListMultimap(String name)
Returns List based Multimap instance by name.
|
<K,V> RListMultimapRx<K,V> |
getListMultimap(String name,
Codec codec)
Returns List based Multimap instance by name
using provided codec for both map keys and values.
|
<K,V> RListMultimapCacheRx<K,V> |
getListMultimapCache(String name)
Returns List based Multimap cache instance by name.
|
<K,V> RListMultimapCacheRx<K,V> |
getListMultimapCache(String name,
Codec codec)
Returns List based Multimap cache instance by name using provided codec for both map keys and values.
|
RLockRx |
getLock(String name)
Returns Lock instance by name.
|
<K,V> RMapRx<K,V> |
getMap(String name)
Returns map instance by name.
|
<K,V> RMapRx<K,V> |
getMap(String name,
Codec codec)
Returns map instance by name
using provided codec for both map keys and values.
|
<K,V> RMapRx<K,V> |
getMap(String name,
Codec codec,
MapOptions<K,V> options)
Returns map instance by name
using provided codec for both map keys and values.
|
<K,V> RMapRx<K,V> |
getMap(String name,
MapOptions<K,V> options)
Returns map instance by name.
|
<K,V> RMapCacheRx<K,V> |
getMapCache(String name)
Returns map-based cache instance by name.
|
<K,V> RMapCacheRx<K,V> |
getMapCache(String name,
Codec codec)
Returns map-based cache instance by name
using provided codec for both cache keys and values.
|
<K,V> RMapCacheRx<K,V> |
getMapCache(String name,
Codec codec,
MapOptions<K,V> options)
Returns map-based cache instance by
name
using provided codec for both cache keys and values. |
<K,V> RMapCacheRx<K,V> |
getMapCache(String name,
MapOptions<K,V> options)
Returns map-based cache instance by name.
|
RLockRx |
getMultiLock(RLock... locks)
Returns MultiLock instance associated with specified
locks |
NodesGroup<Node> |
getNodesGroup()
Get Redis nodes group for server operations
|
RPatternTopicRx |
getPatternTopic(String pattern)
Returns topic instance satisfies by pattern name.
|
RPatternTopicRx |
getPatternTopic(String pattern,
Codec codec)
Returns topic instance satisfies by pattern name
using provided codec for messages.
|
RPermitExpirableSemaphoreRx |
getPermitExpirableSemaphore(String name)
Returns semaphore instance by name.
|
<V> RQueueRx<V> |
getQueue(String name)
Returns queue instance by name.
|
<V> RQueueRx<V> |
getQueue(String name,
Codec codec)
Returns queue instance by name
using provided codec for queue objects.
|
RRateLimiterRx |
getRateLimiter(String name)
Returns rate limiter instance by
name |
RReadWriteLockRx |
getReadWriteLock(String name)
Returns ReadWriteLock instance by name.
|
RLockRx |
getRedLock(RLock... locks) |
RReliableTopicRx |
getReliableTopic(String name)
Returns reliable topic instance by name.
|
RReliableTopicRx |
getReliableTopic(String name,
Codec codec)
Returns reliable topic instance by name
using provided codec for messages.
|
RRemoteService |
getRemoteService()
Returns object for remote operations prefixed with the default name (redisson_remote_service)
|
RRemoteService |
getRemoteService(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.
|
<V> RRingBufferRx<V> |
getRingBuffer(String name)
Returns RingBuffer based queue.
|
<V> RRingBufferRx<V> |
getRingBuffer(String name,
Codec codec)
Returns RingBuffer based queue.
|
<V> RScoredSortedSetRx<V> |
getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name.
|
<V> RScoredSortedSetRx<V> |
getScoredSortedSet(String name,
Codec codec)
Returns Redis Sorted Set instance by name
using provided codec for sorted set objects.
|
RScriptRx |
getScript()
Returns script operations object
|
RScriptRx |
getScript(Codec codec)
Returns script operations object using provided codec.
|
RSemaphoreRx |
getSemaphore(String name)
Returns semaphore instance by name
|
<V> RSetRx<V> |
getSet(String name)
Returns set instance by name.
|
<V> RSetRx<V> |
getSet(String name,
Codec codec)
Returns set instance by name
using provided codec for set objects.
|
<V> RSetCacheRx<V> |
getSetCache(String name)
Returns set-based cache instance by
name. |
<V> RSetCacheRx<V> |
getSetCache(String name,
Codec codec)
Returns set-based cache instance by
name. |
<K,V> RSetMultimapRx<K,V> |
getSetMultimap(String name)
Returns Set based Multimap instance by name.
|
<K,V> RSetMultimapRx<K,V> |
getSetMultimap(String name,
Codec codec)
Returns Set based Multimap instance by name
using provided codec for both map keys and values.
|
<K,V> RSetMultimapCacheRx<K,V> |
getSetMultimapCache(String name)
Returns Set based Multimap cache instance by name.
|
<K,V> RSetMultimapCacheRx<K,V> |
getSetMultimapCache(String name,
Codec codec)
Returns Set based Multimap cache instance by name using provided codec for both map keys and values.
|
RLockRx |
getSpinLock(String name)
Returns Spin lock instance by name.
|
RLockRx |
getSpinLock(String name,
LockOptions.BackOff backOff)
Returns Spin lock instance by name with specified back off options.
|
<K,V> RStreamRx<K,V> |
getStream(String name)
Returns stream instance by
name
Requires Redis 5.0.0 and higher. |
<K,V> RStreamRx<K,V> |
getStream(String name,
Codec codec)
Returns stream instance by
name
using provided codec for entries. |
<V> RTimeSeriesRx<V> |
getTimeSeries(String name)
Returns time-series instance by
name |
<V> RTimeSeriesRx<V> |
getTimeSeries(String name,
Codec codec)
Returns time-series instance by
name
using provided codec for values. |
RTopicRx |
getTopic(String name)
Returns topic instance by name.
|
RTopicRx |
getTopic(String name,
Codec codec)
Returns topic instance by name
using provided codec for messages.
|
<V> RTransferQueueRx<V> |
getTransferQueue(String name)
Returns transfer queue instance by name.
|
<V> RTransferQueueRx<V> |
getTransferQueue(String name,
Codec codec)
Returns transfer queue instance by name
using provided codec for queue objects.
|
boolean |
isShutdown()
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 RedissonRxClient.isShutdown() already. |
void |
shutdown()
Shuts down Redisson instance NOT Redis server
|
protected final WriteBehindService writeBehindService
protected final EvictionScheduler evictionScheduler
protected final CommandRxExecutor commandExecutor
protected final ConnectionManager connectionManager
protected final ConcurrentMap<String,ResponseEntry> responses
protected RedissonRx(Config config)
protected RedissonRx(ConnectionManager connectionManager, EvictionScheduler evictionScheduler, WriteBehindService writeBehindService, ConcurrentMap<String,ResponseEntry> responses)
public CommandRxExecutor getCommandExecutor()
public <K,V> RStreamRx<K,V> getStream(String name)
RedissonRxClientname
Requires Redis 5.0.0 and higher.
getStream in interface RedissonRxClientK - type of keyV - type of valuename - of streampublic <K,V> RStreamRx<K,V> getStream(String name, Codec codec)
RedissonRxClientname
using provided codec for entries.
Requires Redis 5.0.0 and higher.
getStream in interface RedissonRxClientK - type of keyV - type of valuename - - name of streamcodec - - codec for entrypublic <V> RGeoRx<V> getGeo(String name)
RedissonRxClientname.getGeo in interface RedissonRxClientV - type of valuename - - name of objectpublic <V> RGeoRx<V> getGeo(String name, Codec codec)
RedissonRxClientname
using provided codec for geospatial members.getGeo in interface RedissonRxClientV - type of valuename - - name of objectcodec - - codec for valuepublic RLockRx getFairLock(String name)
RedissonRxClientImplements 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.
getFairLock in interface RedissonRxClientname - - name of objectpublic RRateLimiterRx getRateLimiter(String name)
RedissonRxClientnamegetRateLimiter in interface RedissonRxClientname - of rate limiterpublic RBinaryStreamRx getBinaryStream(String name)
RedissonRxClientnamegetBinaryStream in interface RedissonRxClientname - of binary streampublic RSemaphoreRx getSemaphore(String name)
RedissonRxClientgetSemaphore in interface RedissonRxClientname - - name of objectpublic RPermitExpirableSemaphoreRx getPermitExpirableSemaphore(String name)
RedissonRxClientgetPermitExpirableSemaphore in interface RedissonRxClientname - - name of objectpublic RReadWriteLockRx getReadWriteLock(String name)
RedissonRxClientTo increase reliability during failover, all operations wait for propagation to all Redis slaves.
getReadWriteLock in interface RedissonRxClientname - - name of objectpublic RLockRx getLock(String name)
RedissonRxClientImplements 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.
getLock in interface RedissonRxClientname - - name of objectpublic RLockRx getSpinLock(String name)
RedissonRxClientImplements a non-fair locking so doesn't guarantees an acquire order by threads.
Lock doesn't use a pub/sub mechanism
getSpinLock in interface RedissonRxClientname - - name of objectpublic RLockRx getSpinLock(String name, LockOptions.BackOff backOff)
RedissonRxClientImplements a non-fair locking so doesn't guarantees an acquire order by threads.
Lock doesn't use a pub/sub mechanism
getSpinLock in interface RedissonRxClientname - - name of objectpublic RLockRx getMultiLock(RLock... locks)
RedissonRxClientlocksgetMultiLock in interface RedissonRxClientlocks - - collection of lockspublic RLockRx getRedLock(RLock... locks)
getRedLock in interface RedissonRxClientpublic RCountDownLatchRx getCountDownLatch(String name)
RedissonRxClientgetCountDownLatch in interface RedissonRxClientname - - name of objectpublic <K,V> RMapCacheRx<K,V> getMapCache(String name, Codec codec)
RedissonRxClient
If eviction is not required then it's better to use regular map RedissonRxClient.getMap(String, Codec).
getMapCache in interface RedissonRxClientK - type of keysV - type of valuesname - - name of objectcodec - - codec for valuespublic <K,V> RMapCacheRx<K,V> getMapCache(String name)
RedissonRxClient
If eviction is not required then it's better to use regular map RedissonRxClient.getMap(String).
getMapCache in interface RedissonRxClientK - type of keysV - type of valuesname - - name of objectpublic <V> RBucketRx<V> getBucket(String name)
RedissonRxClientgetBucket in interface RedissonRxClientV - type of valuename - - name of objectpublic <V> RBucketRx<V> getBucket(String name, Codec codec)
RedissonRxClientgetBucket in interface RedissonRxClientV - type of valuename - - name of objectcodec - - codec for valuepublic RBucketsRx getBuckets()
RedissonRxClientgetBuckets in interface RedissonRxClientpublic RBucketsRx getBuckets(Codec codec)
RedissonRxClientgetBuckets in interface RedissonRxClientcodec - - codec for bucket objectspublic <V> RHyperLogLogRx<V> getHyperLogLog(String name)
RedissonRxClientgetHyperLogLog in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RHyperLogLogRx<V> getHyperLogLog(String name, Codec codec)
RedissonRxClientgetHyperLogLog in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - codec of valuespublic RIdGeneratorRx getIdGenerator(String name)
RedissonRxClientgetIdGenerator in interface RedissonRxClientname - - name of objectpublic <V> RListRx<V> getList(String name)
RedissonRxClientgetList in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RListRx<V> getList(String name, Codec codec)
RedissonRxClientgetList in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - codec for valuespublic <K,V> RListMultimapRx<K,V> getListMultimap(String name)
RedissonRxClientgetListMultimap in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectpublic <K,V> RListMultimapRx<K,V> getListMultimap(String name, Codec codec)
RedissonRxClientgetListMultimap in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <K,V> RListMultimapCacheRx<K,V> getListMultimapCache(String name)
RedissonRxClientRedissonRxClient.getListMultimap(String).getListMultimapCache in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectpublic <K,V> RListMultimapCacheRx<K,V> getListMultimapCache(String name, Codec codec)
RedissonRxClientRedissonRxClient.getListMultimap(String, Codec).getListMultimapCache in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <K,V> RSetMultimapRx<K,V> getSetMultimap(String name)
RedissonRxClientgetSetMultimap in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectpublic <K,V> RSetMultimapRx<K,V> getSetMultimap(String name, Codec codec)
RedissonRxClientgetSetMultimap in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <K,V> RSetMultimapCacheRx<K,V> getSetMultimapCache(String name)
RedissonRxClientRedissonRxClient.getSetMultimap(String).getSetMultimapCache in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectpublic <K,V> RSetMultimapCacheRx<K,V> getSetMultimapCache(String name, Codec codec)
RedissonRxClientRedissonRxClient.getSetMultimap(String, Codec).getSetMultimapCache in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <K,V> RMapRx<K,V> getMap(String name)
RedissonRxClientgetMap in interface RedissonRxClientK - type of keysV - type of valuesname - - name of objectpublic <K,V> RMapRx<K,V> getMap(String name, Codec codec)
RedissonRxClientgetMap in interface RedissonRxClientK - type of keysV - type of valuesname - - name of objectcodec - - codec for keys and valuespublic <V> RSetRx<V> getSet(String name)
RedissonRxClientgetSet in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RSetRx<V> getSet(String name, Codec codec)
RedissonRxClientgetSet in interface RedissonRxClientV - type of valuesname - - name of setcodec - - codec for valuespublic <V> RScoredSortedSetRx<V> getScoredSortedSet(String name)
RedissonRxClientgetScoredSortedSet in interface RedissonRxClientV - type of valuesname - of scored sorted setpublic <V> RScoredSortedSetRx<V> getScoredSortedSet(String name, Codec codec)
RedissonRxClientgetScoredSortedSet in interface RedissonRxClientV - type of valuesname - - name of scored sorted setcodec - - codec for valuespublic RLexSortedSetRx getLexSortedSet(String name)
RedissonRxClientgetLexSortedSet in interface RedissonRxClientname - - name of objectpublic RTopicRx getTopic(String name)
RedissonRxClientgetTopic in interface RedissonRxClientname - - name of objectpublic RTopicRx getTopic(String name, Codec codec)
RedissonRxClientgetTopic in interface RedissonRxClientname - - name of objectcodec - - codec for messagepublic RReliableTopicRx getReliableTopic(String name)
RedissonRxClientDedicated 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.
getReliableTopic in interface RedissonRxClientname - - name of objectpublic RReliableTopicRx getReliableTopic(String name, Codec codec)
RedissonRxClientDedicated 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.
getReliableTopic in interface RedissonRxClientname - - name of objectcodec - - codec for messagepublic RPatternTopicRx getPatternTopic(String pattern)
RedissonRxClientgetPatternTopic in interface RedissonRxClientpattern - of the topicpublic RPatternTopicRx getPatternTopic(String pattern, Codec codec)
RedissonRxClientgetPatternTopic in interface RedissonRxClientpattern - of the topiccodec - - codec for messagepublic <V> RQueueRx<V> getQueue(String name)
RedissonRxClientgetQueue in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RQueueRx<V> getQueue(String name, Codec codec)
RedissonRxClientgetQueue in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - codec for valuespublic <V> RRingBufferRx<V> getRingBuffer(String name)
RedissonRxClientgetRingBuffer in interface RedissonRxClientV - value typename - - name of objectpublic <V> RRingBufferRx<V> getRingBuffer(String name, Codec codec)
RedissonRxClientgetRingBuffer in interface RedissonRxClientV - value typename - - name of objectcodec - - codec for valuespublic <V> RBlockingQueueRx<V> getBlockingQueue(String name)
RedissonRxClientgetBlockingQueue in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RBlockingQueueRx<V> getBlockingQueue(String name, Codec codec)
RedissonRxClientgetBlockingQueue in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - code for valuespublic <V> RDequeRx<V> getDeque(String name)
RedissonRxClientgetDeque in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RDequeRx<V> getDeque(String name, Codec codec)
RedissonRxClientgetDeque in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - coded for valuespublic <V> RTimeSeriesRx<V> getTimeSeries(String name)
RedissonRxClientnamegetTimeSeries in interface RedissonRxClientV - type of valuename - - name of instancepublic <V> RTimeSeriesRx<V> getTimeSeries(String name, Codec codec)
RedissonRxClientname
using provided codec for values.getTimeSeries in interface RedissonRxClientV - type of valuename - - name of instancecodec - - codec for valuespublic <V> RSetCacheRx<V> getSetCache(String name)
RedissonRxClientname.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RedissonRxClient.getSet(String, Codec).
getSetCache in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RSetCacheRx<V> getSetCache(String name, Codec codec)
RedissonRxClientname.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RedissonRxClient.getSet(String, Codec).
getSetCache in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - codec for valuespublic RAtomicLongRx getAtomicLong(String name)
RedissonRxClientgetAtomicLong in interface RedissonRxClientname - of the "atomic long"public RAtomicDoubleRx getAtomicDouble(String name)
RedissonRxClientgetAtomicDouble in interface RedissonRxClientname - of the "atomic double"public RRemoteService getRemoteService()
RedissonRxClientgetRemoteService in interface RedissonRxClientpublic RRemoteService getRemoteService(String name)
RedissonRxClientgetRemoteService in interface RedissonRxClientname - - the name used as the Redis key prefix for the servicespublic RRemoteService getRemoteService(Codec codec)
RedissonRxClientgetRemoteService in interface RedissonRxClientcodec - - codec for response and requestpublic RRemoteService getRemoteService(String name, Codec codec)
RedissonRxClientgetRemoteService in interface RedissonRxClientname - - the name used as the Redis key prefix for the servicescodec - - codec for response and requestpublic RBitSetRx getBitSet(String name)
RedissonRxClientgetBitSet in interface RedissonRxClientname - - name of objectpublic RScriptRx getScript()
RedissonRxClientgetScript in interface RedissonRxClientpublic RScriptRx getScript(Codec codec)
RedissonRxClientgetScript in interface RedissonRxClientcodec - - codec for params and resultpublic RBatchRx createBatch()
RedissonRxClientcreateBatch in interface RedissonRxClientpublic RBatchRx createBatch(BatchOptions options)
RedissonRxClientcreateBatch in interface RedissonRxClientoptions - - batch configurationpublic RKeysRx getKeys()
RedissonRxClientgetKeys in interface RedissonRxClientpublic Config getConfig()
RedissonRxClientgetConfig in interface RedissonRxClientpublic NodesGroup<Node> getNodesGroup()
RedissonRxClientgetNodesGroup in interface RedissonRxClientpublic NodesGroup<ClusterNode> getClusterNodesGroup()
RedissonRxClientgetClusterNodesGroup in interface RedissonRxClientpublic void shutdown()
RedissonRxClientshutdown in interface RedissonRxClientpublic boolean isShutdown()
RedissonRxClienttrue if this Redisson instance has been shut down.isShutdown in interface RedissonRxClienttrue if this Redisson instance has been shut down otherwise falsepublic boolean isShuttingDown()
RedissonRxClienttrue if this Redisson instance was started to be shutdown
or was shutdown RedissonRxClient.isShutdown() already.isShuttingDown in interface RedissonRxClienttrue if this Redisson instance was started to be shutdown
or was shutdown RedissonRxClient.isShutdown() already otherwise falsepublic <K,V> RMapCacheRx<K,V> getMapCache(String name, Codec codec, MapOptions<K,V> options)
RedissonRxClientname
using provided codec for both cache keys and values.
Supports entry eviction with a given MaxIdleTime and TTL settings.
If eviction is not required then it's better to use regular map RedissonRxClient.getMap(String, Codec, MapOptions).
getMapCache in interface RedissonRxClientK - type of keyV - type of valuename - - object namecodec - - codec for keys and valuesoptions - - map optionspublic <K,V> RMapCacheRx<K,V> getMapCache(String name, MapOptions<K,V> options)
RedissonRxClient
If eviction is not required then it's better to use regular map RedissonRxClient.getMap(String, MapOptions).
getMapCache in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectoptions - - map optionspublic <K,V> RMapRx<K,V> getMap(String name, MapOptions<K,V> options)
RedissonRxClientgetMap in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectoptions - - map optionspublic <K,V> RMapRx<K,V> getMap(String name, Codec codec, MapOptions<K,V> options)
RedissonRxClientgetMap in interface RedissonRxClientK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuesoptions - - map optionspublic RTransactionRx createTransaction(TransactionOptions options)
RedissonRxClientcreateTransaction in interface RedissonRxClientoptions - - transaction configurationpublic <V> RBlockingDequeRx<V> getBlockingDeque(String name)
RedissonRxClientgetBlockingDeque in interface RedissonRxClientV - type of valuename - - name of objectpublic <V> RBlockingDequeRx<V> getBlockingDeque(String name, Codec codec)
RedissonRxClientgetBlockingDeque in interface RedissonRxClientV - type of valuename - - name of objectcodec - - deque objects codecpublic <V> RTransferQueueRx<V> getTransferQueue(String name)
RedissonRxClientgetTransferQueue in interface RedissonRxClientV - type of valuesname - - name of objectpublic <V> RTransferQueueRx<V> getTransferQueue(String name, Codec codec)
RedissonRxClientgetTransferQueue in interface RedissonRxClientV - type of valuesname - - name of objectcodec - - code for valuespublic String getId()
RedissonRxClientgetId in interface RedissonRxClientCopyright © 2014–2021 Redisson. All rights reserved.