3 import java.nio.ByteBuffer;
5 class LastMessage extends Entry {
6 private long machineid;
9 LastMessage(long _machineid, long _seqnum) {
14 static Entry decode(ByteBuffer bb) {
15 long machineid=bb.getLong();
16 long seqnum=bb.getLong();
17 return new LastMessage(machineid, seqnum);
20 void encode(ByteBuffer bb) {
21 bb.put(Entry.TypeLastMessage);
22 bb.putLong(machineid);
27 return 2*Long.BYTES+Byte.BYTES;
31 return Entry.TypeLastMessage;