public boolean shutdown(final long intervalForcibly, final boolean isDestroy) {
        shutdown(intervalForcibly);
        if (isCleanupOver()) {
            try {
                if (isDestroy) {
                    return FileUtils.deleteQuietly(this.file);
                }
                return true;
            } catch (final Throwable t) {
                LOG.error("Close file channel failed, {}", getFilePath(), t);
                throw new RuntimeException(t);
            }
        }
        return false;
    }
Flush data to disk
@return The current flushed position
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/file/AbstractFile.java