public class DefaultSerializationServiceBuilder extends Object implements SerializationServiceBuilder
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowUnsafe |
protected ByteOrder |
byteOrder |
protected boolean |
checkClassDefErrors |
protected Set<ClassDefinition> |
classDefinitions |
protected ClassLoader |
classLoader |
protected SerializationConfig |
config |
protected Map<Integer,DataSerializableFactory> |
dataSerializableFactories |
protected boolean |
enableCompression |
protected boolean |
enableSharedObject |
protected HazelcastInstance |
hazelcastInstance |
protected int |
initialOutputBufferSize |
protected ManagedContext |
managedContext |
protected PartitioningStrategy |
partitioningStrategy |
protected Map<Integer,PortableFactory> |
portableFactories |
protected int |
portableVersion |
protected boolean |
useNativeByteOrder |
protected byte |
version |
Constructor and Description |
---|
DefaultSerializationServiceBuilder() |
protected ClassLoader classLoader
protected SerializationConfig config
protected byte version
protected int portableVersion
protected final Map<Integer,DataSerializableFactory> dataSerializableFactories
protected final Map<Integer,PortableFactory> portableFactories
protected boolean checkClassDefErrors
protected final Set<ClassDefinition> classDefinitions
protected ManagedContext managedContext
protected boolean useNativeByteOrder
protected ByteOrder byteOrder
protected boolean enableCompression
protected boolean enableSharedObject
protected boolean allowUnsafe
protected int initialOutputBufferSize
protected PartitioningStrategy partitioningStrategy
protected HazelcastInstance hazelcastInstance
public SerializationServiceBuilder setVersion(byte version)
setVersion
in interface SerializationServiceBuilder
public SerializationServiceBuilder setPortableVersion(int portableVersion)
setPortableVersion
in interface SerializationServiceBuilder
public SerializationServiceBuilder setClassLoader(ClassLoader classLoader)
setClassLoader
in interface SerializationServiceBuilder
public SerializationServiceBuilder setConfig(SerializationConfig config)
setConfig
in interface SerializationServiceBuilder
public SerializationServiceBuilder addDataSerializableFactory(int id, DataSerializableFactory factory)
addDataSerializableFactory
in interface SerializationServiceBuilder
public SerializationServiceBuilder addPortableFactory(int id, PortableFactory factory)
addPortableFactory
in interface SerializationServiceBuilder
public SerializationServiceBuilder addClassDefinition(ClassDefinition cd)
addClassDefinition
in interface SerializationServiceBuilder
public SerializationServiceBuilder setCheckClassDefErrors(boolean checkClassDefErrors)
setCheckClassDefErrors
in interface SerializationServiceBuilder
public SerializationServiceBuilder setManagedContext(ManagedContext managedContext)
setManagedContext
in interface SerializationServiceBuilder
public SerializationServiceBuilder setUseNativeByteOrder(boolean useNativeByteOrder)
setUseNativeByteOrder
in interface SerializationServiceBuilder
public SerializationServiceBuilder setByteOrder(ByteOrder byteOrder)
setByteOrder
in interface SerializationServiceBuilder
public SerializationServiceBuilder setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance
in interface SerializationServiceBuilder
public SerializationServiceBuilder setEnableCompression(boolean enableCompression)
setEnableCompression
in interface SerializationServiceBuilder
public SerializationServiceBuilder setEnableSharedObject(boolean enableSharedObject)
setEnableSharedObject
in interface SerializationServiceBuilder
public SerializationServiceBuilder setAllowUnsafe(boolean allowUnsafe)
setAllowUnsafe
in interface SerializationServiceBuilder
public SerializationServiceBuilder setPartitioningStrategy(PartitioningStrategy partitionStrategy)
setPartitioningStrategy
in interface SerializationServiceBuilder
public SerializationServiceBuilder setInitialOutputBufferSize(int initialOutputBufferSize)
setInitialOutputBufferSize
in interface SerializationServiceBuilder
public SerializationService build()
build
in interface SerializationServiceBuilder
protected SerializationService createSerializationService(InputOutputFactory inputOutputFactory)
protected InputOutputFactory createInputOutputFactory()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.