> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RetryInterceptor

> RetryInterceptor API reference.

Package: [`com.coinbase.cdp.core`](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/index)

```java theme={null}
public class RetryInterceptor extends Object implements okhttp3.Interceptor
```

## Constructor Details

### `RetryInterceptor`

```java theme={null}
public RetryInterceptor(int maxRetries)
```

**Parameters:**

`maxRetries` - `int`

## Method Details

### `intercept`

```java theme={null}
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException
```

**Throws:**

`[IOException](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html "class or interface in java.io")`

**Parameters:**

`chain` - `okhttp3.Interceptor.Chain`

**Returns:**

`okhttp3.Response`
