com.hazelcast.config

## Class SerializerConfig

- java.lang.Object
- - com.hazelcast.config.SerializerConfig

-     public class SerializerConfig
      extends Object

  Contains the serialization configuration for a particular class.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SerializerConfig()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getClassName()` Returns the class name of the serializer implementation.
    `Serializer` | `getImplementation()` Returns the implementation of the serializer class.
    `Class` | `getTypeClass()` Gets the type of the class that will be serialized via this implementation.
    `String` | `getTypeClassName()` Gets the name of the class that will be serialized via this implementation.
    `int` | `hashCode()`
    `SerializerConfig` | `setClass(Class<? extends Serializer> clazz)` Sets the class of the serializer implementation.
    `SerializerConfig` | `setClassName(String className)` Sets the class name of the serializer implementation.
    `SerializerConfig` | `setImplementation(Serializer implementation)` Sets the serializer implementation instance.
    `SerializerConfig` | `setTypeClass(Class typeClass)` Sets the type of the class that will be serialized via this implementation.
    `SerializerConfig` | `setTypeClassName(String typeClassName)` This method is called only if typeClass is not set.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SerializerConfig

          public SerializerConfig()

  - ### Method Detail

    - #### getClassName

          public String getClassName()

      Returns the class name of the serializer implementation.
      Returns:
        the class name of serializer implementation

    - #### setClass

          public SerializerConfig setClass(Class<? extends Serializer> clazz)

      Sets the class of the serializer implementation.
      Parameters:
        `clazz` - the set class of the serializer implementation
      Returns:
        SerializerConfig

    - #### setClassName

          public SerializerConfig setClassName(String className)

      Sets the class name of the serializer implementation.
      Parameters:
        `className` - the class name of the serializer implementation
      Returns:
        SerializationConfig

    - #### getImplementation

          public Serializer getImplementation()

      Returns the implementation of the serializer class.
      Returns:
        the implementation of the 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` - the serializer instance
      Returns:
        SerializerConfig

    - #### getTypeClass

          public Class 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
      See Also:
        `com.hazelcast.config.SerializerConfig#setTypeClass(Class)}`

    - #### setTypeClass

          public SerializerConfig setTypeClass(Class typeClass)

      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

          public String 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
      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 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

          public final boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public final int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2018. All rights reserved.