org.infinispan.config
Class GlobalConfiguration.ExecutorFactoryType
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.GlobalConfiguration.FactoryClassWithPropertiesType
org.infinispan.config.GlobalConfiguration.ExecutorFactoryType
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory>, JAXBUnmarshallable
- Enclosing class:
- GlobalConfiguration
public static class GlobalConfiguration.ExecutorFactoryType
- extends GlobalConfiguration.FactoryClassWithPropertiesType
- implements FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory>
- See Also:
- Configuration reference,
Serialized Form
factory
protected String factory
GlobalConfiguration.ExecutorFactoryType
public GlobalConfiguration.ExecutorFactoryType(String factory)
GlobalConfiguration.ExecutorFactoryType
public GlobalConfiguration.ExecutorFactoryType()
getFactory
public String getFactory()
setFactory
public void setFactory(String factory)
factory
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> factory(Class<? extends ExecutorFactory> clazz)
- Description copied from interface:
FluentGlobalConfiguration.ExecutorFactoryConfig
- Specify factory class for executor
- Specified by:
factory
in interface FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory>
- Parameters:
clazz
- clazz
- Returns:
- this ExecutorFactoryConfig
clone
public GlobalConfiguration.ExecutorFactoryType clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface CloneableConfigurationComponent
- Overrides:
clone
in class GlobalConfiguration.FactoryClassWithPropertiesType
- Throws:
CloneNotSupportedException
addProperty
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> addProperty(String key,
String value)
- Description copied from interface:
FluentGlobalConfiguration.ExecutorFactoryConfig
- Add key/value property pair to this executor factory configuration
- Specified by:
addProperty
in interface FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory>
- Overrides:
addProperty
in class GlobalConfiguration.FactoryClassWithPropertiesType
- Parameters:
key
- property keyvalue
- property value
- Returns:
- previous value if exists, null otherwise
withProperties
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> withProperties(Properties props)
- Description copied from interface:
FluentGlobalConfiguration.ExecutorFactoryConfig
- Set key/value properties to this executor factory configuration
- Specified by:
withProperties
in interface FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory>
- Overrides:
withProperties
in class GlobalConfiguration.FactoryClassWithPropertiesType
- Parameters:
props
- Properties
- Returns:
- this ExecutorFactoryConfig
transport
public FluentGlobalConfiguration.TransportConfig transport()
globalJmxStatistics
public FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
- This method allows configuration of the global, or cache manager level,
jmx statistics. When this method is called, it automatically enables
global jmx statistics. So, if you want it to be disabled, make sure you call
FluentGlobalConfiguration.GlobalJmxStatisticsConfig.disable()
serialization
public FluentGlobalConfiguration.SerializationConfig serialization()
asyncTransportExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
asyncListenerExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
evictionScheduledExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
replicationQueueScheduledExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
shutdown
public FluentGlobalConfiguration.ShutdownConfig shutdown()
build
public GlobalConfiguration build()
inject
public void inject(GlobalComponentRegistry gcr,
GlobalConfiguration globalConfig)
hasComponentStarted
protected boolean hasComponentStarted()
- Description copied from class:
AbstractConfigurationBean
- Tests whether the component this configuration bean intents to configure has already started.
- Specified by:
hasComponentStarted
in class AbstractConfigurationBean
- Returns:
- true if the component has started; false otherwise.
transport
public FluentGlobalConfiguration.TransportConfig transport()
globalJmxStatistics
public FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
- This method allows configuration of the global, or cache manager level,
jmx statistics. When this method is called, it automatically enables
global jmx statistics. So, if you want it to be disabled, make sure you call
FluentGlobalConfiguration.GlobalJmxStatisticsConfig.disable()
serialization
public FluentGlobalConfiguration.SerializationConfig serialization()
asyncListenerExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
asyncTransportExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
evictionScheduledExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
replicationQueueScheduledExecutor
public FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
shutdown
public FluentGlobalConfiguration.ShutdownConfig shutdown()
build
public GlobalConfiguration build()
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.