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

package.dist.src.config.retry.no-retry-strategy.js Maven / Gradle / Ivy

The newest version!
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoRetryStrategy = void 0;
class NoRetryStrategy {
    constructor(props) {
        this.logger = props.loggerFactory.getLogger(this);
    }
    determineWhenToRetryRequest(props) {
        this.logger.debug(`Using no-retry strategy, therefore not retrying request; status code: ${props.grpcStatus.code}, request type: ${props.grpcRequest.path}, attemptNumber: ${props.attemptNumber}`);
        // null means do not retry
        return null;
    }
}
exports.NoRetryStrategy = NoRetryStrategy;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm8tcmV0cnktc3RyYXRlZ3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL3JldHJ5L25vLXJldHJ5LXN0cmF0ZWd5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQVVBLE1BQWEsZUFBZTtJQUcxQixZQUFZLEtBQTJCO1FBQ3JDLElBQUksQ0FBQyxNQUFNLEdBQUcsS0FBSyxDQUFDLGFBQWEsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDcEQsQ0FBQztJQUVELDJCQUEyQixDQUN6QixLQUF1QztRQUV2QyxJQUFJLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FDZix5RUFBeUUsS0FBSyxDQUFDLFVBQVUsQ0FBQyxJQUFJLG1CQUFtQixLQUFLLENBQUMsV0FBVyxDQUFDLElBQUksb0JBQW9CLEtBQUssQ0FBQyxhQUFhLEVBQUUsQ0FDakwsQ0FBQztRQUNGLDBCQUEwQjtRQUMxQixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7Q0FDRjtBQWhCRCwwQ0FnQkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBEZXRlcm1pbmV3aGVuVG9SZXRyeVJ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