DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Message#writeToMessageWriter, Message#readFrom MessageReader logic is depends on a remote IgniteProductVersion.Message#writeTo, Message#readFrom is auto-generated and stored separately from Message DTO classes.Message fields contain:MessageJdkMarshaller@Since, @Until annotations for Message classes and fields....
Message - is base class for all messages transported between nodes. Proposed changes:
Message#writeTo consumes IgniteProductVersion MessageWriter that stores IgniteProduceVersion of destination node and use it for serializing data for this version (mostly, for ignoring some fields).Message#readFrom consumes MessageReader that stores IgniteProductVersion of source node and use it for deserializing data (mostly, for setting default values of new fields).
| Code Block | ||||
|---|---|---|---|---|
| ||||
public interface Message {
public boolean writeTo(ByteBuffer buf, MessageWriter writer, IgniteProductVersion destVer);
public boolean readFrom(ByteBuffer buf, MessageReader reader, IgniteProductVersion srcVer);
public short directType();
} |
@Since and @Until for Message classes and Message fields, to use it for generating code for Message#writeTo and Message#readFrom:...