Class RedissonSentinelConnection

java.lang.Object
org.redisson.spring.data.connection.RedissonSentinelConnection
All Implemented Interfaces:
Closeable, AutoCloseable, org.springframework.data.redis.connection.RedisSentinelCommands, org.springframework.data.redis.connection.RedisSentinelConnection

public class RedissonSentinelConnection extends Object implements org.springframework.data.redis.connection.RedisSentinelConnection
Author:
Nikita Koksharov
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedissonSentinelConnection(org.redisson.client.RedisConnection connection)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    failover(org.springframework.data.redis.connection.NamedNode master)
     
    boolean
     
    Collection<org.springframework.data.redis.connection.RedisServer>
     
    void
    monitor(org.springframework.data.redis.connection.RedisServer master)
     
    void
    remove(org.springframework.data.redis.connection.NamedNode master)
     
    Collection<org.springframework.data.redis.connection.RedisServer>
    slaves(org.springframework.data.redis.connection.NamedNode master)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedissonSentinelConnection

      public RedissonSentinelConnection(org.redisson.client.RedisConnection connection)
  • Method Details

    • failover

      public void failover(org.springframework.data.redis.connection.NamedNode master)
      Specified by:
      failover in interface org.springframework.data.redis.connection.RedisSentinelCommands
    • masters

      public Collection<org.springframework.data.redis.connection.RedisServer> masters()
      Specified by:
      masters in interface org.springframework.data.redis.connection.RedisSentinelCommands
    • slaves

      public Collection<org.springframework.data.redis.connection.RedisServer> slaves(org.springframework.data.redis.connection.NamedNode master)
      Specified by:
      slaves in interface org.springframework.data.redis.connection.RedisSentinelCommands
    • remove

      public void remove(org.springframework.data.redis.connection.NamedNode master)
      Specified by:
      remove in interface org.springframework.data.redis.connection.RedisSentinelCommands
    • monitor

      public void monitor(org.springframework.data.redis.connection.RedisServer master)
      Specified by:
      monitor in interface org.springframework.data.redis.connection.RedisSentinelCommands
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface org.springframework.data.redis.connection.RedisSentinelConnection