public Tuple2<Integer, Integer> getFactoryAvailQuota() {
        if (senderFactory == null || globalCacheQuota == null) {
            return PkgCacheQuota.DISABLE_RET;
        }
        return globalCacheQuota.getPkgCacheAvailQuota();
    }
Base Sender class:

Used to manage Sender metadata information, including Sender ID,
 status, network interaction, metadata query object, and
 Proxy node metadata information obtained from Manager, etc.
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/sender/BaseSender.java