public abstract class InsertRetryPolicy extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
InsertRetryPolicy.Context
Contains information about a failed insert.
|
| Constructor and Description |
|---|
InsertRetryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
static InsertRetryPolicy |
alwaysRetry()
Always retry all failures.
|
static InsertRetryPolicy |
neverRetry()
Never retry any failures.
|
static InsertRetryPolicy |
retryTransientErrors()
Retry all failures except for known persistent errors.
|
abstract boolean |
shouldRetry(InsertRetryPolicy.Context context)
Return true if this failure should be retried.
|
public abstract boolean shouldRetry(InsertRetryPolicy.Context context)
public static InsertRetryPolicy neverRetry()
public static InsertRetryPolicy alwaysRetry()
public static InsertRetryPolicy retryTransientErrors()
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.