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
Modifier and TypeMethodDescriptionaddExecutorProperty
(String key, String value) Add key/value property pair to this executor factory configurationcreate()
Create the configuration beanfactory
(ExecutorFactory factory) factoryClass
(Class<? extends ExecutorFactory> factoryClass) Specify factory class for executorfactoryClass
(String factoryClass) read
(ExecutorFactoryConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.toString()
void
validate()
Validate the data in this builder before building the configuration beanwithExecutorProperties
(Properties props) Set key/value properties to this executor factory configurationMethods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, dnsResolverMaxTTL, dnsResolverMinTTL, dnsResolverNegativeTTL, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, remoteCache, security, serverFailureTimeout, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, transactionTimeout, transportFactory, uri, uri, valueSizeEstimate, version, withProperties
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<ExecutorFactoryConfiguration>
-
factoryClass
public ExecutorFactoryConfigurationBuilder factoryClass(Class<? extends ExecutorFactory> factoryClass) Specify factory class for executor- Parameters:
factoryClass
- clazz- Returns:
- this ExecutorFactoryConfig
-
factoryClass
-
factory
-
addExecutorProperty
Add key/value property pair to this executor factory configuration- Parameters:
key
- property keyvalue
- property value- Returns:
- previous value if exists, null otherwise
-
withExecutorProperties
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
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<ExecutorFactoryConfiguration>
- Returns:
-
read
public ExecutorFactoryConfigurationBuilder read(ExecutorFactoryConfiguration template, Combine combine) 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.combine
- the way attributes and children of this instance and the template should be combined.
-
toString
-