public class RedisNode extends Object implements NamedNode
Modifier and Type | Class and Description |
---|---|
static class |
RedisNode.NodeType |
static class |
RedisNode.RedisNodeBuilder
Builder for creating new
RedisNode . |
Modifier | Constructor and Description |
---|---|
protected |
RedisNode() |
|
RedisNode(String host,
int port)
|
Modifier and Type | Method and Description |
---|---|
String |
asString() |
boolean |
equals(Object obj) |
String |
getHost() |
String |
getId() |
String |
getMasterId() |
String |
getName() |
Integer |
getPort() |
RedisNode.NodeType |
getType() |
int |
hashCode() |
boolean |
isMaster() |
boolean |
isReplica() |
boolean |
isSlave() |
static RedisNode.RedisNodeBuilder |
newRedisNode()
Get
RedisNode.RedisNodeBuilder for creating new RedisNode . |
void |
setId(String id) |
void |
setName(String name) |
String |
toString() |
public RedisNode(String host, int port)
host
- must not be nullport
- protected RedisNode()
public String asString()
public void setName(String name)
public void setId(String id)
id
- @Nullable public RedisNode.NodeType getType()
public boolean isMaster()
public boolean isSlave()
public boolean isReplica()
public static RedisNode.RedisNodeBuilder newRedisNode()
RedisNode.RedisNodeBuilder
for creating new RedisNode
.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.