Interface CompactSerializer<T>

    • Method Detail

      • read

        @Nonnull
        T read​(@Nonnull
               CompactReader reader)
        Parameters:
        reader - reader to read fields of an object
        Returns:
        the object created as a result of read method
        Throws:
        HazelcastSerializationException - in case of failure to read
      • write

        void write​(@Nonnull
                   CompactWriter writer,
                   @Nonnull
                   T object)
        Parameters:
        writer - CompactWriter to serialize the fields onto
        object - to be serialized.
        Throws:
        HazelcastSerializationException - in case of failure to write
      • getTypeName

        @Nonnull
        java.lang.String getTypeName()
        Returns the unique type name for the class CompactSerializer.

        If the class CompactSerializer is ever evolved by adding or removing fields, the type name for the evolved serializers must be the same with the initial version.

        Returns:
        the type name
      • getCompactClass

        @Nonnull
        java.lang.Class<T> getCompactClass()
        Returns:
        the class to be serialized with this serializer.