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) throws IOException
in
- reader to read fields of an objectIOException
- in case of failure to readvoid write(@Nonnull CompactWriter out, @Nonnull T object) throws IOException
out
- CompactWriter to serialize the fields ontoobject
- to be serialized.IOException
- in case of failure to writeCopyright © 2023 Hazelcast, Inc.. All rights reserved.