Package org.apache.beam.sdk.io.solr
Class SolrIO.RetryConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.solr.SolrIO.RetryConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SolrIO
public abstract static class SolrIO.RetryConfiguration extends java.lang.Object implements java.io.SerializableA POJO encapsulating a configuration for retry behavior when issuing requests to Solr. A retry will be attempted until the maxAttempts or maxDuration is exceeded, whichever comes first, for any of the following exceptions:IOExceptionSolrServerExceptionSolrExceptionwhere theSolrException.ErrorCodeis one of:SolrException.ErrorCode.CONFLICTSolrException.ErrorCode.SERVER_ERRORSolrException.ErrorCode.SERVICE_UNAVAILABLESolrException.ErrorCode.INVALID_STATESolrException.ErrorCode.UNKNOWN
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SolrIO.RetryConfigurationcreate(int maxAttempts, org.joda.time.Duration maxDuration)
-
-
-
Method Detail
-
create
public static SolrIO.RetryConfiguration create(int maxAttempts, org.joda.time.Duration maxDuration)
-
-