|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.SerializationConfig
public class SerializationConfig
Contains the serialization configuration of HazelcastInstance
.
Constructor Summary | |
---|---|
SerializationConfig()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SerializationConfig()
Method Detail |
---|
public GlobalSerializerConfig getGlobalSerializerConfig()
com.hazelcast.config.GlobalSerializerConfig}
public SerializationConfig setGlobalSerializerConfig(GlobalSerializerConfig globalSerializerConfig)
globalSerializerConfig
- configuration of serializer will be used
that if no other serializer is applicable
public Collection<SerializerConfig> getSerializerConfigs()
SerializerConfig
'spublic SerializationConfig addSerializerConfig(SerializerConfig serializerConfig)
serializerConfig
- serializer configuration of a class type
SerializerConfig
for chainingpublic SerializationConfig setSerializerConfigs(Collection<SerializerConfig> serializerConfigs)
serializerConfigs
- lists of serializer configs that will be registered
SerializerConfig
for chainingpublic int getPortableVersion()
public SerializationConfig setPortableVersion(int portableVersion)
portableVersion
- int value for version of portable classes
SerializerConfig
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 names
SerializerConfig
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 registered
SerializerConfig
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 registered
SerializerConfig
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 objects
SerializerConfig
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 registered
SerializerConfig
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 names
SerializerConfig
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 registered
SerializerConfig
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 registered
SerializerConfig
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 objects
SerializerConfig
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 registered
SerializerConfig
for chainingcom.hazelcast.nio.serialization.PortableFactory}
public Set<ClassDefinition> getClassDefinitions()
com.hazelcast.nio.serialization.ClassDefinition}
public SerializationConfig addClassDefinition(ClassDefinition classDefinition)
classDefinition
- to be registered
SerializerConfig
for chainingcom.hazelcast.nio.serialization.ClassDefinition}
public SerializationConfig setClassDefinitions(Set<ClassDefinition> classDefinitions)
classDefinitions
- set of class definitions to be registered
SerializerConfig
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
SerializerConfig
for chainingpublic boolean isEnableSharedObject()
public SerializationConfig setEnableSharedObject(boolean enableSharedObject)
enableSharedObject
- set to false to disable
SerializerConfig
for chainingpublic boolean isAllowUnsafe()
public SerializationConfig setAllowUnsafe(boolean allowUnsafe)
allowUnsafe
- set to true to allow usage of unsafe
SerializerConfig
for chainingpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |