Constructor and Description |
---|
RedissonBatch(EvictionScheduler evictionScheduler,
ConnectionManager connectionManager) |
Modifier and Type | Method and Description |
---|---|
List<?> |
execute()
Executes all operations accumulated during async methods invocations.
|
io.netty.util.concurrent.Future<List<?>> |
executeAsync()
Executes all operations accumulated during async methods invocations asynchronously.
|
RAtomicLongAsync |
getAtomicLongAsync(String name)
Returns "atomic long" instance by name.
|
RBitSetAsync |
getBitSet(String name) |
<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> |
getDequeAsync(String name)
Returns deque instance by name.
|
<V> RDequeAsync<V> |
getDequeAsync(String name,
Codec codec) |
<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> 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. |
<M> RTopicAsync<M> |
getTopic(String name)
Returns topic instance by name.
|
<M> RTopicAsync<M> |
getTopic(String name,
Codec codec) |
public RedissonBatch(EvictionScheduler evictionScheduler, ConnectionManager connectionManager)
public <V> RBucketAsync<V> getBucket(String name)
RBatch
name
public <V> RBucketAsync<V> getBucket(String name, Codec codec)
public <V> RHyperLogLogAsync<V> getHyperLogLog(String name)
RBatch
getHyperLogLog
in interface RBatch
name
- of objectpublic <V> RHyperLogLogAsync<V> getHyperLogLog(String name, Codec codec)
getHyperLogLog
in interface RBatch
public <V> RListAsync<V> getList(String name)
RBatch
public <V> RListAsync<V> getList(String name, Codec codec)
public <K,V> RMapAsync<K,V> getMap(String name)
RBatch
public <V> RSetAsync<V> getSet(String name)
RBatch
public <M> RTopicAsync<M> getTopic(String name)
RBatch
public <M> RTopicAsync<M> getTopic(String name, Codec codec)
public <V> RQueueAsync<V> getQueue(String name)
RBatch
public <V> RQueueAsync<V> getQueue(String name, Codec codec)
public <V> RBlockingQueueAsync<V> getBlockingQueue(String name)
RBatch
getBlockingQueue
in interface RBatch
name
- of queuepublic <V> RBlockingQueueAsync<V> getBlockingQueue(String name, Codec codec)
getBlockingQueue
in interface RBatch
public <V> RDequeAsync<V> getDequeAsync(String name)
RBatch
getDequeAsync
in interface RBatch
name
- of dequepublic <V> RDequeAsync<V> getDequeAsync(String name, Codec codec)
getDequeAsync
in interface RBatch
public RAtomicLongAsync getAtomicLongAsync(String name)
RBatch
getAtomicLongAsync
in interface RBatch
name
- of the "atomic long"public <V> RScoredSortedSetAsync<V> getScoredSortedSet(String name)
RBatch
getScoredSortedSet
in interface RBatch
public <V> RScoredSortedSetAsync<V> getScoredSortedSet(String name, Codec codec)
getScoredSortedSet
in interface RBatch
public RLexSortedSetAsync getLexSortedSet(String name)
RBatch
getLexSortedSet
in interface RBatch
public RBitSetAsync getBitSet(String name)
public <K,V> RMapCacheAsync<K,V> getMapCache(String name, Codec codec)
RBatch
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 RBatch.getMap(String, Codec)
.
getMapCache
in interface RBatch
public <K,V> RMapCacheAsync<K,V> getMapCache(String name)
RBatch
name
.
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 RBatch
public RScriptAsync getScript()
RBatch
public RKeysAsync getKeys()
RBatch
public <V> RSetCacheAsync<V> getSetCache(String name)
RBatch
name
.
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 RBatch
public <V> RSetCacheAsync<V> getSetCache(String name, Codec codec)
RBatch
name
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 RBatch
public List<?> execute()
RBatch
public io.netty.util.concurrent.Future<List<?>> executeAsync()
RBatch
executeAsync
in interface RBatch
Copyright © 2014–2015. All rights reserved.