Ejemplo n.º 1
0
 @Override
 public boolean visitLabelTokenCommand(Command.LabelTokenCommand command) throws IOException {
   LabelTokenRecord record = command.getRecord();
   // id+in_use(byte)+type_blockId(int)+nr_type_records(int)
   byte inUse = record.inUse() ? Record.IN_USE.byteValue() : Record.NOT_IN_USE.byteValue();
   channel.put(NeoCommandType.LABEL_KEY_COMMAND);
   channel.putInt(record.getId()).put(inUse).putInt(record.getNameId());
   writeDynamicRecords(record.getNameRecords());
   return false;
 }