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)
Sets the node address using local host.
|
NodeBuilder |
withAddress(java.lang.String address)
Sets the node address.
|
NodeBuilder |
withAddress(java.lang.String host,
int port)
Sets the node host/port.
|
NodeBuilder |
withId(NodeId id)
Sets the node identifier.
|
NodeBuilder |
withId(java.lang.String id)
Sets the node identifier.
|
public NodeBuilder withId(java.lang.String id)
id - the node identifierpublic NodeBuilder withId(NodeId id)
id - the node identifierpublic NodeBuilder withAddress(java.lang.String address)
address - a host:port tupleMalformedAddressException - if a valid Address cannot be constructed from the argumentspublic NodeBuilder withAddress(java.lang.String host, int port)
host - the host nameport - the port numberMalformedAddressException - if a valid Address cannot be constructed from the argumentspublic NodeBuilder withAddress(int port)
port - 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.