Rocky_Mountain_Vending/.pnpm-store/v10/files/80/34c6c2184e49f8e91b027fdc73e43e0590a8ddea1560d003f133108f107cd023787a263e0524e4116e9ec871d7a0cce68ebbb95bcb7fc5e8501541a115c54a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

33 lines
1.4 KiB
Text

import { Provider, RetryErrorInfo, RetryStrategyV2, RetryToken, StandardRetryToken } from "@smithy/types";
import { RateLimiter } from "./types";
/**
* @public
*
* Strategy options to be passed to AdaptiveRetryStrategy
*/
export interface AdaptiveRetryStrategyOptions {
rateLimiter?: RateLimiter;
}
/**
* @public
*
* The AdaptiveRetryStrategy is a retry strategy for executing against a very
* resource constrained set of resources. Care should be taken when using this
* retry strategy. By default, it uses a dynamic backoff delay based on load
* currently perceived against the downstream resource and performs circuit
* breaking to disable retries in the event of high downstream failures using
* the DefaultRateLimiter.
*
* @see {@link StandardRetryStrategy}
* @see {@link DefaultRateLimiter }
*/
export declare class AdaptiveRetryStrategy implements RetryStrategyV2 {
private readonly maxAttemptsProvider;
private rateLimiter;
private standardRetryStrategy;
readonly mode: string;
constructor(maxAttemptsProvider: Provider<number>, options?: AdaptiveRetryStrategyOptions);
acquireInitialRetryToken(retryTokenScope: string): Promise<RetryToken>;
refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<RetryToken>;
recordSuccess(token: StandardRetryToken): void;
}