Modifier and Type | Class and Description |
---|---|
static class |
RedisClusterNode.Flag |
static class |
RedisClusterNode.LinkState |
static class |
RedisClusterNode.RedisClusterNodeBuilder
Builder for creating new
RedisClusterNode . |
static class |
RedisClusterNode.SlotRange |
RedisNode.NodeType, RedisNode.RedisNodeBuilder
Modifier | Constructor and Description |
---|---|
protected |
RedisClusterNode() |
|
RedisClusterNode(RedisClusterNode.SlotRange slotRange)
Creates new
RedisClusterNode with given RedisClusterNode.SlotRange . |
|
RedisClusterNode(String id)
Creates new
RedisClusterNode with an id and empty RedisClusterNode.SlotRange . |
|
RedisClusterNode(String host,
int port)
Creates new
RedisClusterNode with empty RedisClusterNode.SlotRange . |
|
RedisClusterNode(String host,
int port,
RedisClusterNode.SlotRange slotRange)
Creates new
RedisClusterNode with given RedisClusterNode.SlotRange . |
Modifier and Type | Method and Description |
---|---|
Set<RedisClusterNode.Flag> |
getFlags() |
RedisClusterNode.LinkState |
getLinkState() |
RedisClusterNode.SlotRange |
getSlotRange()
Get the served
RedisClusterNode.SlotRange . |
boolean |
isConnected() |
boolean |
isMarkedAsFail() |
static RedisClusterNode.RedisClusterNodeBuilder |
newRedisClusterNode()
Get
RedisClusterNode.RedisClusterNodeBuilder for creating new RedisClusterNode . |
boolean |
servesSlot(int slot) |
String |
toString() |
asString, equals, fromString, getHost, getId, getMasterId, getName, getPort, getType, hashCode, hasValidHost, isMaster, isReplica, isSlave, newRedisNode, setId, setName
protected RedisClusterNode()
public RedisClusterNode(String host, int port)
RedisClusterNode
with empty RedisClusterNode.SlotRange
.host
- must not be null.port
- public RedisClusterNode(String id)
RedisClusterNode
with an id and empty RedisClusterNode.SlotRange
.id
- must not be null.public RedisClusterNode(String host, int port, RedisClusterNode.SlotRange slotRange)
RedisClusterNode
with given RedisClusterNode.SlotRange
.host
- must not be null.port
- slotRange
- must not be null.public RedisClusterNode(RedisClusterNode.SlotRange slotRange)
RedisClusterNode
with given RedisClusterNode.SlotRange
.slotRange
- must not be null.public RedisClusterNode.SlotRange getSlotRange()
RedisClusterNode.SlotRange
.public boolean servesSlot(int slot)
slot
- @Nullable public RedisClusterNode.LinkState getLinkState()
public boolean isConnected()
public Set<RedisClusterNode.Flag> getFlags()
public boolean isMarkedAsFail()
public static RedisClusterNode.RedisClusterNodeBuilder newRedisClusterNode()
RedisClusterNode.RedisClusterNodeBuilder
for creating new RedisClusterNode
.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.