Class RetryDetector

  • All Implemented Interfaces:

    public class RetryDetector
    extends java.lang.Object
    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

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void publish​( metricCollection)  
      boolean retried()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryDetector

        public RetryDetector()
    • Method Detail

      • publish

        public void publish​( metricCollection)
        Specified by:
        publish in interface
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface
        Specified by:
        close in interface
      • retried

        public boolean retried()