ts-lambda-api - v2.5.2
    Preparing search index...

    Interface RetryStrategy

    Interface that specifies the retry behavior

    interface RetryStrategy {
        mode?: string;
        retry: <Input extends object, Output extends MetadataBearer>(
            next: FinalizeHandler<Input, Output>,
            args: FinalizeHandlerArguments<Input>,
        ) => Promise<FinalizeHandlerOutput<Output>>;
    }
    Index

    Properties

    Properties

    mode?: string

    The retry mode describing how the retry strategy control the traffic flow.

    retry: <Input extends object, Output extends MetadataBearer>(
        next: FinalizeHandler<Input, Output>,
        args: FinalizeHandlerArguments<Input>,
    ) => Promise<FinalizeHandlerOutput<Output>>

    the retry behavior the will invoke the next handler and handle the retry accordingly. This function should also update the $metadata from the response accordingly.