Class InsertRetryPolicy
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.bigquery.InsertRetryPolicy
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class InsertRetryPolicy extends java.lang.Object implements java.io.Serializable
A retry policy for streaming BigQuery inserts.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InsertRetryPolicy.Context
Contains information about a failed insert.
-
Constructor Summary
Constructors Constructor Description InsertRetryPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
shouldRetry
public abstract boolean shouldRetry(InsertRetryPolicy.Context context)
Return true if this failure should be retried.
-
neverRetry
public static InsertRetryPolicy neverRetry()
Never retry any failures.
-
alwaysRetry
public static InsertRetryPolicy alwaysRetry()
Always retry all failures.
-
retryTransientErrors
public static InsertRetryPolicy retryTransientErrors()
Retry all failures except for known persistent errors.
-
-