Class RedissonReactiveRedisClusterConnection
- java.lang.Object
-
- org.redisson.spring.data.connection.RedissonReactiveRedisConnection
-
- org.redisson.spring.data.connection.RedissonReactiveRedisClusterConnection
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.springframework.data.redis.connection.ReactiveClusterCommands
,org.springframework.data.redis.connection.ReactiveRedisClusterConnection
,org.springframework.data.redis.connection.ReactiveRedisConnection
public class RedissonReactiveRedisClusterConnection extends RedissonReactiveRedisConnection implements org.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.ReactiveClusterCommands
org.springframework.data.redis.connection.ReactiveClusterCommands.AddSlots
-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection
org.springframework.data.redis.connection.ReactiveRedisConnection.AbsentByteBufferResponse<I extends Object>, org.springframework.data.redis.connection.ReactiveRedisConnection.BooleanResponse<I extends Object>, org.springframework.data.redis.connection.ReactiveRedisConnection.ByteBufferResponse<I extends Object>, org.springframework.data.redis.connection.ReactiveRedisConnection.Command, org.springframework.data.redis.connection.ReactiveRedisConnection.CommandResponse<I extends Object,O extends Object>, org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand, org.springframework.data.redis.connection.ReactiveRedisConnection.KeyScanCommand, org.springframework.data.redis.connection.ReactiveRedisConnection.MultiValueResponse<I extends Object,O extends Object>, org.springframework.data.redis.connection.ReactiveRedisConnection.NumericResponse<I extends Object,O extends Number>, org.springframework.data.redis.connection.ReactiveRedisConnection.RangeCommand
-
-
Constructor Summary
Constructors Constructor Description RedissonReactiveRedisClusterConnection(CommandReactiveExecutor executorService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>
clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, int... ints)
reactor.core.publisher.Mono<Void>
clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, org.springframework.data.redis.connection.RedisClusterNode.SlotRange slotRange)
reactor.core.publisher.Mono<Long>
clusterCountKeysInSlot(int slot)
reactor.core.publisher.Mono<Void>
clusterDeleteSlots(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, int... ints)
reactor.core.publisher.Mono<Void>
clusterDeleteSlotsInRange(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, org.springframework.data.redis.connection.RedisClusterNode.SlotRange slotRange)
reactor.core.publisher.Mono<Void>
clusterForget(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
reactor.core.publisher.Mono<org.springframework.data.redis.connection.ClusterInfo>
clusterGetClusterInfo()
reactor.core.publisher.Flux<ByteBuffer>
clusterGetKeysInSlot(int slot, int count)
reactor.core.publisher.Mono<Map<org.springframework.data.redis.connection.RedisClusterNode,Collection<org.springframework.data.redis.connection.RedisClusterNode>>>
clusterGetMasterSlaveMap()
reactor.core.publisher.Mono<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetNodeForKey(ByteBuffer byteBuffer)
reactor.core.publisher.Mono<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetNodeForSlot(int slot)
reactor.core.publisher.Flux<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetNodes()
reactor.core.publisher.Flux<org.springframework.data.redis.connection.RedisClusterNode>
clusterGetSlaves(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
reactor.core.publisher.Mono<Integer>
clusterGetSlotForKey(ByteBuffer byteBuffer)
reactor.core.publisher.Mono<Void>
clusterMeet(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
reactor.core.publisher.Mono<Void>
clusterReplicate(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, org.springframework.data.redis.connection.RedisClusterNode slave)
reactor.core.publisher.Mono<Void>
clusterSetSlot(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, int slot, org.springframework.data.redis.connection.ReactiveClusterCommands.AddSlots addSlots)
org.springframework.data.redis.connection.ReactiveClusterGeoCommands
geoCommands()
org.springframework.data.redis.connection.ReactiveClusterHashCommands
hashCommands()
org.springframework.data.redis.connection.ReactiveClusterHyperLogLogCommands
hyperLogLogCommands()
org.springframework.data.redis.connection.ReactiveClusterKeyCommands
keyCommands()
org.springframework.data.redis.connection.ReactiveClusterListCommands
listCommands()
org.springframework.data.redis.connection.ReactiveClusterNumberCommands
numberCommands()
reactor.core.publisher.Mono<String>
ping(org.springframework.data.redis.connection.RedisClusterNode node)
org.springframework.data.redis.connection.ReactiveClusterServerCommands
serverCommands()
org.springframework.data.redis.connection.ReactiveClusterSetCommands
setCommands()
org.springframework.data.redis.connection.ReactiveClusterStreamCommands
streamCommands()
org.springframework.data.redis.connection.ReactiveClusterStringCommands
stringCommands()
static byte[]
toByteArray(ByteBuffer buffer)
org.springframework.data.redis.connection.ReactiveClusterZSetCommands
zSetCommands()
-
Methods inherited from class org.redisson.spring.data.connection.RedissonReactiveRedisConnection
closeLater, ping, pubSubCommands, scriptingCommands
-
-
-
-
Constructor Detail
-
RedissonReactiveRedisClusterConnection
public RedissonReactiveRedisClusterConnection(CommandReactiveExecutor executorService)
-
-
Method Detail
-
keyCommands
public org.springframework.data.redis.connection.ReactiveClusterKeyCommands keyCommands()
- Specified by:
keyCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
keyCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
keyCommands
in classRedissonReactiveRedisConnection
-
stringCommands
public org.springframework.data.redis.connection.ReactiveClusterStringCommands stringCommands()
- Specified by:
stringCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
stringCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
stringCommands
in classRedissonReactiveRedisConnection
-
numberCommands
public org.springframework.data.redis.connection.ReactiveClusterNumberCommands numberCommands()
- Specified by:
numberCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
numberCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
numberCommands
in classRedissonReactiveRedisConnection
-
listCommands
public org.springframework.data.redis.connection.ReactiveClusterListCommands listCommands()
- Specified by:
listCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
listCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
listCommands
in classRedissonReactiveRedisConnection
-
setCommands
public org.springframework.data.redis.connection.ReactiveClusterSetCommands setCommands()
- Specified by:
setCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
setCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
setCommands
in classRedissonReactiveRedisConnection
-
zSetCommands
public org.springframework.data.redis.connection.ReactiveClusterZSetCommands zSetCommands()
- Specified by:
zSetCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
zSetCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
zSetCommands
in classRedissonReactiveRedisConnection
-
hashCommands
public org.springframework.data.redis.connection.ReactiveClusterHashCommands hashCommands()
- Specified by:
hashCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
hashCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
hashCommands
in classRedissonReactiveRedisConnection
-
geoCommands
public org.springframework.data.redis.connection.ReactiveClusterGeoCommands geoCommands()
- Specified by:
geoCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
geoCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
geoCommands
in classRedissonReactiveRedisConnection
-
hyperLogLogCommands
public org.springframework.data.redis.connection.ReactiveClusterHyperLogLogCommands hyperLogLogCommands()
- Specified by:
hyperLogLogCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
hyperLogLogCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
hyperLogLogCommands
in classRedissonReactiveRedisConnection
-
serverCommands
public org.springframework.data.redis.connection.ReactiveClusterServerCommands serverCommands()
- Specified by:
serverCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
serverCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
serverCommands
in classRedissonReactiveRedisConnection
-
streamCommands
public org.springframework.data.redis.connection.ReactiveClusterStreamCommands streamCommands()
- Specified by:
streamCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
- Specified by:
streamCommands
in interfaceorg.springframework.data.redis.connection.ReactiveRedisConnection
- Overrides:
streamCommands
in classRedissonReactiveRedisConnection
-
ping
public reactor.core.publisher.Mono<String> ping(org.springframework.data.redis.connection.RedisClusterNode node)
- Specified by:
ping
in interfaceorg.springframework.data.redis.connection.ReactiveRedisClusterConnection
-
clusterGetNodes
public reactor.core.publisher.Flux<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodes()
- Specified by:
clusterGetNodes
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetSlaves
public reactor.core.publisher.Flux<org.springframework.data.redis.connection.RedisClusterNode> clusterGetSlaves(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
- Specified by:
clusterGetSlaves
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetMasterSlaveMap
public reactor.core.publisher.Mono<Map<org.springframework.data.redis.connection.RedisClusterNode,Collection<org.springframework.data.redis.connection.RedisClusterNode>>> clusterGetMasterSlaveMap()
- Specified by:
clusterGetMasterSlaveMap
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetSlotForKey
public reactor.core.publisher.Mono<Integer> clusterGetSlotForKey(ByteBuffer byteBuffer)
- Specified by:
clusterGetSlotForKey
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetNodeForSlot
public reactor.core.publisher.Mono<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodeForSlot(int slot)
- Specified by:
clusterGetNodeForSlot
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetNodeForKey
public reactor.core.publisher.Mono<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodeForKey(ByteBuffer byteBuffer)
- Specified by:
clusterGetNodeForKey
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetClusterInfo
public reactor.core.publisher.Mono<org.springframework.data.redis.connection.ClusterInfo> clusterGetClusterInfo()
- Specified by:
clusterGetClusterInfo
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterAddSlots
public reactor.core.publisher.Mono<Void> clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, int... ints)
- Specified by:
clusterAddSlots
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterAddSlots
public reactor.core.publisher.Mono<Void> clusterAddSlots(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, org.springframework.data.redis.connection.RedisClusterNode.SlotRange slotRange)
- Specified by:
clusterAddSlots
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterCountKeysInSlot
public reactor.core.publisher.Mono<Long> clusterCountKeysInSlot(int slot)
- Specified by:
clusterCountKeysInSlot
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterDeleteSlots
public reactor.core.publisher.Mono<Void> clusterDeleteSlots(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, int... ints)
- Specified by:
clusterDeleteSlots
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterDeleteSlotsInRange
public reactor.core.publisher.Mono<Void> clusterDeleteSlotsInRange(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, org.springframework.data.redis.connection.RedisClusterNode.SlotRange slotRange)
- Specified by:
clusterDeleteSlotsInRange
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterForget
public reactor.core.publisher.Mono<Void> clusterForget(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
- Specified by:
clusterForget
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterMeet
public reactor.core.publisher.Mono<Void> clusterMeet(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
- Specified by:
clusterMeet
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterSetSlot
public reactor.core.publisher.Mono<Void> clusterSetSlot(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, int slot, org.springframework.data.redis.connection.ReactiveClusterCommands.AddSlots addSlots)
- Specified by:
clusterSetSlot
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterGetKeysInSlot
public reactor.core.publisher.Flux<ByteBuffer> clusterGetKeysInSlot(int slot, int count)
- Specified by:
clusterGetKeysInSlot
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
clusterReplicate
public reactor.core.publisher.Mono<Void> clusterReplicate(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode, org.springframework.data.redis.connection.RedisClusterNode slave)
- Specified by:
clusterReplicate
in interfaceorg.springframework.data.redis.connection.ReactiveClusterCommands
-
toByteArray
public static byte[] toByteArray(ByteBuffer buffer)
-
-