Package com.hazelcast.config
Class SerializerConfig
java.lang.Object
com.hazelcast.config.SerializerConfig
Contains the serialization configuration for a particular class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returns the class name of the serializer implementation.Returns the implementation of the serializer class.Gets the type of the class that will be serialized via this implementation.Gets the name of the class that will be serialized via this implementation.final int
hashCode()
setClass
(Class<? extends Serializer> clazz) Sets the class of the serializer implementation.setClassName
(String className) Sets the class name of the serializer implementation.setImplementation
(Serializer implementation) Sets the serializer implementation instance.setTypeClass
(Class typeClass) Sets the type of the class that will be serialized via this implementation.setTypeClassName
(String typeClassName) This method is called only if typeClass is not set.toString()
-
Constructor Details
-
SerializerConfig
public SerializerConfig() -
SerializerConfig
-
-
Method Details
-
getClassName
Returns the class name of the serializer implementation.- Returns:
- the class name of serializer implementation
-
setClass
Sets the class of the serializer implementation.- Parameters:
clazz
- the set class of the serializer implementation- Returns:
- SerializerConfig
-
setClassName
Sets the class name of the serializer implementation.- Parameters:
className
- the class name of the serializer implementation- Returns:
- SerializationConfig
-
getImplementation
Returns the implementation of the serializer class.- Returns:
- the implementation of the serializer class SerializerConfig#setImplementation(Serializer)
-
setImplementation
Sets the serializer implementation instance.
Serializer must be the instance of eitherStreamSerializer
orByteArraySerializer
.- Parameters:
implementation
- the serializer instance- Returns:
- SerializerConfig
-
getTypeClass
Gets the type of the class that will be serialized via this implementation.- Returns:
- typeClass type of the class that will be serialized via this implementation SerializerConfig#setTypeClass(Class)
-
setTypeClass
Sets the type of the class that will be serialized via this implementation.- Parameters:
typeClass
- type of the class that will be serialized via this implementation- Returns:
- SerializerConfig
-
getTypeClassName
Gets the name of the class that will be serialized via this implementation.- Returns:
- typeClassName name of the class that will be serialized via this implementation SerializerConfig#setTypeClassName(String)
-
setTypeClassName
This method is called only if typeClass is not set. If type class is not set, class will try to be loaded from class loader via given className using this method.- Parameters:
typeClassName
- name of the class that will be serialized via this implementation- Returns:
- SerializerConfig
-
equals
-
hashCode
public final int hashCode() -
toString
-