T - Type of the serialized/deserialized class@Beta public interface CompactSerializer<T>
After defining a serializer for the objects of the class T,
it can be registered using the CompactSerializationConfig.
write(CompactWriter, Object) and read(CompactReader) methods
must be consistent with each other.
| Modifier and Type | Method and Description |
|---|---|
T |
read(CompactReader in) |
void |
write(CompactWriter out,
T object) |
@Nonnull T read(@Nonnull CompactReader in)
in - reader to read fields of an objectHazelcastSerializationException - in case of failure to readvoid write(@Nonnull CompactWriter out, @Nonnull T object)
out - CompactWriter to serialize the fields ontoobject - to be serialized.HazelcastSerializationException - in case of failure to writeCopyright © 2022 Hazelcast, Inc.. All rights reserved.