3 if (slot && slot instanceof Slot) {
6 this.TypeLastmessage = 2;
7 this.TypeRejectedMessage = 3;
8 this.TypeTableStatus = 4;
9 this.liveStatus = true;
10 this.parentslot = slot;
14 static decode(slot, bytebuffer) {
15 if (slot instanceof Slot && bytebuffer instanceof ByteBuffer) {
16 var type = bytebuffer.readByte();
18 case this.TypeKeyValue:
19 return KeyValue.decode(slot, bytebuffer);
20 case this.TypeLastmessage:
21 return LastMessage.decode(slot, bytebuffer);
22 case this.TypeRejectedMessage:
23 return RejectedMessage.decode(slot, bytebuffer);
24 case this.TypeTableStatus:
25 return TableStatus.decode(slot, bytebuffer);
27 throw new Error("Unrecognized Entry Type: " + type);
32 return this.liveStatus;
35 this.liveStatus = false;
36 parentslot.decrementLiveCount();
50 if(slot && slot instanceof Slot){