public class ClusterConfigurationBuilder extends AbstractConfigurationChildBuilder implements Builder<ClusterConfiguration>
Modifier | Constructor and Description |
---|---|
protected |
ClusterConfigurationBuilder(ConfigurationBuilder builder,
String clusterName) |
Modifier and Type | Method and Description |
---|---|
ClusterConfigurationBuilder |
addClusterNode(String host,
int port) |
ClusterConfiguration |
create()
Create the configuration bean
|
String |
getClusterName() |
Builder<?> |
read(ClusterConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
addCluster, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, security, socketTimeout, tcpKeepAlive, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate, version, withProperties
protected ClusterConfigurationBuilder(ConfigurationBuilder builder, String clusterName)
public String getClusterName()
public ClusterConfigurationBuilder addClusterNode(String host, int port)
public void validate()
Builder
validate
in interface Builder<ClusterConfiguration>
public ClusterConfiguration create()
Builder
create
in interface Builder<ClusterConfiguration>
public Builder<?> read(ClusterConfiguration template)
Builder
read
in interface Builder<ClusterConfiguration>
template
- the configuration from which to "clone" this config if needed.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.