protected int getReadIndex() {
        return Math.abs((writeIndex.get() - 1) % 2);
    }
Gets the read index

@return the read block index
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/metrics/stats/AbsStatsDaemon.java