Closeable, AutoCloseable, org.springframework.data.redis.connection.RedisSentinelCommands, org.springframework.data.redis.connection.RedisSentinelConnectionpublic class RedissonSentinelConnection extends Object implements org.springframework.data.redis.connection.RedisSentinelConnection
| Constructor | Description |
|---|---|
RedissonSentinelConnection(org.redisson.client.RedisConnection connection) |
| Modifier and Type | Method | 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(org.redisson.client.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 AutoCloseableclose in interface CloseableIOExceptionpublic boolean isOpen()
isOpen in interface org.springframework.data.redis.connection.RedisSentinelConnectionCopyright © 2014–2018 The Redisson Project. All rights reserved.