HasRateLimits
trait HasRateLimits
Methods
Determine if this resource defines rate limits.
Resolve the admission policies for an operation.
Resolve the selected rate limiter store.
Determine if denied rate limits should be awaited.
Resolve the stable cooldown key for an operation.
Resolve the selected rate limiter store.
Determine if denied rate limits should be awaited.
Resolve the stable cooldown key for an operation.
Details
at line 21
final bool
usesRateLimits()
| internal |
Determine if this resource defines rate limits.
at line 32
final array
resolveRateLimitPolicies(PendingRequest $pendingRequest)
| internal |
Resolve the admission policies for an operation.
at line 42
final UnitEnum|string|null
resolveRateLimitStoreName()
| internal |
Resolve the selected rate limiter store.
at line 52
final bool
shouldWaitForRateLimits()
| internal |
Determine if denied rate limits should be awaited.
at line 62
final string
resolveRateLimitCooldownKeyFor(PendingRequest $pendingRequest)
| internal |
Resolve the stable cooldown key for an operation.
at line 72
final int|null
resolveRateLimitCooldownFor(Response $response)
| internal |
Resolve the cooldown imposed by a response.
at line 82
abstract protected array
resolveRateLimits(PendingRequest $pendingRequest)
Resolve the admission policies for an operation.
at line 87
protected UnitEnum|string|null
resolveRateLimitStore()
Resolve the selected rate limiter store.
at line 95
protected bool
waitForRateLimits()
Determine if denied rate limits should be awaited.
at line 103
protected string
resolveRateLimitCooldownKey(PendingRequest $pendingRequest)
Resolve the stable cooldown key for an operation.
at line 114
protected int|null
resolveRateLimitCooldown(Response $response)
Resolve the cooldown imposed by a response.
Override this method to support a provider-specific response format or enforce a maximum duration defined by the provider.