Skip to content

/AWS1/CL_APMGRPCRETRYPOLICY

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout. Both server-error and gateway-error under httpRetryEvents include the Envoy reset policy. For more information on the reset policy, see the Envoy documentation.

CONSTRUCTOR

IMPORTING

Required arguments:

io_perretrytimeout TYPE REF TO /AWS1/CL_APMDURATION /AWS1/CL_APMDURATION

The timeout for each retry attempt.

iv_maxretries TYPE /AWS1/APMMAXRETRIES /AWS1/APMMAXRETRIES

The maximum number of retry attempts.

Optional arguments:

it_httpretryevents TYPE /AWS1/CL_APMHTTPRETRYPLYEVTS_W=>TT_HTTPRETRYPOLICYEVENTS TT_HTTPRETRYPOLICYEVENTS

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

it_tcpretryevents TYPE /AWS1/CL_APMTCPRETRYPLYEVTS_W=>TT_TCPRETRYPOLICYEVENTS TT_TCPRETRYPOLICYEVENTS

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

it_grpcretryevents TYPE /AWS1/CL_APMGRPCRETRYPLYEVTS_W=>TT_GRPCRETRYPOLICYEVENTS TT_GRPCRETRYPOLICYEVENTS

Specify at least one of the valid values.


Queryable Attributes

perRetryTimeout

The timeout for each retry attempt.

Accessible with the following methods

Method Description
GET_PERRETRYTIMEOUT() Getter for PERRETRYTIMEOUT

maxRetries

The maximum number of retry attempts.

Accessible with the following methods

Method Description
GET_MAXRETRIES() Getter for MAXRETRIES, with configurable default
ASK_MAXRETRIES() Getter for MAXRETRIES w/ exceptions if field has no value
HAS_MAXRETRIES() Determine if MAXRETRIES has a value

httpRetryEvents

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Accessible with the following methods

Method Description
GET_HTTPRETRYEVENTS() Getter for HTTPRETRYEVENTS, with configurable default
ASK_HTTPRETRYEVENTS() Getter for HTTPRETRYEVENTS w/ exceptions if field has no val
HAS_HTTPRETRYEVENTS() Determine if HTTPRETRYEVENTS has a value

tcpRetryEvents

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Accessible with the following methods

Method Description
GET_TCPRETRYEVENTS() Getter for TCPRETRYEVENTS, with configurable default
ASK_TCPRETRYEVENTS() Getter for TCPRETRYEVENTS w/ exceptions if field has no valu
HAS_TCPRETRYEVENTS() Determine if TCPRETRYEVENTS has a value

grpcRetryEvents

Specify at least one of the valid values.

Accessible with the following methods

Method Description
GET_GRPCRETRYEVENTS() Getter for GRPCRETRYEVENTS, with configurable default
ASK_GRPCRETRYEVENTS() Getter for GRPCRETRYEVENTS w/ exceptions if field has no val
HAS_GRPCRETRYEVENTS() Determine if GRPCRETRYEVENTS has a value