T- Type of the serialized/deserialized class
public interface CompactSerializer<T>
After defining a serializer for the objects of the class
T, it can be
registered using the
@Nonnull T read(@Nonnull CompactReader reader)
reader- reader to read fields of an object
HazelcastSerializationException- in case of failure to read
void write(@Nonnull CompactWriter writer, @Nonnull T object)
writer- CompactWriter to serialize the fields onto
object- to be serialized.
HazelcastSerializationException- in case of failure to write
If the class
T is ever evolved by adding or removing fields, the
type name for the evolved serializers must be the same with the initial
Copyright © 2022 Hazelcast, Inc.. All rights reserved.