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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) 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
List<byte[]>
clusterGetKeysInSlot
(int slot, Integer count) Map<org.springframework.data.redis.connection.RedisClusterNode,
Collection<org.springframework.data.redis.connection.RedisClusterNode>> 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>
Collection<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetSlaves
(org.springframework.data.redis.connection.RedisClusterNode master) 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) convert
(int... slots) dbSize
(org.springframework.data.redis.connection.RedisClusterNode node) del
(byte[]... keys) 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) protected MasterSlaveEntry
getEntry
(org.springframework.data.redis.connection.RedisClusterNode node) info
(org.springframework.data.redis.connection.RedisClusterNode node) Set<byte[]>
keys
(org.springframework.data.redis.connection.RedisClusterNode node, byte[] pattern) lastSave
(org.springframework.data.redis.connection.RedisClusterNode node) List<byte[]>
mGet
(byte[]... keys) void
ping
(org.springframework.data.redis.connection.RedisClusterNode node) byte[]
randomKey
(org.springframework.data.redis.connection.RedisClusterNode node) void
rename
(byte[] oldName, byte[] newName) renameNX
(byte[] oldName, byte[] newName) 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) 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, 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, migrate, migrate, move, mSetNX, multi, openPipeline, persist, pExpire, pExpireAt, pfAdd, pfCount, pfMerge, ping, pSetEx, pSubscribe, pTtl, pTtl, publish, randomKey, 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.RedisCommands
execute
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
dump, exists, expire, expireAt, keys, move, persist, pExpire, pExpireAt, pTtl, pTtl, randomKey, 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, 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
-
Constructor Details
-
RedissonClusterConnection
-
-
Method Details
-
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
- 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
-
convert
-
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
- 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
- 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
- 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
- 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
- Specified by:
dbSize
in interfaceorg.springframework.data.redis.connection.RedisClusterConnection
-
getEntry
protected 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
- 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
- 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
-
rename
public void rename(byte[] oldName, byte[] newName) - Specified by:
rename
in interfaceorg.springframework.data.redis.connection.RedisKeyCommands
- Overrides:
rename
in classRedissonConnection
-
renameNX
- Specified by:
renameNX
in interfaceorg.springframework.data.redis.connection.RedisKeyCommands
- Overrides:
renameNX
in classRedissonConnection
-
del
- Specified by:
del
in interfaceorg.springframework.data.redis.connection.RedisKeyCommands
- Overrides:
del
in classRedissonConnection
-
mGet
- Specified by:
mGet
in interfaceorg.springframework.data.redis.connection.RedisStringCommands
- Overrides:
mGet
in classRedissonConnection
-
mSet
- Specified by:
mSet
in interfaceorg.springframework.data.redis.connection.RedisStringCommands
- Overrides:
mSet
in classRedissonConnection
-