com.hazelcast.config
public class SerializationConfig extends Object
HazelcastInstance
.Constructor and Description |
---|
SerializationConfig() |
public GlobalSerializerConfig getGlobalSerializerConfig()
com.hazelcast.config.GlobalSerializerConfig}
public SerializationConfig setGlobalSerializerConfig(GlobalSerializerConfig globalSerializerConfig)
globalSerializerConfig
- configuration of serializer that will be used
if no other serializer is applicablepublic Collection<SerializerConfig> getSerializerConfigs()
SerializerConfig
spublic SerializationConfig addSerializerConfig(SerializerConfig serializerConfig)
serializerConfig
- serializer configuration of a class typeSerializerConfig
for chainingpublic SerializationConfig setSerializerConfigs(Collection<SerializerConfig> serializerConfigs)
serializerConfigs
- lists of serializer configs that will be registeredSerializerConfig
for chainingpublic int getPortableVersion()
public SerializationConfig setPortableVersion(int portableVersion)
portableVersion
- int value for the version of portable classesSerializerConfig
for chainingpublic Map<Integer,String> getDataSerializableFactoryClasses()
com.hazelcast.nio.serialization.DataSerializableFactory}
public SerializationConfig setDataSerializableFactoryClasses(Map<Integer,String> dataSerializableFactoryClasses)
dataSerializableFactoryClasses
- map of factory id and corresponding factory class namesSerializerConfig
for chainingcom.hazelcast.nio.serialization.DataSerializableFactory}
public SerializationConfig addDataSerializableFactoryClass(int factoryId, String dataSerializableFactoryClass)
factoryId
- factory id of dataSerializableFactory to be registereddataSerializableFactoryClass
- name of dataSerializableFactory class to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.DataSerializableFactory}
public SerializationConfig addDataSerializableFactoryClass(int factoryId, Class<? extends DataSerializableFactory> dataSerializableFactoryClass)
factoryId
- factory id of dataSerializableFactory to be registereddataSerializableFactoryClass
- dataSerializableFactory class to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.DataSerializableFactory}
public Map<Integer,DataSerializableFactory> getDataSerializableFactories()
com.hazelcast.nio.serialization.DataSerializableFactory}
public SerializationConfig setDataSerializableFactories(Map<Integer,DataSerializableFactory> dataSerializableFactories)
dataSerializableFactories
- map of factory id and corresponding dataSerializable objectsSerializerConfig
for chainingcom.hazelcast.nio.serialization.DataSerializableFactory}
public SerializationConfig addDataSerializableFactory(int factoryId, DataSerializableFactory dataSerializableFactory)
factoryId
- factory id of DataSerializableFactory to be registereddataSerializableFactory
- DataSerializableFactory object to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.DataSerializableFactory}
public Map<Integer,String> getPortableFactoryClasses()
com.hazelcast.nio.serialization.PortableFactory}
public SerializationConfig setPortableFactoryClasses(Map<Integer,String> portableFactoryClasses)
portableFactoryClasses
- map of factory id and corresponding factory class namesSerializerConfig
for chainingcom.hazelcast.nio.serialization.PortableFactory}
public SerializationConfig addPortableFactoryClass(int factoryId, Class<? extends PortableFactory> portableFactoryClass)
factoryId
- factory id of portableFactory to be registeredportableFactoryClass
- portableFactory class to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.PortableFactory}
public SerializationConfig addPortableFactoryClass(int factoryId, String portableFactoryClass)
factoryId
- factory id of portableFactory to be registeredportableFactoryClass
- name of the portableFactory class to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.PortableFactory}
public Map<Integer,PortableFactory> getPortableFactories()
com.hazelcast.nio.serialization.PortableFactory}
public SerializationConfig setPortableFactories(Map<Integer,PortableFactory> portableFactories)
portableFactories
- map of factory id and corresponding factory objectsSerializerConfig
for chainingcom.hazelcast.nio.serialization.PortableFactory}
public SerializationConfig addPortableFactory(int factoryId, PortableFactory portableFactory)
factoryId
- factory id of portableFactory to be registeredportableFactory
- portableFactory object to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.PortableFactory}
public Set<ClassDefinition> getClassDefinitions()
com.hazelcast.nio.serialization.ClassDefinition}
public SerializationConfig addClassDefinition(ClassDefinition classDefinition)
classDefinition
- the class definition to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.ClassDefinition}
public SerializationConfig setClassDefinitions(Set<ClassDefinition> classDefinitions)
classDefinitions
- set of class definitions to be registeredSerializerConfig
for chainingcom.hazelcast.nio.serialization.ClassDefinition}
public boolean isCheckClassDefErrors()
public SerializationConfig setCheckClassDefErrors(boolean checkClassDefErrors)
checkClassDefErrors
- set to false to disable.SerializerConfig
for chainingpublic boolean isUseNativeByteOrder()
public SerializationConfig setUseNativeByteOrder(boolean useNativeByteOrder)
useNativeByteOrder
- set to true to use native byte order of the underlying platform.SerializerConfig
for chainingpublic ByteOrder getByteOrder()
public SerializationConfig setByteOrder(ByteOrder byteOrder)
byteOrder
- that serialization will use.SerializerConfig
for chainingpublic boolean isEnableCompression()
public SerializationConfig setEnableCompression(boolean enableCompression)
enableCompression
- set to true to enable compressionSerializerConfig
for chainingpublic boolean isEnableSharedObject()
public SerializationConfig setEnableSharedObject(boolean enableSharedObject)
enableSharedObject
- set to false to disableSerializerConfig
for chainingpublic boolean isAllowUnsafe()
public SerializationConfig setAllowUnsafe(boolean allowUnsafe)
allowUnsafe
- set to true to allow usage of unsafeSerializerConfig
for chainingCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.