Class RedissonClusterConnection
- java.lang.Object
-
- org.springframework.data.redis.connection.AbstractRedisConnection
-
- org.redisson.spring.data.connection.RedissonConnection
-
- org.redisson.spring.data.connection.RedissonClusterConnection
-
- All Implemented Interfaces:
org.springframework.data.redis.connection.HyperLogLogCommands
,org.springframework.data.redis.connection.RedisClusterCommands
,org.springframework.data.redis.connection.RedisClusterConnection
,org.springframework.data.redis.connection.RedisCommands
,org.springframework.data.redis.connection.RedisConnection
,org.springframework.data.redis.connection.RedisConnectionCommands
,org.springframework.data.redis.connection.RedisGeoCommands
,org.springframework.data.redis.connection.RedisHashCommands
,org.springframework.data.redis.connection.RedisKeyCommands
,org.springframework.data.redis.connection.RedisListCommands
,org.springframework.data.redis.connection.RedisPubSubCommands
,org.springframework.data.redis.connection.RedisScriptingCommands
,org.springframework.data.redis.connection.RedisServerCommands
,org.springframework.data.redis.connection.RedisSetCommands
,org.springframework.data.redis.connection.RedisStringCommands
,org.springframework.data.redis.connection.RedisTxCommands
,org.springframework.data.redis.connection.RedisZSetCommands
public class RedissonClusterConnection extends RedissonConnection implements org.springframework.data.redis.connection.RedisClusterConnection
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisClusterCommands
org.springframework.data.redis.connection.RedisClusterCommands.AddSlots
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
org.springframework.data.redis.connection.RedisGeoCommands.DistanceUnit, org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<T extends Object>, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisListCommands
org.springframework.data.redis.connection.RedisListCommands.Position
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisServerCommands
org.springframework.data.redis.connection.RedisServerCommands.MigrateOption, org.springframework.data.redis.connection.RedisServerCommands.ShutdownOption
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStringCommands
org.springframework.data.redis.connection.RedisStringCommands.BitOperation, org.springframework.data.redis.connection.RedisStringCommands.SetOption
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Limit, org.springframework.data.redis.connection.RedisZSetCommands.Range, org.springframework.data.redis.connection.RedisZSetCommands.Tuple
-
-
Field Summary
-
Fields inherited from class org.redisson.spring.data.connection.RedissonConnection
redisson
-
-
Constructor Summary
Constructors Constructor Description RedissonClusterConnection(org.redisson.api.RedissonClient redisson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bgReWriteAof(org.springframework.data.redis.connection.RedisClusterNode node)
void
bgSave(org.springframework.data.redis.connection.RedisClusterNode node)
void
clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode node, int... slots)
void
clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode node, org.springframework.data.redis.connection.RedisClusterNode.SlotRange range)
Long
clusterCountKeysInSlot(int slot)
void
clusterDeleteSlots(org.springframework.data.redis.connection.RedisClusterNode node, int... slots)
void
clusterDeleteSlotsInRange(org.springframework.data.redis.connection.RedisClusterNode node, org.springframework.data.redis.connection.RedisClusterNode.SlotRange range)
void
clusterForget(org.springframework.data.redis.connection.RedisClusterNode node)
org.springframework.data.redis.connection.ClusterInfo
clusterGetClusterInfo()
List<byte[]>
clusterGetKeysInSlot(int slot, Integer count)
Map<org.springframework.data.redis.connection.RedisClusterNode,Collection<org.springframework.data.redis.connection.RedisClusterNode>>
clusterGetMasterSlaveMap()
org.springframework.data.redis.connection.RedisClusterNode
clusterGetNodeForKey(byte[] key)
org.springframework.data.redis.connection.RedisClusterNode
clusterGetNodeForSlot(int slot)
Iterable<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetNodes()
Collection<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetSlaves(org.springframework.data.redis.connection.RedisClusterNode master)
Integer
clusterGetSlotForKey(byte[] key)
void
clusterMeet(org.springframework.data.redis.connection.RedisClusterNode node)
void
clusterReplicate(org.springframework.data.redis.connection.RedisClusterNode master, org.springframework.data.redis.connection.RedisClusterNode slave)
void
clusterSetSlot(org.springframework.data.redis.connection.RedisClusterNode node, int slot, org.springframework.data.redis.connection.RedisClusterCommands.AddSlots mode)
protected List<Integer>
convert(int... slots)
Long
dbSize(org.springframework.data.redis.connection.RedisClusterNode node)
void
flushAll(org.springframework.data.redis.connection.RedisClusterNode node)
void
flushDb(org.springframework.data.redis.connection.RedisClusterNode node)
List<org.springframework.data.redis.core.types.RedisClientInfo>
getClientList(org.springframework.data.redis.connection.RedisClusterNode node)
List<String>
getConfig(org.springframework.data.redis.connection.RedisClusterNode node, String pattern)
protected org.redisson.connection.MasterSlaveEntry
getEntry(org.springframework.data.redis.connection.RedisClusterNode node)
Properties
info(org.springframework.data.redis.connection.RedisClusterNode node)
Properties
info(org.springframework.data.redis.connection.RedisClusterNode node, String section)
Set<byte[]>
keys(org.springframework.data.redis.connection.RedisClusterNode node, byte[] pattern)
Long
lastSave(org.springframework.data.redis.connection.RedisClusterNode node)
String
ping(org.springframework.data.redis.connection.RedisClusterNode node)
byte[]
randomKey(org.springframework.data.redis.connection.RedisClusterNode node)
void
resetConfigStats(org.springframework.data.redis.connection.RedisClusterNode node)
void
save(org.springframework.data.redis.connection.RedisClusterNode node)
void
setConfig(org.springframework.data.redis.connection.RedisClusterNode node, String param, String value)
void
shutdown(org.springframework.data.redis.connection.RedisClusterNode node)
Long
time(org.springframework.data.redis.connection.RedisClusterNode node)
-
Methods inherited from class org.redisson.spring.data.connection.RedissonConnection
append, bgReWriteAof, bgSave, bgWriteAof, bitCount, bitCount, bitOp, bLPop, bRPop, bRPopLPush, close, closePipeline, convert, dbSize, decr, decrBy, del, discard, dump, echo, eval, evalSha, evalSha, exec, execute, exists, expire, expireAt, filterResults, flushAll, flushDb, geoAdd, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRadiusByMember, geoRemove, get, getBit, getClientList, getClientName, getConfig, getNativeConnection, getRange, getSet, getSubscription, hDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hScan, hSet, hSetNX, hVals, incr, incrBy, incrBy, indexCommand, info, info, isClosed, isPipelined, isPipelinedAtomic, isQueueing, isSubscribed, keys, killClient, lastSave, lIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, mGet, migrate, migrate, move, mSet, mSetNX, multi, openPipeline, persist, pExpire, pExpireAt, pfAdd, pfCount, pfMerge, ping, pSetEx, pSubscribe, pTtl, pTtl, publish, randomKey, rename, renameNX, resetConfigStats, resetConnection, restore, rPop, rPopLPush, rPush, rPushX, sAdd, save, scan, sCard, scriptExists, scriptFlush, scriptKill, scriptLoad, sDiff, sDiffStore, select, set, set, setBit, setClientName, setConfig, setEx, setNX, setRange, shutdown, shutdown, sInter, sInterStore, sIsMember, slaveOf, slaveOfNoOne, sMembers, sMove, sort, sort, sPop, sRandMember, sRandMember, sRem, sScan, strLen, subscribe, sUnion, sUnionStore, sync, time, toCommand, transform, ttl, ttl, type, unwatch, watch, zAdd, zAdd, zCard, zCount, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByScore, zRemRangeByScore, zRevRange, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnionStore, zUnionStore
-
Methods inherited from class org.springframework.data.redis.connection.AbstractRedisConnection
getSentinelConnection, getSentinelConnection, hasRedisSentinelConfigured, isActive, setSentinelConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.data.redis.connection.HyperLogLogCommands
pfAdd, pfCount, pfMerge
-
Methods inherited from interface org.springframework.data.redis.connection.RedisConnection
close, closePipeline, getNativeConnection, getSentinelConnection, isClosed, isPipelined, isQueueing, openPipeline
-
Methods inherited from interface org.springframework.data.redis.connection.RedisConnectionCommands
echo, ping, select
-
Methods inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
geoAdd, geoAdd, geoAdd, geoAdd, geoDist, geoDist, geoHash, geoPos, geoRadius, geoRadius, geoRadiusByMember, geoRadiusByMember, geoRadiusByMember, geoRemove
-
Methods inherited from interface org.springframework.data.redis.connection.RedisHashCommands
hDel, hExists, hGet, hGetAll, hIncrBy, hIncrBy, hKeys, hLen, hMGet, hMSet, hScan, hSet, hSetNX, hVals
-
Methods inherited from interface org.springframework.data.redis.connection.RedisKeyCommands
del, dump, exists, expire, expireAt, keys, move, persist, pExpire, pExpireAt, pTtl, pTtl, randomKey, rename, renameNX, restore, scan, sort, sort, ttl, ttl, type
-
Methods inherited from interface org.springframework.data.redis.connection.RedisListCommands
bLPop, bRPop, bRPopLPush, lIndex, lInsert, lLen, lPop, lPush, lPushX, lRange, lRem, lSet, lTrim, rPop, rPopLPush, rPush, rPushX
-
Methods inherited from interface org.springframework.data.redis.connection.RedisPubSubCommands
getSubscription, isSubscribed, pSubscribe, publish, subscribe
-
Methods inherited from interface org.springframework.data.redis.connection.RedisScriptingCommands
eval, evalSha, evalSha, scriptExists, scriptFlush, scriptKill, scriptLoad
-
Methods inherited from interface org.springframework.data.redis.connection.RedisServerCommands
bgReWriteAof, bgSave, bgWriteAof, dbSize, flushAll, flushDb, getClientList, getClientName, getConfig, info, info, killClient, lastSave, migrate, migrate, resetConfigStats, save, setClientName, setConfig, shutdown, shutdown, slaveOf, slaveOfNoOne, time
-
Methods inherited from interface org.springframework.data.redis.connection.RedisSetCommands
sAdd, sCard, sDiff, sDiffStore, sInter, sInterStore, sIsMember, sMembers, sMove, sPop, sRandMember, sRandMember, sRem, sScan, sUnion, sUnionStore
-
Methods inherited from interface org.springframework.data.redis.connection.RedisStringCommands
append, bitCount, bitCount, bitOp, decr, decrBy, get, getBit, getRange, getSet, incr, incrBy, incrBy, mGet, mSet, mSetNX, pSetEx, set, set, setBit, setEx, setNX, setRange, strLen
-
Methods inherited from interface org.springframework.data.redis.connection.RedisTxCommands
discard, exec, multi, unwatch, watch
-
Methods inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
zAdd, zAdd, zCard, zCount, zCount, zIncrBy, zInterStore, zInterStore, zRange, zRangeByLex, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeWithScores, zRank, zRem, zRemRange, zRemRangeByScore, zRemRangeByScore, zRevRange, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeWithScores, zRevRank, zScan, zScore, zUnionStore, zUnionStore
-
-
-
-
Method Detail
-
clusterGetNodes
public Iterable<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodes()
- Specified by:
clusterGetNodes
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetSlaves
public Collection<org.springframework.data.redis.connection.RedisClusterNode> clusterGetSlaves(org.springframework.data.redis.connection.RedisClusterNode master)
- Specified by:
clusterGetSlaves
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetMasterSlaveMap
public Map<org.springframework.data.redis.connection.RedisClusterNode,Collection<org.springframework.data.redis.connection.RedisClusterNode>> clusterGetMasterSlaveMap()
- Specified by:
clusterGetMasterSlaveMap
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetSlotForKey
public Integer clusterGetSlotForKey(byte[] key)
- Specified by:
clusterGetSlotForKey
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetNodeForSlot
public org.springframework.data.redis.connection.RedisClusterNode clusterGetNodeForSlot(int slot)
- Specified by:
clusterGetNodeForSlot
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetNodeForKey
public org.springframework.data.redis.connection.RedisClusterNode clusterGetNodeForKey(byte[] key)
- Specified by:
clusterGetNodeForKey
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetClusterInfo
public org.springframework.data.redis.connection.ClusterInfo clusterGetClusterInfo()
- Specified by:
clusterGetClusterInfo
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterAddSlots
public void clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode node, int... slots)
- Specified by:
clusterAddSlots
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterAddSlots
public void clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode node, org.springframework.data.redis.connection.RedisClusterNode.SlotRange range)
- Specified by:
clusterAddSlots
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterCountKeysInSlot
public Long clusterCountKeysInSlot(int slot)
- Specified by:
clusterCountKeysInSlot
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterDeleteSlots
public void clusterDeleteSlots(org.springframework.data.redis.connection.RedisClusterNode node, int... slots)
- Specified by:
clusterDeleteSlots
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterDeleteSlotsInRange
public void clusterDeleteSlotsInRange(org.springframework.data.redis.connection.RedisClusterNode node, org.springframework.data.redis.connection.RedisClusterNode.SlotRange range)
- Specified by:
clusterDeleteSlotsInRange
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterForget
public void clusterForget(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
clusterForget
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterMeet
public void clusterMeet(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
clusterMeet
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterSetSlot
public void clusterSetSlot(org.springframework.data.redis.connection.RedisClusterNode node, int slot, org.springframework.data.redis.connection.RedisClusterCommands.AddSlots mode)
- Specified by:
clusterSetSlot
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterGetKeysInSlot
public List<byte[]> clusterGetKeysInSlot(int slot, Integer count)
- Specified by:
clusterGetKeysInSlot
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
clusterReplicate
public void clusterReplicate(org.springframework.data.redis.connection.RedisClusterNode master, org.springframework.data.redis.connection.RedisClusterNode slave)
- Specified by:
clusterReplicate
in interfaceorg.springframework.data.redis.connection.RedisClusterCommands
-
ping
public String ping(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
ping
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
bgReWriteAof
public void bgReWriteAof(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
bgReWriteAof
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
bgSave
public void bgSave(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
bgSave
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
lastSave
public Long lastSave(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
lastSave
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
save
public void save(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
save
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
dbSize
public Long dbSize(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
dbSize
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
getEntry
protected org.redisson.connection.MasterSlaveEntry getEntry(org.springframework.data.redis.connection.RedisClusterNode node)
-
flushDb
public void flushDb(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
flushDb
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
flushAll
public void flushAll(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
flushAll
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
info
public Properties info(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
info
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
info
public Properties info(org.springframework.data.redis.connection.RedisClusterNode node, String section)
- Specified by:
info
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
keys
public Set<byte[]> keys(org.springframework.data.redis.connection.RedisClusterNode node, byte[] pattern)
- Specified by:
keys
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
randomKey
public byte[] randomKey(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
randomKey
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
shutdown
public void shutdown(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
shutdown
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
getConfig
public List<String> getConfig(org.springframework.data.redis.connection.RedisClusterNode node, String pattern)
- Specified by:
getConfig
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
setConfig
public void setConfig(org.springframework.data.redis.connection.RedisClusterNode node, String param, String value)
- Specified by:
setConfig
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
resetConfigStats
public void resetConfigStats(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
resetConfigStats
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
time
public Long time(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
time
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
getClientList
public List<org.springframework.data.redis.core.types.RedisClientInfo> getClientList(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
getClientList
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
-