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 Summary
-
Method Summary
-
Constructor Details
-
RetryDetector
public RetryDetector()
-
-
Method Details
-
publish
public void publish(software.amazon.awssdk.metrics.MetricCollection metricCollection) - Specified by:
publish
in interfacesoftware.amazon.awssdk.metrics.MetricPublisher
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacesoftware.amazon.awssdk.metrics.MetricPublisher
- Specified by:
close
in interfacesoftware.amazon.awssdk.utils.SdkAutoCloseable
-
retried
public boolean retried()
-