# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::TaskRetryPolicy (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::TaskRetryPolicy.

Task Retry Policy is implemented on a best-effort
basis.
Retry delay will be exponential based on provided minimum and maximum
backoffs. <https://en.wikipedia.org/wiki/Exponential_backoff>.
Note that the delay between consecutive task restarts may not always
precisely match the configured settings. This can happen when the
ConnectCluster is in rebalancing state or if the ConnectCluster is
unresponsive etc. The default values for minimum and maximum backoffs are
60 seconds and 30 minutes respectively.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #maximum_backoff

    def maximum_backoff() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Duration)) --- Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.

### #maximum_backoff=

    def maximum_backoff=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Duration)) --- Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Duration)) --- Optional. The maximum amount of time to wait before retrying a failed task. This sets an upper bound for the backoff delay.

### #minimum_backoff

    def minimum_backoff() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Duration)) --- Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.

### #minimum_backoff=

    def minimum_backoff=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Duration)) --- Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Duration)) --- Optional. The minimum amount of time to wait before retrying a failed task. This sets a lower bound for the backoff delay.