All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.src.config.retry.retry-strategy.d.ts Maven / Gradle / Ivy

The newest version!
import { Metadata, StatusObject } from '@grpc/grpc-js';
import { ClientMethodDefinition } from '@grpc/grpc-js/build/src/make-client';
export interface DeterminewhenToRetryRequestProps {
    grpcStatus: StatusObject;
    grpcRequest: ClientMethodDefinition;
    attemptNumber: number;
    requestMetadata: Metadata;
}
export interface RetryStrategy {
    responseDataReceivedTimeoutMillis?: number;
    determineWhenToRetryRequest(props: DeterminewhenToRetryRequestProps): number | null;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy