@Override
    public long getCachedSize() {
        return this.cachedSize.get();
    }
Set FileSegment to readonly.

@param mutable mutable or immutable
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/msgstore/disk/FileSegment.java