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
write(CompactWriter, Object) and
methods must be consistent with each other.
|Modifier and Type||Method and Description|
Returns the unique type name for the class
@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
@Nonnull String getTypeName()
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.