public static class ClusterMetadata.Builder extends Object implements io.atomix.utils.Builder<ClusterMetadata>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ClusterMetadata |
build() |
ClusterMetadata.Builder |
withBootstrapNodes(Collection<Node> bootstrapNodes)
Sets the bootstrap nodes.
|
ClusterMetadata.Builder |
withBootstrapNodes(Node... bootstrapNodes)
Sets the bootstrap nodes.
|
public ClusterMetadata.Builder withBootstrapNodes(Node... bootstrapNodes)
bootstrapNodes - the nodes from which to bootstrap the clusterNullPointerException - if the bootstrap nodes are nullpublic ClusterMetadata.Builder withBootstrapNodes(Collection<Node> bootstrapNodes)
bootstrapNodes - the nodes from which to bootstrap the clusterNullPointerException - if the bootstrap nodes are nullpublic ClusterMetadata build()
build in interface io.atomix.utils.Builder<ClusterMetadata>Copyright © 2013–2018. All rights reserved.