Interface that specifies the retry behavior

interface RetryStrategy {
    mode?: string;
    retry: (<Input, Output>(next, args) => Promise<FinalizeHandlerOutput<Output>>);
}

Properties

Properties

mode?: string

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

retry: (<Input, Output>(next, args) => 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.

Type declaration