com.hazelcast.nio.serialization
Class DefaultSerializationServiceBuilder

java.lang.Object
  extended by com.hazelcast.nio.serialization.DefaultSerializationServiceBuilder
All Implemented Interfaces:
SerializationServiceBuilder

public class DefaultSerializationServiceBuilder
extends Object
implements SerializationServiceBuilder


Field Summary
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  boolean useNativeByteOrder
           
protected  int version
           
 
Constructor Summary
DefaultSerializationServiceBuilder()
           
 
Method Summary
 SerializationServiceBuilder addClassDefinition(ClassDefinition cd)
           
 SerializationServiceBuilder addDataSerializableFactory(int id, DataSerializableFactory factory)
           
 SerializationServiceBuilder addPortableFactory(int id, PortableFactory factory)
           
 SerializationService build()
           
protected  InputOutputFactory createInputOutputFactory()
           
protected  SerializationServiceImpl createSerializationService(InputOutputFactory inputOutputFactory)
           
 SerializationServiceBuilder setAllowUnsafe(boolean allowUnsafe)
           
 SerializationServiceBuilder setByteOrder(ByteOrder byteOrder)
           
 SerializationServiceBuilder setCheckClassDefErrors(boolean checkClassDefErrors)
           
 SerializationServiceBuilder setClassLoader(ClassLoader classLoader)
           
 SerializationServiceBuilder setConfig(SerializationConfig config)
           
 SerializationServiceBuilder setEnableCompression(boolean enableCompression)
           
 SerializationServiceBuilder setEnableSharedObject(boolean enableSharedObject)
           
 SerializationServiceBuilder setHazelcastInstance(HazelcastInstance hazelcastInstance)
           
 SerializationServiceBuilder setInitialOutputBufferSize(int initialOutputBufferSize)
           
 SerializationServiceBuilder setManagedContext(ManagedContext managedContext)
           
 SerializationServiceBuilder setPartitioningStrategy(PartitioningStrategy partitionStrategy)
           
 SerializationServiceBuilder setUseNativeByteOrder(boolean useNativeByteOrder)
           
 SerializationServiceBuilder setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultSerializationServiceBuilder

public DefaultSerializationServiceBuilder()
Method Detail

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.