BackoffRetryPolicy

class oci.ons.models.BackoffRetryPolicy(**kwargs)

Bases: object

The backoff retry portion of the subscription delivery policy. For information about retry durations for subscriptions, see How Notifications Works.

Attributes:

POLICY_TYPE_EXPONENTIAL

A constant which can be used with the policy_type property of a BackoffRetryPolicy.

max_retry_duration

[Required] Gets the max_retry_duration of this BackoffRetryPolicy.

policy_type

[Required] Gets the policy_type of this BackoffRetryPolicy.

Methods:

__init__(**kwargs)

Initializes a new BackoffRetryPolicy object with values from keyword arguments.

POLICY_TYPE_EXPONENTIAL = 'EXPONENTIAL'

A constant which can be used with the policy_type property of a BackoffRetryPolicy. This constant has a value of “EXPONENTIAL”

__init__(**kwargs)

Initializes a new BackoffRetryPolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • max_retry_duration (int) – The value to assign to the max_retry_duration property of this BackoffRetryPolicy.

  • policy_type (str) – The value to assign to the policy_type property of this BackoffRetryPolicy. Allowed values for this property are: “EXPONENTIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property max_retry_duration

[Required] Gets the max_retry_duration of this BackoffRetryPolicy. The maximum retry duration in milliseconds. Default value is 7200000 (2 hours).

Returns

The max_retry_duration of this BackoffRetryPolicy.

Return type

int

property policy_type

[Required] Gets the policy_type of this BackoffRetryPolicy. The type of delivery policy.

Allowed values for this property are: “EXPONENTIAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The policy_type of this BackoffRetryPolicy.

Return type

str