Class ExecutorFactoryConfigurationBuilder
- java.lang.Object
-
- org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
-
- org.infinispan.client.hotrod.configuration.ExecutorFactoryConfigurationBuilder
-
- All Implemented Interfaces:
ConfigurationChildBuilder
,Builder<ExecutorFactoryConfiguration>
public class ExecutorFactoryConfigurationBuilder extends AbstractConfigurationChildBuilder implements Builder<ExecutorFactoryConfiguration>
Configures executor factory.- Since:
- 5.3
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorFactoryConfigurationBuilder
addExecutorProperty(String key, String value)
Add key/value property pair to this executor factory configurationExecutorFactoryConfiguration
create()
Create the configuration beanExecutorFactoryConfigurationBuilder
factory(ExecutorFactory factory)
Specify factory class for executorExecutorFactoryConfigurationBuilder
factoryClass(Class<? extends ExecutorFactory> factoryClass)
Specify factory class for executorExecutorFactoryConfigurationBuilder
factoryClass(String factoryClass)
ExecutorFactoryConfigurationBuilder
read(ExecutorFactoryConfiguration template)
Reads the configuration from an already created configuration bean into this builder.String
toString()
void
validate()
Validate the data in this builder before building the configuration beanExecutorFactoryConfigurationBuilder
withExecutorProperties(Properties props)
Set key/value properties to this executor factory configuration-
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
-
-
-
-
Method Detail
-
factoryClass
public ExecutorFactoryConfigurationBuilder factoryClass(Class<? extends ExecutorFactory> factoryClass)
Specify factory class for executor- Parameters:
factoryClass
- clazz- Returns:
- this ExecutorFactoryConfig
-
factoryClass
public ExecutorFactoryConfigurationBuilder factoryClass(String factoryClass)
-
factory
public ExecutorFactoryConfigurationBuilder factory(ExecutorFactory factory)
Specify factory class for executor- Parameters:
factory
- clazz- Returns:
- this ExecutorFactoryConfig
-
addExecutorProperty
public ExecutorFactoryConfigurationBuilder addExecutorProperty(String key, String value)
Add key/value property pair to this executor factory configuration- Parameters:
key
- property keyvalue
- property value- Returns:
- previous value if exists, null otherwise
-
withExecutorProperties
public ExecutorFactoryConfigurationBuilder withExecutorProperties(Properties props)
Set key/value properties to this executor factory configuration- Parameters:
props
- Properties- Returns:
- this ExecutorFactoryConfig
-
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<ExecutorFactoryConfiguration>
-
create
public ExecutorFactoryConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<ExecutorFactoryConfiguration>
- Returns:
-
read
public ExecutorFactoryConfigurationBuilder read(ExecutorFactoryConfiguration 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<ExecutorFactoryConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
toString
public String toString()
-
-