Class ExecutorFactoryConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.global.ExecutorFactoryConfigurationBuilder
-
- All Implemented Interfaces:
Builder<ExecutorFactoryConfiguration>
,GlobalConfigurationChildBuilder
public class ExecutorFactoryConfigurationBuilder extends Object implements Builder<ExecutorFactoryConfiguration>
Configures executor factory.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutorFactoryConfigurationBuilder
addProperty(String key, String value)
Add key/value property pair to this executor factory configurationThreadPoolConfigurationBuilder
asyncThreadPool()
Configuration for the asynchronous operations thread poolGlobalConfiguration
build()
Builds aGlobalConfiguration
object using the settings applied to this builderExecutorFactoryConfiguration
create()
Create the configuration beanGlobalConfigurationBuilder
defaultCacheName(String defaultCacheName)
Sets the name of the cache that acts as the default cache and is returned byCacheContainer.getCache()
.ThreadPoolConfigurationBuilder
evictionThreadPool()
Deprecated.ThreadPoolConfigurationBuilder
expirationThreadPool()
Configuration for the expiration thread poolExecutorFactoryConfigurationBuilder
factory(ExecutorFactory factory)
Specify factory class for executor NOTE: Currently Infinispan will not use the object instance, but instead instantiate a new instance of the class.protected GlobalConfigurationBuilder
getGlobalConfig()
GlobalJmxStatisticsConfigurationBuilder
globalJmxStatistics()
Global JMX configurationGlobalStateConfigurationBuilder
globalState()
Global state configurationThreadPoolConfigurationBuilder
listenerThreadPool()
Configuration for the listener thread poolList<Builder<?>>
modules()
Global modules configurationThreadPoolConfigurationBuilder
persistenceThreadPool()
Configuration for the persistence thread poolExecutorFactoryConfigurationBuilder
read(ExecutorFactoryConfiguration template)
Reads the configuration from an already created configuration bean into this builder.ThreadPoolConfigurationBuilder
replicationQueueThreadPool()
GlobalSecurityConfigurationBuilder
security()
Security-related configurationSerializationConfigurationBuilder
serialization()
Global serialization (i.e.ShutdownConfigurationBuilder
shutdown()
Shutdown configurationSiteConfigurationBuilder
site()
Cross-site replication configurationThreadPoolConfigurationBuilder
stateTransferThreadPool()
Configuration for the state-transfer thread poolString
toString()
TransportConfigurationBuilder
transport()
Transport-related (i.e.void
validate()
Validate the data in this builder before building the configuration beanExecutorFactoryConfigurationBuilder
withProperties(Properties props)
Set key/value properties to this executor factory configuration
-
-
-
Method Detail
-
factory
public ExecutorFactoryConfigurationBuilder factory(ExecutorFactory factory)
Specify factory class for executor NOTE: Currently Infinispan will not use the object instance, but instead instantiate a new instance of the class. Therefore, do not expect any state to survive, and provide a no-args constructor to any instance. This will be resolved in Infinispan 5.2.0- Parameters:
factory
- clazz- Returns:
- this ExecutorFactoryConfig
-
addProperty
public ExecutorFactoryConfigurationBuilder addProperty(String key, String value)
Add key/value property pair to this executor factory configuration- Parameters:
key
- property keyvalue
- property value- Returns:
- this ExecutorFactoryConfig
-
withProperties
public ExecutorFactoryConfigurationBuilder withProperties(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.
-
getGlobalConfig
protected GlobalConfigurationBuilder getGlobalConfig()
-
transport
public TransportConfigurationBuilder transport()
Description copied from interface:GlobalConfigurationChildBuilder
Transport-related (i.e. clustering) configuration- Specified by:
transport
in interfaceGlobalConfigurationChildBuilder
-
globalJmxStatistics
public GlobalJmxStatisticsConfigurationBuilder globalJmxStatistics()
Description copied from interface:GlobalConfigurationChildBuilder
Global JMX configuration- Specified by:
globalJmxStatistics
in interfaceGlobalConfigurationChildBuilder
-
globalState
public GlobalStateConfigurationBuilder globalState()
Description copied from interface:GlobalConfigurationChildBuilder
Global state configuration- Specified by:
globalState
in interfaceGlobalConfigurationChildBuilder
-
serialization
public SerializationConfigurationBuilder serialization()
Description copied from interface:GlobalConfigurationChildBuilder
Global serialization (i.e. marshalling) configuration- Specified by:
serialization
in interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
public ThreadPoolConfigurationBuilder listenerThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the listener thread pool- Specified by:
listenerThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
public ThreadPoolConfigurationBuilder asyncThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the asynchronous operations thread pool- Specified by:
asyncThreadPool
in interfaceGlobalConfigurationChildBuilder
-
replicationQueueThreadPool
public ThreadPoolConfigurationBuilder replicationQueueThreadPool()
- Specified by:
replicationQueueThreadPool
in interfaceGlobalConfigurationChildBuilder
-
evictionThreadPool
@Deprecated public ThreadPoolConfigurationBuilder evictionThreadPool()
Deprecated.Description copied from interface:GlobalConfigurationChildBuilder
- Specified by:
evictionThreadPool
in interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
public ThreadPoolConfigurationBuilder expirationThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the expiration thread pool- Specified by:
expirationThreadPool
in interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
public ThreadPoolConfigurationBuilder persistenceThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the persistence thread pool- Specified by:
persistenceThreadPool
in interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
public ThreadPoolConfigurationBuilder stateTransferThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the state-transfer thread pool- Specified by:
stateTransferThreadPool
in interfaceGlobalConfigurationChildBuilder
-
security
public GlobalSecurityConfigurationBuilder security()
Description copied from interface:GlobalConfigurationChildBuilder
Security-related configuration- Specified by:
security
in interfaceGlobalConfigurationChildBuilder
-
shutdown
public ShutdownConfigurationBuilder shutdown()
Description copied from interface:GlobalConfigurationChildBuilder
Shutdown configuration- Specified by:
shutdown
in interfaceGlobalConfigurationChildBuilder
-
site
public SiteConfigurationBuilder site()
Description copied from interface:GlobalConfigurationChildBuilder
Cross-site replication configuration- Specified by:
site
in interfaceGlobalConfigurationChildBuilder
-
modules
public List<Builder<?>> modules()
Description copied from interface:GlobalConfigurationChildBuilder
Global modules configuration- Specified by:
modules
in interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
public GlobalConfigurationBuilder defaultCacheName(String defaultCacheName)
Description copied from interface:GlobalConfigurationChildBuilder
Sets the name of the cache that acts as the default cache and is returned byCacheContainer.getCache()
. Not- Specified by:
defaultCacheName
in interfaceGlobalConfigurationChildBuilder
-
build
public GlobalConfiguration build()
Description copied from interface:GlobalConfigurationChildBuilder
Builds aGlobalConfiguration
object using the settings applied to this builder- Specified by:
build
in interfaceGlobalConfigurationChildBuilder
-
-