3.8.0-rc 3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.14.0 2.13.0 2.12.0 2.11.0 Define the interface for controlling how the Bigtable client retries RPC operations.
The C++ client for Bigtable needs to hide partial and temporary failures from the application. However, we need to give the users enough flexibility to control how many attempts are made to reissue operations, how often these attempts are executed, and how to signal that an error has occurred.

The application provides an instance of this class when the [Table](https://docs.cloud.google.com/cpp/docs/reference/bigtable/latest/classgoogle_1_1cloud_1_1bigtable_1_1Table) (or TableAdmin) object is created. This instance serves as a prototype to create new [RPCRetryPolicy](https://docs.cloud.google.com/cpp/docs/reference/bigtable/latest/classgoogle_1_1cloud_1_1bigtable_1_1RPCRetryPolicy) objects of the same (dynamic) type and with the same initial state.

## Functions

### clone() const

Return a new copy of this object.
Typically implemented as

    return std::unique_ptr<RPCRetryPolicy>(new Foo(*this));

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::unique_ptr< RPCRetryPolicy >` |   |

### Setup(grpc::ClientContext \&) const

Update the ClientContext for the next call.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `context` | `grpc::ClientContext &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `void` |   |

### OnFailure(Status const \&)

Handle an RPC failure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `status` | `Status const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` | true if the RPC operation should be retried. |

### OnFailure(grpc::Status const \&)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `status` | `grpc::Status const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### virtual IsExhausted() const

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### static IsPermanentFailure(Status const \&)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `status` | `Status const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### static IsPermanentFailure(grpc::Status const \&)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `status` | `grpc::Status const &` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

## Type Aliases

### RetryableTraits

**Alias Of** : `bigtable_internal::SafeGrpcRetry`