public Tuple2<Integer, Integer> getPkgCacheAvailQuota() {
        if (this.disabled) {
            return DISABLE_RET;
        }
        int cntAvailable = SdkConsts.UNDEFINED_VALUE;
        if (this.pkgCntQuota != null) {
            cntAvailable = this.pkgCntQuota.availablePermits();
        }
        int sizeAvailable = SdkConsts.UNDEFINED_VALUE;
        if (this.pkgSizeKbQuota != null) {
            sizeAvailable = this.pkgSizeKbQuota.availablePermits();
        }
        return new Tuple2<>(cntAvailable, sizeAvailable);
    }
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