public class Redisson extends Object
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> RBucket<V> |
getBucket(String name) |
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) |
<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.
|
<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> RHyperLogLog<V> getHyperLogLog(String name)
public <V> RList<V> getList(String name)
name
- of the distributed listpublic <K,V> RMap<K,V> getMap(String name)
name
- of the distributed mappublic RLock getLock(String name)
name
- of the distributed lockpublic <V> RSet<V> getSet(String name)
name
- of the distributed setpublic <V> RSortedSet<V> getSortedSet(String name)
name
- of the distributed setpublic <M> RTopic<M> getTopic(String name)
name
- of the distributed topicpublic <V> RQueue<V> getQueue(String name)
name
- of the distributed queuepublic <V> RDeque<V> getDeque(String name)
name
- of the distributed queuepublic RAtomicLong getAtomicLong(String name)
name
- of the distributed "atomic long"public RCountDownLatch getCountDownLatch(String name)
name
- of the distributed "count down latch"public void shutdown()
public Config getConfig()
public void flushdb()
Copyright © 2014. All rights reserved.