Class ClusterConfigurationBuilder
- java.lang.Object
-
- org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
-
- org.infinispan.client.hotrod.configuration.ClusterConfigurationBuilder
-
- All Implemented Interfaces:
ConfigurationChildBuilder
,Builder<ClusterConfiguration>
public class ClusterConfigurationBuilder extends AbstractConfigurationChildBuilder implements Builder<ClusterConfiguration>
- Since:
- 8.1
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClusterConfigurationBuilder(ConfigurationBuilder builder, String clusterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterConfigurationBuilder
addClusterNode(String host, int port)
ClusterConfigurationBuilder
addClusterNodes(String serverList)
ClusterConfiguration
create()
Create the configuration beanString
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-
Methods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
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, valueSizeEstimate, version, withProperties
-
-
-
-
Constructor Detail
-
ClusterConfigurationBuilder
protected ClusterConfigurationBuilder(ConfigurationBuilder builder, String clusterName)
-
-
Method Detail
-
getClusterName
public String getClusterName()
-
addClusterNode
public ClusterConfigurationBuilder addClusterNode(String host, int port)
-
addClusterNodes
public ClusterConfigurationBuilder addClusterNodes(String serverList)
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<ClusterConfiguration>
-
create
public ClusterConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<ClusterConfiguration>
- Returns:
-
read
public Builder<?> read(ClusterConfiguration template)
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<ClusterConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
-