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
addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers)
          Helper method that allows for quick registration of AdvancedExternalizer implementations.
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(Class<? extends AdvancedExternalizer<T>> clazz)
          Adds an AdvancedExternalizer.
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer)
          Helper method that allows for quick registration of an AdvancedExternalizer implementation alongside its corresponding identifier.
<T> FluentGlobalConfiguration.SerializationConfig
addAdvancedExternalizer(int id, Class<? extends AdvancedExternalizer<T>> clazz)
          Adds an AdvancedExternalizer with the give id.
 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:

addAdvancedExternalizer

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

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

addAdvancedExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(Class<? extends AdvancedExternalizer<T>> clazz)
Adds an AdvancedExternalizer.

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

addAdvancedExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(int id,
                                                                          AdvancedExternalizer<T> advancedExternalizer)
Helper method that allows for quick registration of an AdvancedExternalizer 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 -
advancedExternalizer -

addAdvancedExternalizer

<T> FluentGlobalConfiguration.SerializationConfig addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers)
Helper method that allows for quick registration of AdvancedExternalizer implementations.

Parameters:
advancedExternalizers -

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.