public File file() {
        return file;
    }
A file lock a la flock/funlock

The given path will be created and opened if it doesn't exist.
server-common/src/main/java/org/apache/kafka/server/util/FileLock.java