package.dist.src.config.retry.fixed-timeout-retry-strategy.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
The newest version!
import { DeterminewhenToRetryRequestProps, RetryStrategy } from './retry-strategy';
import { EligibilityStrategy } from './eligibility-strategy';
import { MomentoLoggerFactory } from '../..';
export interface FixedTimeoutRetryStrategyProps {
loggerFactory: MomentoLoggerFactory;
eligibilityStrategy?: EligibilityStrategy;
retryDelayIntervalMillis?: number;
responseDataReceivedTimeoutMillis?: number;
}
export declare class FixedTimeoutRetryStrategy implements RetryStrategy {
private readonly logger;
private readonly eligibilityStrategy;
private readonly retryDelayIntervalMillis;
readonly responseDataReceivedTimeoutMillis: number;
constructor(props: FixedTimeoutRetryStrategyProps);
determineWhenToRetryRequest(props: DeterminewhenToRetryRequestProps): number | null;
}