跳到主要内容

Callback backoff options

These parameters define the callback backoff options.

services.CoAuthoring.callbackBackoffOptions.httpStatus

type: string | default: "429,500-599"

Defines the HTTP statuses of the callback backoff.

services.CoAuthoring.callbackBackoffOptions.retries

type: integer | default: 3

Defines the maximum amount of times to retry the operation.

services.CoAuthoring.callbackBackoffOptions.timeout

type: object

Defines the callback backoff timeouts.

services.CoAuthoring.callbackBackoffOptions.timeout.factor

type: integer | default: 2

Defines the exponential factor to use.

services.CoAuthoring.callbackBackoffOptions.timeout.maxTimeout

type: integer | default: 2147483647

Defines the maximum number of milliseconds between two retries.

services.CoAuthoring.callbackBackoffOptions.timeout.minTimeout

type: integer | default: 1000

Defines the number of milliseconds before starting the first try.

services.CoAuthoring.callbackBackoffOptions.timeout.randomize

type: boolean | default: false

Defines if the timeouts are randomized by multiplying with a factor between 1 and 2 or not.

Example

{
"services": {
"CoAuthoring": {
"callbackBackoffOptions": {
"retries": 3,
"timeout": {
"factor": 2,
"minTimeout": 1000,
"maxTimeout": 2147483647,
"randomize": false
},
"httpStatus": "429,500-599"
}
}
}
}