public class RedissonSentinelConnection extends Object implements org.springframework.data.redis.connection.RedisSentinelConnection
| Constructor and Description |
|---|
RedissonSentinelConnection(RedisConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
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) |
public RedissonSentinelConnection(RedisConnection connection)
public void failover(org.springframework.data.redis.connection.NamedNode master)
failover in interface org.springframework.data.redis.connection.RedisSentinelCommandspublic Collection<org.springframework.data.redis.connection.RedisServer> masters()
masters in interface org.springframework.data.redis.connection.RedisSentinelCommandspublic Collection<org.springframework.data.redis.connection.RedisServer> slaves(org.springframework.data.redis.connection.NamedNode master)
slaves in interface org.springframework.data.redis.connection.RedisSentinelCommandspublic void remove(org.springframework.data.redis.connection.NamedNode master)
remove in interface org.springframework.data.redis.connection.RedisSentinelCommandspublic void monitor(org.springframework.data.redis.connection.RedisServer master)
monitor in interface org.springframework.data.redis.connection.RedisSentinelCommandspublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isOpen()
isOpen in interface org.springframework.data.redis.connection.RedisSentinelConnectionCopyright © 2014–2021 Redisson. All rights reserved.