protected int getWriteIndex() {
        return Math.abs(writeIndex.get() % 2);
    }
Get the writable index

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