class WriteAheadFlowFileRepository implements FlowFileRepository, SyncListener {

    private void deleteRecursively(final File dir) {
        final File[] children = dir.listFiles();

        if (children != null) {
            for (final File child : children) {
                final boolean deleted = child.delete();
                if (!deleted) {
                    logger.warn("Failed to delete old file {}; this file should be cleaned up manually", child);
                }
            }
        }

        if (!dir.delete()) {
            logger.warn("Failed to delete old directory {}; this directory should be cleaned up manually", dir);
        }
    }

    public  WriteAheadFlowFileRepository();
    public  WriteAheadFlowFileRepository(final NiFiProperties nifiProperties);

}