org.infinispan.configuration.global
Class SerializationConfigurationBuilder

java.lang.Object
  extended by org.infinispan.configuration.global.SerializationConfigurationBuilder
All Implemented Interfaces:
GlobalConfigurationChildBuilder

public class SerializationConfigurationBuilder
extends Object

Configures serialization and marshalling settings.


Method Summary
<T> SerializationConfigurationBuilder
addAdvancedExternalizer(AdvancedExternalizer<T>... advancedExternalizers)
          Helper method that allows for quick registration of AdvancedExternalizer implementations.
<T> SerializationConfigurationBuilder
addAdvancedExternalizer(AdvancedExternalizer<T> advancedExternalizer)
          Helper method that allows for quick registration of an AdvancedExternalizer implementation alongside its corresponding identifier.
<T> SerializationConfigurationBuilder
addAdvancedExternalizer(int id, AdvancedExternalizer<T> advancedExternalizer)
          Helper method that allows for quick registration of an AdvancedExternalizer implementation alongside its corresponding identifier.
 ExecutorFactoryConfigurationBuilder asyncListenerExecutor()
           
 ExecutorFactoryConfigurationBuilder asyncTransportExecutor()
           
 GlobalConfiguration build()
           
 SerializationConfigurationBuilder classResolver(org.jboss.marshalling.ClassResolver classResolver)
          Class resolver to use when unmarshallig objects.
 boolean equals(Object o)
           
 ScheduledExecutorFactoryConfigurationBuilder evictionScheduledExecutor()
           
protected  GlobalConfigurationBuilder getGlobalConfig()
           
 GlobalJmxStatisticsConfigurationBuilder globalJmxStatistics()
           
 int hashCode()
           
 SerializationConfigurationBuilder marshaller(Marshaller marshaller)
          Set the marshaller instance that will marshall and unmarshall cache entries.
protected  SerializationConfigurationBuilder read(SerializationConfiguration template)
           
 ExecutorFactoryConfigurationBuilder remoteCommandsExecutor()
           
 ScheduledExecutorFactoryConfigurationBuilder replicationQueueScheduledExecutor()
           
 SerializationConfigurationBuilder serialization()
           
 ShutdownConfigurationBuilder shutdown()
           
 SiteConfigurationBuilder site()
           
 String toString()
           
 TransportConfigurationBuilder transport()
           
protected  void validate()
           
 SerializationConfigurationBuilder version(short marshallVersion)
          Largest allowable version to use when marshalling internal state.
 SerializationConfigurationBuilder version(String marshallVersion)
          Largest allowable version to use when marshalling internal state.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

marshaller

public SerializationConfigurationBuilder marshaller(Marshaller marshaller)
Set the marshaller instance that will marshall and unmarshall cache entries.

Parameters:
marshaller -

version

public SerializationConfigurationBuilder version(short 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

public SerializationConfigurationBuilder 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 -

addAdvancedExternalizer

public <T> SerializationConfigurationBuilder 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

public <T> SerializationConfigurationBuilder addAdvancedExternalizer(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:
advancedExternalizer -

addAdvancedExternalizer

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

Parameters:
advancedExternalizers -

classResolver

public SerializationConfigurationBuilder classResolver(org.jboss.marshalling.ClassResolver classResolver)
Class resolver to use when unmarshallig objects.

Parameters:
classResolver -

validate

protected void validate()

read

protected SerializationConfigurationBuilder read(SerializationConfiguration template)

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

getGlobalConfig

protected GlobalConfigurationBuilder getGlobalConfig()

transport

public TransportConfigurationBuilder transport()
Specified by:
transport in interface GlobalConfigurationChildBuilder

globalJmxStatistics

public GlobalJmxStatisticsConfigurationBuilder globalJmxStatistics()
Specified by:
globalJmxStatistics in interface GlobalConfigurationChildBuilder

serialization

public SerializationConfigurationBuilder serialization()
Specified by:
serialization in interface GlobalConfigurationChildBuilder

asyncListenerExecutor

public ExecutorFactoryConfigurationBuilder asyncListenerExecutor()
Specified by:
asyncListenerExecutor in interface GlobalConfigurationChildBuilder

asyncTransportExecutor

public ExecutorFactoryConfigurationBuilder asyncTransportExecutor()
Specified by:
asyncTransportExecutor in interface GlobalConfigurationChildBuilder

remoteCommandsExecutor

public ExecutorFactoryConfigurationBuilder remoteCommandsExecutor()
Specified by:
remoteCommandsExecutor in interface GlobalConfigurationChildBuilder

evictionScheduledExecutor

public ScheduledExecutorFactoryConfigurationBuilder evictionScheduledExecutor()
Specified by:
evictionScheduledExecutor in interface GlobalConfigurationChildBuilder

replicationQueueScheduledExecutor

public ScheduledExecutorFactoryConfigurationBuilder replicationQueueScheduledExecutor()
Specified by:
replicationQueueScheduledExecutor in interface GlobalConfigurationChildBuilder

shutdown

public ShutdownConfigurationBuilder shutdown()
Specified by:
shutdown in interface GlobalConfigurationChildBuilder

site

public SiteConfigurationBuilder site()
Specified by:
site in interface GlobalConfigurationChildBuilder

build

public GlobalConfiguration build()
Specified by:
build in interface GlobalConfigurationChildBuilder

-->

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