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 ClassNameFilter |
classNameFilter |
protected SerializationConfig |
config |
protected Map<Integer,DataSerializableFactory> |
dataSerializableFactories |
protected boolean |
enableCompression |
protected boolean |
enableSharedObject |
protected HazelcastInstance |
hazelcastInstance |
protected int |
initialOutputBufferSize |
protected ManagedContext |
managedContext |
protected Supplier<RuntimeException> |
notActiveExceptionSupplier |
protected PartitioningStrategy |
partitioningStrategy |
protected Map<Integer,PortableFactory> |
portableFactories |
protected int |
portableVersion |
protected boolean |
useNativeByteOrder |
protected byte |
version |
Constructor and Description |
---|
DefaultSerializationServiceBuilder() |
protected final Map<Integer,DataSerializableFactory> dataSerializableFactories
protected final Map<Integer,PortableFactory> portableFactories
protected final Set<ClassDefinition> classDefinitions
protected ClassLoader classLoader
protected SerializationConfig config
protected byte version
protected int portableVersion
protected boolean checkClassDefErrors
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
protected Supplier<RuntimeException> notActiveExceptionSupplier
protected ClassNameFilter classNameFilter
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 setNotActiveExceptionSupplier(Supplier<RuntimeException> notActiveExceptionSupplier)
setNotActiveExceptionSupplier
in interface SerializationServiceBuilder
public SerializationServiceBuilder setInitialOutputBufferSize(int initialOutputBufferSize)
setInitialOutputBufferSize
in interface SerializationServiceBuilder
public InternalSerializationService build()
build
in interface SerializationServiceBuilder
protected InternalSerializationService createSerializationService(InputOutputFactory inputOutputFactory, Supplier<RuntimeException> notActiveExceptionSupplier)
protected InputOutputFactory createInputOutputFactory()
protected void overrideByteOrder()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.