public abstract static class ElasticsearchIO.RetryConfiguration
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
RetryConfiguration() |
Modifier and Type | Method and Description |
---|---|
static ElasticsearchIO.RetryConfiguration |
create(int maxAttempts,
Duration maxDuration)
Creates RetryConfiguration for
ElasticsearchIO with provided maxAttempts,
maxDurations and exponential backoff based retries. |
public static ElasticsearchIO.RetryConfiguration create(int maxAttempts, Duration maxDuration)
ElasticsearchIO
with provided maxAttempts,
maxDurations and exponential backoff based retries.maxAttempts
- max number of attempts.maxDuration
- maximum duration for retries.ElasticsearchIO.RetryConfiguration
object with provided settings.