Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericRetrier

Hierarchy

  • GenericRetrier

Constructors

constructor

Properties

Private _logger

_logger: Logger = (undefined as unknown) as Logger

Private _retryConfiguration

_retryConfiguration: RetryConfigurationDetails

Static Private DEFAULT_RETRY_MAXIMUM_DELAY_IN_SECONDS

DEFAULT_RETRY_MAXIMUM_DELAY_IN_SECONDS: number = 30

Static Private DEFAULT_RETRY_MAXIMUM_NUMBER_OF_ATTEMPTS

DEFAULT_RETRY_MAXIMUM_NUMBER_OF_ATTEMPTS: number = 8

Static Private DefaultRetryConfiguration

DefaultRetryConfiguration: RetryConfigurationDetails = process.env[GenericRetrier.OCI_SDK_DEFAULT_RETRY_ENABLED] === BooleanString.FALSE? NoRetryConfigurationDetails: {terminationStrategy: new MaxAttemptsTerminationStrategy(GenericRetrier.DEFAULT_RETRY_MAXIMUM_NUMBER_OF_ATTEMPTS),delayStrategy: new ExponentialBackoffDelayStrategyWithJitter(GenericRetrier.DEFAULT_RETRY_MAXIMUM_DELAY_IN_SECONDS),retryCondition: DefaultRetryCondition.shouldBeRetried,backupBinaryBody: false}

Static Private OCI_SDK_DEFAULT_RETRY_ENABLED

OCI_SDK_DEFAULT_RETRY_ENABLED: string = "OCI_SDK_DEFAULT_RETRY_ENABLED"

Static Private OPC_CLIENT_RETRIES_HEADER

OPC_CLIENT_RETRIES_HEADER: string = "opc-client-retries"

Accessors

backUpBinaryBody

  • get backUpBinaryBody(): boolean

logger

  • set logger(logger: Logger): void

retryConfiguration

Static defaultRetryConfiguration

Methods

Private addOpcClientRetryHeader

makeServiceCall

  • makeServiceCall(httpClient: HttpClient, request: HttpRequest, excludeBody?: undefined | false | true): Promise<Response>

Static createPreferredRetrier

Static Private isRequestRetryable

  • isRequestRetryable(request: HttpRequest): undefined | false | true

Static Private isRetryableStream

  • isRetryableStream(obj: any): boolean

Static Private refreshRequest