com.hazelcast.nio.serialization
Class DefaultSerializationServiceBuilder
java.lang.Object
com.hazelcast.nio.serialization.DefaultSerializationServiceBuilder
- All Implemented Interfaces:
- SerializationServiceBuilder
public class DefaultSerializationServiceBuilder
- extends Object
- implements SerializationServiceBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classLoader
protected ClassLoader classLoader
config
protected SerializationConfig config
version
protected int version
dataSerializableFactories
protected final Map<Integer,DataSerializableFactory> dataSerializableFactories
portableFactories
protected final Map<Integer,PortableFactory> portableFactories
checkClassDefErrors
protected boolean checkClassDefErrors
classDefinitions
protected final Set<ClassDefinition> classDefinitions
managedContext
protected ManagedContext managedContext
useNativeByteOrder
protected boolean useNativeByteOrder
byteOrder
protected ByteOrder byteOrder
enableCompression
protected boolean enableCompression
enableSharedObject
protected boolean enableSharedObject
allowUnsafe
protected boolean allowUnsafe
initialOutputBufferSize
protected int initialOutputBufferSize
partitioningStrategy
protected PartitioningStrategy partitioningStrategy
hazelcastInstance
protected HazelcastInstance hazelcastInstance
DefaultSerializationServiceBuilder
public DefaultSerializationServiceBuilder()
setVersion
public SerializationServiceBuilder setVersion(int version)
- Specified by:
setVersion
in interface SerializationServiceBuilder
setClassLoader
public SerializationServiceBuilder setClassLoader(ClassLoader classLoader)
- Specified by:
setClassLoader
in interface SerializationServiceBuilder
setConfig
public SerializationServiceBuilder setConfig(SerializationConfig config)
- Specified by:
setConfig
in interface SerializationServiceBuilder
addDataSerializableFactory
public SerializationServiceBuilder addDataSerializableFactory(int id,
DataSerializableFactory factory)
- Specified by:
addDataSerializableFactory
in interface SerializationServiceBuilder
addPortableFactory
public SerializationServiceBuilder addPortableFactory(int id,
PortableFactory factory)
- Specified by:
addPortableFactory
in interface SerializationServiceBuilder
addClassDefinition
public SerializationServiceBuilder addClassDefinition(ClassDefinition cd)
- Specified by:
addClassDefinition
in interface SerializationServiceBuilder
setCheckClassDefErrors
public SerializationServiceBuilder setCheckClassDefErrors(boolean checkClassDefErrors)
- Specified by:
setCheckClassDefErrors
in interface SerializationServiceBuilder
setManagedContext
public SerializationServiceBuilder setManagedContext(ManagedContext managedContext)
- Specified by:
setManagedContext
in interface SerializationServiceBuilder
setUseNativeByteOrder
public SerializationServiceBuilder setUseNativeByteOrder(boolean useNativeByteOrder)
- Specified by:
setUseNativeByteOrder
in interface SerializationServiceBuilder
setByteOrder
public SerializationServiceBuilder setByteOrder(ByteOrder byteOrder)
- Specified by:
setByteOrder
in interface SerializationServiceBuilder
setHazelcastInstance
public SerializationServiceBuilder setHazelcastInstance(HazelcastInstance hazelcastInstance)
- Specified by:
setHazelcastInstance
in interface SerializationServiceBuilder
setEnableCompression
public SerializationServiceBuilder setEnableCompression(boolean enableCompression)
- Specified by:
setEnableCompression
in interface SerializationServiceBuilder
setEnableSharedObject
public SerializationServiceBuilder setEnableSharedObject(boolean enableSharedObject)
- Specified by:
setEnableSharedObject
in interface SerializationServiceBuilder
setAllowUnsafe
public SerializationServiceBuilder setAllowUnsafe(boolean allowUnsafe)
- Specified by:
setAllowUnsafe
in interface SerializationServiceBuilder
setPartitioningStrategy
public SerializationServiceBuilder setPartitioningStrategy(PartitioningStrategy partitionStrategy)
- Specified by:
setPartitioningStrategy
in interface SerializationServiceBuilder
setInitialOutputBufferSize
public SerializationServiceBuilder setInitialOutputBufferSize(int initialOutputBufferSize)
- Specified by:
setInitialOutputBufferSize
in interface SerializationServiceBuilder
build
public SerializationService build()
- Specified by:
build
in interface SerializationServiceBuilder
createSerializationService
protected SerializationServiceImpl createSerializationService(InputOutputFactory inputOutputFactory)
createInputOutputFactory
protected InputOutputFactory createInputOutputFactory()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.