# Google Cloud Managed Kafka V1 Client - Class TaskRetryPolicy (0.8.0)

0.8.0 (latest) 0.7.2 0.6.1 0.5.0 0.4.1 0.3.1 0.2.3 0.1.3 Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class 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.

Generated from protobuf message `google.cloud.managedkafka.v1.TaskRetryPolicy`

## Namespace

Google \\ Cloud \\ ManagedKafka \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ minimum_backoff` | `https://protobuf.dev/reference/php/api-docs/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. |
| `↳ maximum_backoff` | `https://protobuf.dev/reference/php/api-docs/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. |

### getMinimumBackoff

Optional. The minimum amount of time to wait before retrying a failed task.

This sets a lower bound for the backoff delay.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMinimumBackoff

### clearMinimumBackoff

### setMinimumBackoff

Optional. The minimum amount of time to wait before retrying a failed task.

This sets a lower bound for the backoff delay.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaximumBackoff

Optional. The maximum amount of time to wait before retrying a failed task.

This sets an upper bound for the backoff delay.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMaximumBackoff

### clearMaximumBackoff

### setMaximumBackoff

Optional. The maximum amount of time to wait before retrying a failed task.

This sets an upper bound for the backoff delay.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |