+
     Ii  c                   s&    R t ^ RIt ! R R4      tR# )zRetry quota implementation.Nc                   sN   a  ] tR t^t o Rt]R3R ltR tR t]R 4       t	Rt
V tR# )
RetryQuotai  Nc                s\    Wn         Wn        Vf   \        P                  ! 4       pW n        R # N)_max_capacity_available_capacity	threadingZLock_lock)selfZinitial_capacityZlocks   &&&;/usr/lib/python3.14/site-packages/botocore/retries/quota.py__init__ZRetryQuota.__init__	   s$    -#3 <>>#D
    c                s    V P                   ;_uu_ 4        WP                  8  d    RRR4       R# V ;P                  V,          un         RRR4       R#   + '       g   i     R# ; i)zAttempt to aquire a certain amount of capacity.

If there's not sufficient amount of capacity available, ``False``
is returned.  Otherwise, ``True`` is returned, which indicates that
capacity was successfully allocated.

NFT)r   r   )r   capacity_amounts   &&r   acquireZRetryQuota.acquire   sE     ZZZ!9!99 Z $$7$	 ZZZs   AAA&	c                s"   V P                   V P                  8X  d   R# V P                  ;_uu_ 4        \        V P                   V P                  ,
          V4      pV ;P                  V,          un        RRR4       R#   + '       g   i     R# ; i)zRelease capacity back to the retry quota.

The capacity being released will be truncated if necessary
to ensure the max capacity is never exceeded.

N)r   r   r   Zmin)r   r
   Zamounts   && r   releaseZRetryQuota.release    sc     !9!99ZZZ""T%=%==F $$.$	 ZZZs   AA==B	c                s    V P                   # r   )r   )r   s   &r   available_capacityZRetryQuota.available_capacity4   s    '''r	   )r   r   r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__ZINITIAL_CAPACITYr   r   r   Zpropertyr   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r    r       s3     (8t  /( ( (r	   r    )Z__doc__r   r    ) r	   r   <module>r      s    ! 0( 0(r	   