Package org.apache.ignite.binary
Interface BinarySerializer
- 
- All Known Implementing Classes:
- BinaryReflectiveSerializer
 
 public interface BinarySerializerInterface that allows to implement custom serialization logic for binary objects. Can be used instead ofBinarylizablein case if the class cannot be changed directly.Binary serializer can be configured for all binary objects via BinaryConfiguration.getSerializer()method, or for a specific binary type viaBinaryTypeConfiguration.getSerializer()method.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreadBinary(Object obj, BinaryReader reader)Reads fields from provided reader.voidwriteBinary(Object obj, BinaryWriter writer)Writes fields to provided writer.
 
- 
- 
- 
Method Detail- 
writeBinaryvoid writeBinary(Object obj, BinaryWriter writer) throws BinaryObjectException Writes fields to provided writer.- Parameters:
- obj- Empty object.
- writer- Binary object writer.
- Throws:
- BinaryObjectException- In case of error.
 
 - 
readBinaryvoid readBinary(Object obj, BinaryReader reader) throws BinaryObjectException Reads fields from provided reader.- Parameters:
- obj- Empty object
- reader- Binary object reader.
- Throws:
- BinaryObjectException- In case of error.
 
 
- 
 
-