public interface RedissonClient
Modifier and Type | Method and Description |
---|---|
RBatch |
createBatch()
Return batch object which executes group of
command in pipeline.
|
long |
delete(String... keys)
Deprecated.
|
io.netty.util.concurrent.Future<Long> |
deleteAsync(String... keys)
Deprecated.
|
long |
deleteByPattern(String pattern)
Deprecated.
|
io.netty.util.concurrent.Future<Long> |
deleteByPatternAsync(String pattern)
Deprecated.
|
Collection<String> |
findKeysByPattern(String pattern)
Deprecated.
|
io.netty.util.concurrent.Future<Collection<String>> |
findKeysByPatternAsync(String pattern)
Deprecated.
|
void |
flushall()
Delete all the keys of all the existing databases
|
void |
flushdb()
Delete all the keys of the currently selected database
|
RAtomicLong |
getAtomicLong(String name)
Returns "atomic long" instance by name.
|
<V> RBlockingQueue<V> |
getBlockingQueue(String name)
Returns blocking queue instance by name.
|
<V> RBlockingQueue<V> |
getBlockingQueue(String name,
Codec codec) |
<V> RBucket<V> |
getBucket(String name)
Returns object holder by name
|
<V> RBucket<V> |
getBucket(String name,
Codec codec) |
<V> List<RBucket<V>> |
getBuckets(String pattern)
Returns a list of object holder by a key pattern
|
NodesGroup<ClusterNode> |
getClusterNodesGroup()
Get Redis cluster nodes group for server operations
|
Config |
getConfig()
Allows to get configuration provided
during Redisson instance creation.
|
RCountDownLatch |
getCountDownLatch(String name)
Returns "count down latch" instance by name.
|
<V> RDeque<V> |
getDeque(String name)
Returns deque instance by name.
|
<V> RDeque<V> |
getDeque(String name,
Codec codec) |
<V> RHyperLogLog<V> |
getHyperLogLog(String name)
Returns HyperLogLog object
|
<V> RHyperLogLog<V> |
getHyperLogLog(String name,
Codec codec) |
RKeys |
getKeys()
Returns keys operations.
|
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) |
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) |
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) |
<V> RQueue<V> |
getQueue(String name)
Returns queue instance by name.
|
<V> RQueue<V> |
getQueue(String name,
Codec codec) |
<V> RScoredSortedSet<V> |
getScoredSortedSet(String name)
Returns Redis Sorted Set instance by name
|
<V> RScoredSortedSet<V> |
getScoredSortedSet(String name,
Codec codec) |
RScript |
getScript()
Returns script operations object
|
<V> RSet<V> |
getSet(String name)
Returns set instance by name.
|
<V> RSet<V> |
getSet(String name,
Codec codec) |
<V> RSortedSet<V> |
getSortedSet(String name)
Returns sorted set instance by name.
|
<V> RSortedSet<V> |
getSortedSet(String name,
Codec codec) |
<M> RTopic<M> |
getTopic(String name)
Returns topic instance by name.
|
<M> RTopic<M> |
getTopic(String name,
Codec codec) |
void |
shutdown()
Shuts down Redisson instance NOT Redis server
|
<V> RBucket<V> getBucket(String name)
name
- of object<V> List<RBucket<V>> getBuckets(String pattern)
<V> RHyperLogLog<V> getHyperLogLog(String name)
name
- of object<V> RHyperLogLog<V> getHyperLogLog(String name, Codec codec)
<V> RList<V> getList(String name)
name
- of list<K,V> RMap<K,V> getMap(String name)
name
- of mapRLock getLock(String name)
name
- of lock<V> RSet<V> getSet(String name)
name
- of set<V> RSortedSet<V> getSortedSet(String name)
name
- of sorted set<V> RSortedSet<V> getSortedSet(String name, Codec codec)
<V> RScoredSortedSet<V> getScoredSortedSet(String name)
name
- <V> RScoredSortedSet<V> getScoredSortedSet(String name, Codec codec)
RLexSortedSet getLexSortedSet(String name)
name
- <M> RTopic<M> getTopic(String name)
name
- of topic<M> RPatternTopic<M> getPatternTopic(String pattern)
pattern
- of the topic<M> RPatternTopic<M> getPatternTopic(String pattern, Codec codec)
<V> RQueue<V> getQueue(String name)
name
- of queue<V> RBlockingQueue<V> getBlockingQueue(String name)
name
- of queue<V> RBlockingQueue<V> getBlockingQueue(String name, Codec codec)
<V> RDeque<V> getDeque(String name)
name
- of dequeRAtomicLong getAtomicLong(String name)
name
- of the "atomic long"RCountDownLatch getCountDownLatch(String name)
name
- of the "count down latch"RScript getScript()
RBatch createBatch()
RKeys getKeys()
void shutdown()
Config getConfig()
@Deprecated Collection<String> findKeysByPattern(String pattern)
pattern
- @Deprecated io.netty.util.concurrent.Future<Collection<String>> findKeysByPatternAsync(String pattern)
pattern
- @Deprecated long deleteByPattern(String pattern)
pattern
- @Deprecated io.netty.util.concurrent.Future<Long> deleteByPatternAsync(String pattern)
pattern
- @Deprecated long delete(String... keys)
keys
- - object names@Deprecated io.netty.util.concurrent.Future<Long> deleteAsync(String... keys)
keys
- - object namesNodesGroup<Node> getNodesGroup()
NodesGroup<ClusterNode> getClusterNodesGroup()
void flushdb()
void flushall()
Copyright © 2014–2015. All rights reserved.