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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfailover(org.springframework.data.redis.connection.NamedNode master)booleanisOpen()Collection<org.springframework.data.redis.connection.RedisServer>masters()voidmonitor(org.springframework.data.redis.connection.RedisServer master)voidremove(org.springframework.data.redis.connection.NamedNode master)Collection<org.springframework.data.redis.connection.RedisServer>slaves(org.springframework.data.redis.connection.NamedNode master)
-
-
-
Method Detail
-
failover
public void failover(org.springframework.data.redis.connection.NamedNode master)
- Specified by:
failoverin interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
masters
public Collection<org.springframework.data.redis.connection.RedisServer> masters()
- Specified by:
mastersin interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
slaves
public Collection<org.springframework.data.redis.connection.RedisServer> slaves(org.springframework.data.redis.connection.NamedNode master)
- Specified by:
slavesin interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
remove
public void remove(org.springframework.data.redis.connection.NamedNode master)
- Specified by:
removein interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
monitor
public void monitor(org.springframework.data.redis.connection.RedisServer master)
- Specified by:
monitorin interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceorg.springframework.data.redis.connection.RedisSentinelConnection
-
-