Class 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
    • 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 interface org.springframework.data.redis.connection.ReactiveRedisConnection

        close, 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 interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        keyCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        keyCommands in class RedissonReactiveRedisConnection
      • stringCommands

        public org.springframework.data.redis.connection.ReactiveClusterStringCommands stringCommands()
        Specified by:
        stringCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        stringCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        stringCommands in class RedissonReactiveRedisConnection
      • numberCommands

        public org.springframework.data.redis.connection.ReactiveClusterNumberCommands numberCommands()
        Specified by:
        numberCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        numberCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        numberCommands in class RedissonReactiveRedisConnection
      • listCommands

        public org.springframework.data.redis.connection.ReactiveClusterListCommands listCommands()
        Specified by:
        listCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        listCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        listCommands in class RedissonReactiveRedisConnection
      • setCommands

        public org.springframework.data.redis.connection.ReactiveClusterSetCommands setCommands()
        Specified by:
        setCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        setCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        setCommands in class RedissonReactiveRedisConnection
      • zSetCommands

        public org.springframework.data.redis.connection.ReactiveClusterZSetCommands zSetCommands()
        Specified by:
        zSetCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        zSetCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        zSetCommands in class RedissonReactiveRedisConnection
      • hashCommands

        public org.springframework.data.redis.connection.ReactiveClusterHashCommands hashCommands()
        Specified by:
        hashCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        hashCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        hashCommands in class RedissonReactiveRedisConnection
      • geoCommands

        public org.springframework.data.redis.connection.ReactiveClusterGeoCommands geoCommands()
        Specified by:
        geoCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        geoCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        geoCommands in class RedissonReactiveRedisConnection
      • hyperLogLogCommands

        public org.springframework.data.redis.connection.ReactiveClusterHyperLogLogCommands hyperLogLogCommands()
        Specified by:
        hyperLogLogCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        hyperLogLogCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        hyperLogLogCommands in class RedissonReactiveRedisConnection
      • serverCommands

        public org.springframework.data.redis.connection.ReactiveClusterServerCommands serverCommands()
        Specified by:
        serverCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        serverCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        serverCommands in class RedissonReactiveRedisConnection
      • streamCommands

        public org.springframework.data.redis.connection.ReactiveClusterStreamCommands streamCommands()
        Specified by:
        streamCommands in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
        Specified by:
        streamCommands in interface org.springframework.data.redis.connection.ReactiveRedisConnection
        Overrides:
        streamCommands in class RedissonReactiveRedisConnection
      • ping

        public reactor.core.publisher.Mono<String> ping​(org.springframework.data.redis.connection.RedisClusterNode node)
        Specified by:
        ping in interface org.springframework.data.redis.connection.ReactiveRedisClusterConnection
      • clusterGetNodes

        public reactor.core.publisher.Flux<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodes()
        Specified by:
        clusterGetNodes in interface org.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 interface org.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 interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterGetSlotForKey

        public reactor.core.publisher.Mono<Integer> clusterGetSlotForKey​(ByteBuffer byteBuffer)
        Specified by:
        clusterGetSlotForKey in interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterGetNodeForSlot

        public reactor.core.publisher.Mono<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodeForSlot​(int slot)
        Specified by:
        clusterGetNodeForSlot in interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterGetNodeForKey

        public reactor.core.publisher.Mono<org.springframework.data.redis.connection.RedisClusterNode> clusterGetNodeForKey​(ByteBuffer byteBuffer)
        Specified by:
        clusterGetNodeForKey in interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterGetClusterInfo

        public reactor.core.publisher.Mono<org.springframework.data.redis.connection.ClusterInfo> clusterGetClusterInfo()
        Specified by:
        clusterGetClusterInfo in interface org.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 interface org.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 interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterCountKeysInSlot

        public reactor.core.publisher.Mono<Long> clusterCountKeysInSlot​(int slot)
        Specified by:
        clusterCountKeysInSlot in interface org.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 interface org.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 interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterForget

        public reactor.core.publisher.Mono<Void> clusterForget​(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
        Specified by:
        clusterForget in interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterMeet

        public reactor.core.publisher.Mono<Void> clusterMeet​(org.springframework.data.redis.connection.RedisClusterNode redisClusterNode)
        Specified by:
        clusterMeet in interface org.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 interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • clusterGetKeysInSlot

        public reactor.core.publisher.Flux<ByteBuffer> clusterGetKeysInSlot​(int slot,
                                                                            int count)
        Specified by:
        clusterGetKeysInSlot in interface org.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 interface org.springframework.data.redis.connection.ReactiveClusterCommands
      • toByteArray

        public static byte[] toByteArray​(ByteBuffer buffer)