class Aws::Plugins::Retries::RetryQuota
def release(capacity_amount)
the last retry. It can either be RETRY_COST, TIMEOUT_RETRY_COST,
capacity_amount refers to the amount of capacity requested from
def release(capacity_amount) # Implementation note: The release() method is called for # every API call. In the common case where the request is # successful and we're at full capacity, we can avoid locking. # We can't exceed max capacity so there's no work we have to do. return if @available_capacity == @max_capacity @mutex.synchronize do @available_capacity += capacity_amount || NO_RETRY_INCREMENT @available_capacity = [@available_capacity, @max_capacity].min end end