com.hazelcast.config
Class SerializerConfig

java.lang.Object
  extended by com.hazelcast.config.SerializerConfig

public class SerializerConfig
extends Object

Contains the serialization configuration for a particular class.


Constructor Summary
SerializerConfig()
           
 
Method Summary
 String getClassName()
           
 Serializer getImplementation()
           
 Class getTypeClass()
           
 String getTypeClassName()
           
 SerializerConfig setClass(Class<? extends Serializer> clazz)
           
 SerializerConfig setClassName(String className)
           
 SerializerConfig setImplementation(Serializer implementation)
          Sets the serializer implementation instance.
 SerializerConfig setTypeClass(Class typeClass)
           
 SerializerConfig setTypeClassName(String typeClassName)
          This method is called only if typeClass is not set.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializerConfig

public SerializerConfig()
Method Detail

getClassName

public String getClassName()
Returns:
class name of serializer implementation

setClass

public SerializerConfig setClass(Class<? extends Serializer> clazz)
Parameters:
clazz - set class of serializer implementation
Returns:
SerializerConfig

setClassName

public SerializerConfig setClassName(String className)
Parameters:
className - class name of serializer implementation
Returns:
SerializationConfig

getImplementation

public Serializer getImplementation()
Returns:
implementation of serializer class
See Also:
com.hazelcast.config.SerializerConfig#setImplementation(com.hazelcast.nio.serialization.Serializer)}

setImplementation

public SerializerConfig setImplementation(Serializer implementation)
Sets the serializer implementation instance.
Serializer must be instance of either StreamSerializer or ByteArraySerializer.

Parameters:
implementation - serializer instance
Returns:
SerializerConfig

getTypeClass

public Class getTypeClass()
Returns:
typeClass type of the class that will be serialized via this implementation
See Also:
com.hazelcast.config.SerializerConfig#setTypeClass(Class)}

setTypeClass

public SerializerConfig setTypeClass(Class typeClass)
Parameters:
typeClass - type of the class that will be serialized via this implementation
Returns:
SerializerConfig

getTypeClassName

public String getTypeClassName()
Returns:
typeClassName name of the class that will be serialized via this implementation
See Also:
com.hazelcast.config.SerializerConfig#setTypeClassName(String)}

setTypeClassName

public SerializerConfig setTypeClassName(String typeClassName)
This method is called only if typeClass is not set. If type class is not set class be tried to be loaded from class loader via given className in this method.

Parameters:
typeClassName - name of the class that will be serialized via this implementation
Returns:
SerializerConfig

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.