class TableStatus extends Entry {
int maxslots;
- TableStatus(int _maxslots) {
+ TableStatus(Slot slot, int _maxslots) {
+ super(slot);
maxslots=_maxslots;
}
- static Entry decode(ByteBuffer bb) {
+ static Entry decode(Slot slot, ByteBuffer bb) {
int maxslots=bb.getInt();
- return new TableStatus(maxslots);
+ return new TableStatus(slot, maxslots);
}
void encode(ByteBuffer bb) {
int getSize() {
return Integer.BYTES+Byte.BYTES;
}
+
+ byte getType() {
+ return Entry.TypeTableStatus;
+ }
}