}
currentRecord.setMsgDrop(numMsgsDropped);
lastRecords.put(exchangeName, currentRecord);
writer.validateSetup(q);
writer.doWrite(q);
File file = new File(String.format("%s/%s-%s.json", outputPath, isQueue ? "queue": "topic", exchangeName));
FileChannel channel = new RandomAccessFile(file, "rw").getChannel();
try {
FileLock lock = channel.lock();