public class NodeBuilder extends java.lang.Object implements Builder<Node>
| Modifier and Type | Method and Description |
|---|---|
Node |
build() |
NodeBuilder |
withAddress(Address address)
Sets the node address.
|
NodeBuilder |
withAddress(int port)
Deprecated.
since 3.1. Use
withPort(int) instead |
NodeBuilder |
withAddress(java.lang.String address)
Deprecated.
since 3.1. Use
withHost(String) and/or withPort(int) instead |
NodeBuilder |
withAddress(java.lang.String host,
int port)
Deprecated.
since 3.1. Use
withHost(String) and withPort(int) instead |
NodeBuilder |
withHost(java.lang.String host)
Sets the node host.
|
NodeBuilder |
withId(NodeId id)
Sets the node identifier.
|
NodeBuilder |
withId(java.lang.String id)
Sets the node identifier.
|
NodeBuilder |
withPort(int port)
Sets the node port.
|
public NodeBuilder withId(java.lang.String id)
id - the node identifierpublic NodeBuilder withId(NodeId id)
id - the node identifierpublic NodeBuilder withHost(java.lang.String host)
host - the node hostpublic NodeBuilder withPort(int port)
port - the node port@Deprecated public NodeBuilder withAddress(java.lang.String address)
withHost(String) and/or withPort(int) insteadaddress - a host:port tupleMalformedAddressException - if a valid Address cannot be constructed from the arguments@Deprecated public NodeBuilder withAddress(java.lang.String host, int port)
withHost(String) and withPort(int) insteadhost - the host nameport - the port numberMalformedAddressException - if a valid Address cannot be constructed from the arguments@Deprecated public NodeBuilder withAddress(int port)
withPort(int) insteadport - the port numberMalformedAddressException - if a valid Address cannot be constructed from the argumentspublic NodeBuilder withAddress(Address address)
address - the node addressCopyright © 2013-2018. All Rights Reserved.