Rocky_Mountain_Vending/.pnpm-store/v10/files/47/c9fc4549395c7c21eba523f9cc98fc1684738450af3da2e14e8f7be089d520f1d4c6662dd40b75c6f8510b6f218145709acd9a30abc22ee39fc5e9fcbc890a
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.3 KiB
Text

import type { Provider, RetryErrorInfo, RetryStrategyV2, RetryToken, StandardRetryToken } from "@smithy/types";
import type { 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;
}