| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TestCluster<T> |
build()
Builds the test cluster.
|
TestCluster.Builder<T> |
withActiveMembers(int activeMembers)
Sets the number of active members for the cluster.
|
TestCluster.Builder<T> |
withClusterFactory(java.util.function.Function<Collection<String>,ClusterConfig> clusterFactory)
Sets the cluster configuration factory.
|
TestCluster.Builder<T> |
withPassiveMembers(int passiveMembers)
Sets the number of passive members for the cluster.
|
TestCluster.Builder<T> |
withResourceFactory(java.util.function.Function<ClusterConfig,T> resourceFactory)
Sets the resource factory.
|
TestCluster.Builder<T> |
withUriFactory(java.util.function.Function<Integer,String> uriFactory)
Sets the member URI factory.
|
public TestCluster.Builder<T> withActiveMembers(int activeMembers)
public TestCluster.Builder<T> withPassiveMembers(int passiveMembers)
public TestCluster.Builder<T> withUriFactory(java.util.function.Function<Integer,String> uriFactory)
public TestCluster.Builder<T> withClusterFactory(java.util.function.Function<Collection<String>,ClusterConfig> clusterFactory)
public TestCluster.Builder<T> withResourceFactory(java.util.function.Function<ClusterConfig,T> resourceFactory)
public TestCluster<T> build()
Copyright © 2013-2015. All Rights Reserved.