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) |
ClusterConfigurationBuilder |
addClusterNodes(String serverList) |
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, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, remoteCache, security, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, uri, uri, valueSizeEstimate, version, withProperties
protected ClusterConfigurationBuilder(ConfigurationBuilder builder, String clusterName)
public String getClusterName()
public ClusterConfigurationBuilder addClusterNode(String host, int port)
public ClusterConfigurationBuilder addClusterNodes(String serverList)
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 © 2021 JBoss by Red Hat. All rights reserved.