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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
failover
(org.springframework.data.redis.connection.NamedNode master) boolean
isOpen()
Collection
<org.springframework.data.redis.connection.RedisServer> masters()
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)
-
Constructor Details
-
RedissonSentinelConnection
-
-
Method Details
-
failover
public void failover(org.springframework.data.redis.connection.NamedNode master) - Specified by:
failover
in interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
masters
- Specified by:
masters
in 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:
slaves
in interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
remove
public void remove(org.springframework.data.redis.connection.NamedNode master) - Specified by:
remove
in interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
monitor
public void monitor(org.springframework.data.redis.connection.RedisServer master) - Specified by:
monitor
in interfaceorg.springframework.data.redis.connection.RedisSentinelCommands
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceorg.springframework.data.redis.connection.RedisSentinelConnection
-