Package org.apache.iceberg.aws.util
Class RetryDetector
java.lang.Object
org.apache.iceberg.aws.util.RetryDetector
- All Implemented Interfaces:
- AutoCloseable,- software.amazon.awssdk.metrics.MetricPublisher,- software.amazon.awssdk.utils.SdkAutoCloseable
Metrics are the only reliable way provided by the AWS SDK to determine if an API call was
 retried. This class can be attached to an AWS API call and checked after to determine if retries
 occurred.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
RetryDetectorpublic RetryDetector()
 
- 
- 
Method Details- 
publishpublic void publish(software.amazon.awssdk.metrics.MetricCollection metricCollection) - Specified by:
- publishin interface- software.amazon.awssdk.metrics.MetricPublisher
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- software.amazon.awssdk.metrics.MetricPublisher
- Specified by:
- closein interface- software.amazon.awssdk.utils.SdkAutoCloseable
 
- 
retriedpublic boolean retried()
 
-