org.infinispan.config
Class AdvancedExternalizerConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AdvancedExternalizerConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable
public class AdvancedExternalizerConfig
- extends AbstractConfigurationBean
Defines custom Externalizers to be registered with marshalling framework
- Since:
- 5.0
- Author:
- Vladimir Blagojevic
- See Also:
- Serialized Form
externalizerClass
protected String externalizerClass
id
protected Integer id
AdvancedExternalizerConfig
public AdvancedExternalizerConfig()
getExternalizerClass
public String getExternalizerClass()
setExternalizerClass
public AdvancedExternalizerConfig setExternalizerClass(String externalizerClass)
- Fully qualified class name of an
AdvancedExternalizer
implementation that knows how to marshall or unmarshall instances of one, or
several, user-defined, types.
- Parameters:
externalizerClass
-
getId
public Integer getId()
setId
public AdvancedExternalizerConfig setId(Integer id)
- This identifier distinguishes between different user-defined
AdvancedExternalizer
implementations, providing a more performant way to ship class information around
rather than passing class names or class information in general around.
Only positive ids are allowed, and you can use any number as long as it does not
clash with an already existing number for a AdvancedExternalizer
implementation.
If there're any clashes, Infinispan will abort startup and will provide class
information of the ids clashing.
- Parameters:
id
-
getAdvancedExternalizer
public AdvancedExternalizer getAdvancedExternalizer()
setAdvancedExternalizer
public AdvancedExternalizerConfig setAdvancedExternalizer(AdvancedExternalizer advancedExternalizer)
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
accept
public void accept(ConfigurationBeanVisitor v)
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.
clone
public CloneableConfigurationComponent clone()
throws CloneNotSupportedException
- Specified by:
clone
in interface CloneableConfigurationComponent
- Overrides:
clone
in class AbstractConfigurationBean
- Throws:
CloneNotSupportedException
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.