8 * This Entry records the last message sent by a given machine.
9 * @author Brian Demsky <bdemsky@uci.edu>
13 class LastMessage : public Entry {
19 LastMessage(Slot *slot, int64_t _machineid, int64_t _seqnum) :
21 machineid(_machineid),
24 int64_t getMachineID() { return machineid; }
25 int64_t getSequenceNumber() { return seqnum; }
26 void encode(ByteBuffer *bb);
27 int getSize() { return 2 * sizeof(int64_t) + sizeof(char); }
28 char getType() { return TypeLastMessage; }
29 Entry *getCopy(Slot *s) { return new LastMessage(s, machineid, seqnum); }
32 Entry *LastMessage_decode(Slot *slot, ByteBuffer *bb);