Package io.atomix.cluster
Class NodeBuilder
java.lang.Object
io.atomix.cluster.NodeBuilder
- Direct Known Subclasses:
MemberBuilder
Node builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withAddress(Address address) Sets the node address.Sets the node host.Sets the node identifier.Sets the node identifier.withPort(int port) Sets the node port.
-
Field Details
-
config
-
-
Constructor Details
-
NodeBuilder
-
-
Method Details
-
withId
Sets the node identifier.- Parameters:
id- the node identifier- Returns:
- the node builder
-
withId
Sets the node identifier.- Parameters:
id- the node identifier- Returns:
- the node builder
-
withHost
Sets the node host.- Parameters:
host- the node host- Returns:
- the node builder
-
withPort
Sets the node port.- Parameters:
port- the node port- Returns:
- the node builder
-
withAddress
Sets the node address.- Parameters:
address- the node address- Returns:
- the node builder
-
build
-