public void release(int sizeInByte) {
        if (this.disabled) {
            return;
        }
        if (this.pkgCntQuota == null) {
            this.pkgSizeKbQuota.release(
                    getSizeKbPermitsByBytes(sizeInByte));
        } else {
            if (this.pkgSizeKbQuota != null) {
                this.pkgSizeKbQuota.release(
                        getSizeKbPermitsByBytes(sizeInByte));
            }
            this.pkgCntQuota.release();
        }
    }
Package Cache Quota class

Used to manage the total number and byte size of ongoing requests.
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/PkgCacheQuota.java