org.infinispan.config
Interface FluentGlobalConfiguration.SerializationConfig

All Known Implementing Classes:
GlobalConfiguration.SerializationType
Enclosing class:
FluentGlobalConfiguration

public static interface FluentGlobalConfiguration.SerializationConfig

Configures serialization and marshalling settings.


Method Summary
<T> FluentGlobalConfiguration.SerializationConfig
addExternalizer(Class<? extends Externalizer<T>> clazz)
          Adds an Externalizer.
<T> FluentGlobalConfiguration.SerializationConfig
addExternalizer(Externalizer<T>... externalizers)
          Helper method that allows for quick registration of Externalizer implementations.
<T> FluentGlobalConfiguration.SerializationConfig
addExternalizer(int id, Class<? extends Externalizer<T>> clazz)
          Adds an Exteralizer with the give id.
<T> FluentGlobalConfiguration.SerializationConfig
addExternalizer(int id, Externalizer<T> externalizer)
          Helper method that allows for quick registration of an Externalizer implementation alongside its corresponding identifier.
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()
           
 GlobalConfiguration build()
           
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()
           
 FluentGlobalConfiguration.GlobalJmxStatisticsConfig globalJmxStatistics()
          This method allows configuration of the global, or cache manager level, jmx statistics.
 FluentGlobalConfiguration.SerializationConfig marshallerClass(Class<? extends Marshaller> marshallerClass)
          Fully qualified name of the marshaller to use.
 FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()
           
 FluentGlobalConfiguration.SerializationConfig serialization()
           
 FluentGlobalConfiguration.ShutdownConfig shutdown()
           
 FluentGlobalConfiguration.TransportConfig transport()
           
 FluentGlobalConfiguration.SerializationConfig version(short marshallVersion)
          TODO
 FluentGlobalConfiguration.SerializationConfig version(String marshallVersion)
          Largest allowable version to use when marshalling internal state.
 

Method Detail

marshallerClass

FluentGlobalConfiguration.SerializationConfig marshallerClass(Class<? extends Marshaller> marshallerClass)
Fully qualified name of the marshaller to use. It must implement org.infinispan.marshall.StreamingMarshaller

Parameters:
marshallerClass -

version

FluentGlobalConfiguration.SerializationConfig version(String marshallVersion)
Largest allowable version to use when marshalling internal state. Set this to the lowest version cache instance in your cluster to ensure compatibility of communications. However, setting this too low will mean you lose out on the benefit of improvements in newer versions of the marshaller.

Parameters:
marshallVersion -

version

FluentGlobalConfiguration.SerializationConfig version(short marshallVersion)
TODO

Parameters:
marshallVersion -
Returns:

addExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addExternalizer(int id,
                                                                  Class<? extends Externalizer<T>> clazz)
Adds an Exteralizer with the give id.

Type Parameters:
T - type of the object that the Externalizer marshalls
Parameters:
clazz - externalizer class
id - id of externlizer
Returns:
this ExternalizersConfig

addExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addExternalizer(Class<? extends Externalizer<T>> clazz)
Adds an Externalizer.

Type Parameters:
T - type of the object that the Externalizer marshalls
Parameters:
clazz - externalizer class
Returns:
this ExternalizersConfig

addExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addExternalizer(int id,
                                                                  Externalizer<T> externalizer)
Helper method that allows for quick registration of an Externalizer implementation alongside its corresponding identifier. Remember that the identifier needs to a be positive number, including 0, and cannot clash with other identifiers in the system.

Parameters:
id -
externalizer -

addExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addExternalizer(Externalizer<T>... externalizers)
Helper method that allows for quick registration of Externalizer implementations.

Parameters:
externalizers -

transport

FluentGlobalConfiguration.TransportConfig transport()

globalJmxStatistics

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

FluentGlobalConfiguration.SerializationConfig serialization()

asyncTransportExecutor

FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncTransportExecutor()

asyncListenerExecutor

FluentGlobalConfiguration.ExecutorFactoryConfig<ExecutorFactory> asyncListenerExecutor()

evictionScheduledExecutor

FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> evictionScheduledExecutor()

replicationQueueScheduledExecutor

FluentGlobalConfiguration.ExecutorFactoryConfig<ScheduledExecutorFactory> replicationQueueScheduledExecutor()

shutdown

FluentGlobalConfiguration.ShutdownConfig shutdown()

build

GlobalConfiguration build()

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.