public class Redisson extends Object implements RedissonClient
| Modifier and Type | Method and Description |
|---|---|
static Redisson |
create()
Creates an Redisson instance
|
static Redisson |
create(Config config)
Creates an Redisson instance with configuration
|
void |
flushdb() |
RAtomicLong |
getAtomicLong(String name)
Returns distributed "atomic long" instance by name.
|
<V> RBlockingQueue<V> |
getBlockingQueue(String name)
Returns distributed blocking queue instance by name.
|
<V> RBucket<V> |
getBucket(String name)
Returns object holder by name
|
<V> List<RBucket<V>> |
getBuckets(String pattern)
Returns a list of object holder by a key pattern
|
Config |
getConfig()
Allows to get configuration provided
during Redisson instance creation.
|
RCountDownLatch |
getCountDownLatch(String name)
Returns distributed "count down latch" instance by name.
|
<V> RDeque<V> |
getDeque(String name)
Returns distributed deque instance by name.
|
<V> RHyperLogLog<V> |
getHyperLogLog(String name)
Returns HyperLogLog object
|
<V> RList<V> |
getList(String name)
Returns distributed list instance by name.
|
RLock |
getLock(String name)
Returns distributed lock instance by name.
|
<K,V> RMap<K,V> |
getMap(String name)
Returns distributed map instance by name.
|
<V> RQueue<V> |
getQueue(String name)
Returns distributed queue instance by name.
|
RScript |
getScript()
Returns script with eval-operations support
|
<V> RSet<V> |
getSet(String name)
Returns distributed set instance by name.
|
<V> RSortedSet<V> |
getSortedSet(String name)
Returns distributed sorted set instance by name.
|
<M> RTopic<M> |
getTopic(String name)
Returns distributed topic instance by name.
|
void |
shutdown()
Shuts down Redisson instance NOT Redis server
|
public static Redisson create()
public static Redisson create(Config config)
config - public <V> RBucket<V> getBucket(String name)
getBucket in interface RedissonClientname - of objectpublic <V> List<RBucket<V>> getBuckets(String pattern)
getBuckets in interface RedissonClientpublic <V> RHyperLogLog<V> getHyperLogLog(String name)
getHyperLogLog in interface RedissonClientname - of objectpublic <V> RList<V> getList(String name)
getList in interface RedissonClientname - of the distributed listpublic <K,V> RMap<K,V> getMap(String name)
getMap in interface RedissonClientname - of the distributed mappublic RLock getLock(String name)
getLock in interface RedissonClientname - of the distributed lockpublic <V> RSet<V> getSet(String name)
getSet in interface RedissonClientname - of the distributed setpublic RScript getScript()
public <V> RSortedSet<V> getSortedSet(String name)
getSortedSet in interface RedissonClientname - of the distributed setpublic <M> RTopic<M> getTopic(String name)
getTopic in interface RedissonClientname - of the distributed topicpublic <V> RQueue<V> getQueue(String name)
getQueue in interface RedissonClientname - of the distributed queuepublic <V> RBlockingQueue<V> getBlockingQueue(String name)
getBlockingQueue in interface RedissonClientname - of the distributed blocking queuepublic <V> RDeque<V> getDeque(String name)
getDeque in interface RedissonClientname - of the distributed queuepublic RAtomicLong getAtomicLong(String name)
getAtomicLong in interface RedissonClientname - of the distributed "atomic long"public RCountDownLatch getCountDownLatch(String name)
getCountDownLatch in interface RedissonClientname - of the distributed "count down latch"public void shutdown()
public Config getConfig()
public void flushdb()
Copyright © 2014–2015. All rights reserved.