| Constructor and Description |
|---|
RedissonBatch(EvictionScheduler evictionScheduler,
ConnectionManager connectionManager,
BatchOptions options) |
| Modifier and Type | Method and Description |
|---|---|
RBatch |
atomic() |
protected void |
enableRedissonReferenceSupport(Redisson redisson) |
BatchResult<?> |
execute()
Executes all operations accumulated during async methods invocations.
|
RFuture<BatchResult<?>> |
executeAsync()
Executes all operations accumulated during async methods invocations asynchronously.
|
RAtomicDoubleAsync |
getAtomicDouble(String name)
Returns atomicDouble instance by name.
|
RAtomicLongAsync |
getAtomicLong(String name)
Returns atomicLong instance by name.
|
RBitSetAsync |
getBitSet(String name)
Returns bitSet instance by name.
|
<V> RBlockingDequeAsync<V> |
getBlockingDeque(String name)
Returns blocking deque instance by name.
|
<V> RBlockingDequeAsync<V> |
getBlockingDeque(String name,
Codec codec) |
<V> RBlockingQueueAsync<V> |
getBlockingQueue(String name)
Returns blocking queue instance by name.
|
<V> RBlockingQueueAsync<V> |
getBlockingQueue(String name,
Codec codec) |
<V> RBucketAsync<V> |
getBucket(String name)
Returns object holder by
name |
<V> RBucketAsync<V> |
getBucket(String name,
Codec codec) |
<V> RDequeAsync<V> |
getDeque(String name)
Returns deque instance by name.
|
<V> RDequeAsync<V> |
getDeque(String name,
Codec codec) |
<V> RGeoAsync<V> |
getGeo(String name)
Returns geospatial items holder instance by
name. |
<V> RGeoAsync<V> |
getGeo(String name,
Codec codec)
Returns geospatial items holder instance by
name
using provided codec for geospatial members. |
<V> RHyperLogLogAsync<V> |
getHyperLogLog(String name)
Returns HyperLogLog object
|
<V> RHyperLogLogAsync<V> |
getHyperLogLog(String name,
Codec codec) |
RKeysAsync |
getKeys()
Returns keys operations.
|
RLexSortedSetAsync |
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> RListAsync<V> |
getList(String name)
Returns list instance by name.
|
<V> RListAsync<V> |
getList(String name,
Codec codec) |
<K,V> RMultimapAsync<K,V> |
getListMultimap(String name)
Returns List based MultiMap instance by name.
|
<K,V> RMultimapAsync<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> RMultimapCacheAsync<K,V> |
getListMultimapCache(String name)
Returns List based Multimap instance by name.
|
<K,V> RMultimapCacheAsync<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> RMapAsync<K,V> |
getMap(String name)
Returns map instance by name.
|
<K,V> RMapAsync<K,V> |
getMap(String name,
Codec codec) |
<K,V> RMapCacheAsync<K,V> |
getMapCache(String name)
Returns map-based cache instance by
name. |
<K,V> RMapCacheAsync<K,V> |
getMapCache(String name,
Codec codec)
Returns map-based cache instance by
name
using provided codec for both cache keys and values. |
<V> RQueueAsync<V> |
getQueue(String name)
Returns queue instance by name.
|
<V> RQueueAsync<V> |
getQueue(String name,
Codec codec) |
<V> RScoredSortedSetAsync<V> |
getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name
|
<V> RScoredSortedSetAsync<V> |
getScoredSortedSet(String name,
Codec codec) |
RScriptAsync |
getScript()
Returns script operations object
|
<V> RSetAsync<V> |
getSet(String name)
Returns set instance by name.
|
<V> RSetAsync<V> |
getSet(String name,
Codec codec) |
<V> RSetCacheAsync<V> |
getSetCache(String name)
Returns set-based cache instance by
name. |
<V> RSetCacheAsync<V> |
getSetCache(String name,
Codec codec)
Returns set-based cache instance by
name
using provided codec for values. |
<K,V> RMultimapAsync<K,V> |
getSetMultimap(String name)
Returns Set based MultiMap instance by name.
|
<K,V> RMultimapAsync<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> RMultimapCacheAsync<K,V> |
getSetMultimapCache(String name)
Returns Set based Multimap instance by name.
|
<K,V> RMultimapCacheAsync<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> RStreamAsync<K,V> |
getStream(String name)
Returns stream instance by
name |
<K,V> RStreamAsync<K,V> |
getStream(String name,
Codec codec)
Returns stream instance by
name
using provided codec for entries. |
<M> RTopicAsync<M> |
getTopic(String name)
Returns topic instance by name.
|
<M> RTopicAsync<M> |
getTopic(String name,
Codec codec) |
RBatch |
retryAttempts(int retryAttempts) |
RBatch |
retryInterval(long retryInterval,
TimeUnit unit) |
RBatch |
skipResult() |
RBatch |
syncSlaves(int slaves,
long timeout,
TimeUnit unit) |
RBatch |
timeout(long timeout,
TimeUnit unit) |
public RedissonBatch(EvictionScheduler evictionScheduler, ConnectionManager connectionManager, BatchOptions options)
public <V> RBucketAsync<V> getBucket(String name)
RBatchnamepublic <V> RBucketAsync<V> getBucket(String name, Codec codec)
public <V> RHyperLogLogAsync<V> getHyperLogLog(String name)
RBatchgetHyperLogLog in interface RBatchV - type of objectname - - name of objectpublic <V> RHyperLogLogAsync<V> getHyperLogLog(String name, Codec codec)
getHyperLogLog in interface RBatchpublic <V> RListAsync<V> getList(String name)
RBatchpublic <V> RListAsync<V> getList(String name, Codec codec)
public <K,V> RMapAsync<K,V> getMap(String name)
RBatchpublic <V> RSetAsync<V> getSet(String name)
RBatchpublic <M> RTopicAsync<M> getTopic(String name)
RBatchpublic <M> RTopicAsync<M> getTopic(String name, Codec codec)
public <V> RQueueAsync<V> getQueue(String name)
RBatchpublic <V> RQueueAsync<V> getQueue(String name, Codec codec)
public <V> RBlockingQueueAsync<V> getBlockingQueue(String name)
RBatchgetBlockingQueue in interface RBatchV - type of valuename - - name of objectpublic <V> RBlockingQueueAsync<V> getBlockingQueue(String name, Codec codec)
getBlockingQueue in interface RBatchpublic <V> RBlockingDequeAsync<V> getBlockingDeque(String name)
RBatchgetBlockingDeque in interface RBatchV - type of valuename - - name of objectpublic <V> RBlockingDequeAsync<V> getBlockingDeque(String name, Codec codec)
getBlockingDeque in interface RBatchpublic <V> RDequeAsync<V> getDeque(String name)
RBatchpublic <V> RDequeAsync<V> getDeque(String name, Codec codec)
public RAtomicLongAsync getAtomicLong(String name)
RBatchgetAtomicLong in interface RBatchname - - name of objectpublic RAtomicDoubleAsync getAtomicDouble(String name)
RBatchgetAtomicDouble in interface RBatchname - - name of objectpublic <V> RScoredSortedSetAsync<V> getScoredSortedSet(String name)
RBatchgetScoredSortedSet in interface RBatchV - type of valuename - - name of objectpublic <V> RScoredSortedSetAsync<V> getScoredSortedSet(String name, Codec codec)
getScoredSortedSet in interface RBatchpublic RLexSortedSetAsync getLexSortedSet(String name)
RBatchgetLexSortedSet in interface RBatchname - - name of objectpublic RBitSetAsync getBitSet(String name)
RBatchpublic <K,V> RMapCacheAsync<K,V> getMapCache(String name, Codec codec)
RBatchname
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 RBatch.getMap(String, Codec).
getMapCache in interface RBatchK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <K,V> RMapCacheAsync<K,V> getMapCache(String name)
RBatchname.
Supports entry eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatch.getMap(String).
getMapCache in interface RBatchK - type of keyV - type of valuename - - name of objectpublic RScriptAsync getScript()
RBatchpublic RKeysAsync getKeys()
RBatchpublic <V> RSetCacheAsync<V> getSetCache(String name)
RBatchname.
Uses map (value_hash, value) under the hood for minimal memory consumption.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatch.getSet(String, Codec).
getSetCache in interface RBatchV - type of valuename - - name of objectpublic <V> RSetCacheAsync<V> getSetCache(String name, Codec codec)
RBatchname
using provided codec for values.
Uses map (value_hash, value) under the hood for minimal memory consumption.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RBatch.getSet(String, Codec).
getSetCache in interface RBatchV - type of valuename - - name of objectcodec - - codec for valuespublic RBatch syncSlaves(int slaves, long timeout, TimeUnit unit)
syncSlaves in interface RBatchpublic RBatch skipResult()
skipResult in interface RBatchpublic RBatch retryAttempts(int retryAttempts)
retryAttempts in interface RBatchpublic RBatch retryInterval(long retryInterval, TimeUnit unit)
retryInterval in interface RBatchpublic BatchResult<?> execute()
RBatchIf cluster configuration used then operations are grouped by slot ids and may be executed on different servers. Thus command execution order could be changed
public RFuture<BatchResult<?>> executeAsync()
RBatchIn cluster configurations operations grouped by slot ids so may be executed on different servers. Thus command execution order could be changed
executeAsync in interface RBatchpublic <K,V> RMultimapAsync<K,V> getSetMultimap(String name)
RBatchgetSetMultimap in interface RBatchK - type of keyV - type of valuename - - name of objectpublic <K,V> RMultimapAsync<K,V> getSetMultimap(String name, Codec codec)
RBatchgetSetMultimap in interface RBatchK - type of keyV - type of valuename - - name of objectcodec - - provided codecpublic <K,V> RMultimapAsync<K,V> getListMultimap(String name)
RBatchgetListMultimap in interface RBatchK - type of keyV - type of valuename - - name of objectpublic <K,V> RMultimapAsync<K,V> getListMultimap(String name, Codec codec)
RBatchgetListMultimap in interface RBatchK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <V> RGeoAsync<V> getGeo(String name)
RBatchname.public <V> RGeoAsync<V> getGeo(String name, Codec codec)
RBatchname
using provided codec for geospatial members.public <K,V> RMultimapCacheAsync<K,V> getSetMultimapCache(String name)
RBatchIf eviction is not required then it's better to use regular map RBatch.getSetMultimap(String).
getSetMultimapCache in interface RBatchK - type of keyV - type of valuename - - name of objectpublic <K,V> RMultimapCacheAsync<K,V> getSetMultimapCache(String name, Codec codec)
RBatchIf eviction is not required then it's better to use regular map RBatch.getSetMultimap(String, Codec).
getSetMultimapCache in interface RBatchK - type of keyV - type of valuename - - name of objectcodec - - provided codecpublic <K,V> RMultimapCacheAsync<K,V> getListMultimapCache(String name)
RBatchIf eviction is not required then it's better to use regular map RBatch.getSetMultimap(String).
getListMultimapCache in interface RBatchK - type of keyV - type of valuename - - name of objectpublic <K,V> RMultimapCacheAsync<K,V> getListMultimapCache(String name, Codec codec)
RBatchIf eviction is not required then it's better to use regular map RBatch.getSetMultimap(String, Codec).
getListMultimapCache in interface RBatchK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuesprotected void enableRedissonReferenceSupport(Redisson redisson)
public <K,V> RStreamAsync<K,V> getStream(String name)
RBatchnamepublic <K,V> RStreamAsync<K,V> getStream(String name, Codec codec)
RBatchname
using provided codec for entries.Copyright © 2014–2018 The Redisson Project. All rights reserved.