@Override
    public boolean containTime(long timestamp) {
        if (this.getCachedSize() == 0) {
            return this.mutable;
        }
        if (timestamp >= this.leftAppendTime.get()) {
            if (this.mutable) {
                return true;
            }
            return timestamp <= this.rightAppendTime.get();
        }
        return false;
    }
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