@Override
    public boolean needDelete() {
        return (expired.get() && (System.currentTimeMillis() - expiredTime > 120000));
    }
Flush file cache to disk.

@param force whether to brush
@return the latest writable position

@throws IOException exception while force data to disk
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/msgstore/disk/FileSegment.java