@Override
public void enqueue(byte[] data) throws IOException {
String name = System.currentTimeMillis() + "_" + UUID.randomUUID().toString();
try (TempFile tempFile = new TempFile(new File(tmpDir, name))) {
Files.write(data, tempFile.getFile());
tempFile.renameTo(new File(queueDir, name));
}
}