Class ElasticsearchIO.RetryConfiguration
java.lang.Object
org.apache.beam.sdk.io.elasticsearch.ElasticsearchIO.RetryConfiguration
- All Implemented Interfaces:
 Serializable
- Enclosing class:
 ElasticsearchIO
public abstract static class ElasticsearchIO.RetryConfiguration
extends Object
implements Serializable
A POJO encapsulating a configuration for retry behavior when issuing requests to ES. A retry
 will be attempted until the maxAttempts or maxDuration is exceeded, whichever comes first, for
 429 TOO_MANY_REQUESTS error.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionCreates RetryConfiguration forElasticsearchIOwith provided maxAttempts, maxDurations and exponential backoff based retries. 
- 
Constructor Details
- 
RetryConfiguration
public RetryConfiguration() 
 - 
 - 
Method Details
- 
create
Creates RetryConfiguration forElasticsearchIOwith provided maxAttempts, maxDurations and exponential backoff based retries.- Parameters:
 maxAttempts- max number of attempts.maxDuration- maximum duration for retries.- Returns:
 ElasticsearchIO.RetryConfigurationobject with provided settings.
 
 -