library/src/main/java/com/kdgregory/aws/utils/cloudwatch/DescribeLogGroupIterable.java
/**
     *  Executes the actual describe, with retry logic.
     */
Executes the actual describe, with retry logic.
Executes the actual describe with retry logic .
private DescribeLogGroupsResult doDescribe(DescribeLogGroupsRequest request)
    {
        AWSLogsException preserved = null;
        long currentDelay = retryDelay;
        for (int ii = 0 ; ii < maxRetries ; ii++)
        {
            try
            {
                return client.describeLogGroups(request);
            }
            catch (AWSLogsException ex)
            {
                preserved = (AWSLogsException)ex;
                if ("ThrottlingException".equals(ex.getErrorCode()))
                {
                    logger.debug("describeLogGroups() throttled; curent delay " + currentDelay + " ms");
                    CommonUtils.sleepQuietly(currentDelay);
                    currentDelay *= 2;
                }
                else
                {
                    throw ex;
                }
            }
        }
        throw preserved;
    }
private DescribeLogGroupsResult doDescribe ( DescribeLogGroupsRequest request ) { AWSLogsException preserved = null ; long currentDelay = retryDelay ; for ( int ii = 0 ; ii < maxRetries ; ii ++ ) { try { return client . describeLogGroups ( request ) ; } catch ( AWSLogsException ex ) { preserved = ( AWSLogsException ) ex ; if ( "ThrottlingException" . equals ( ex . getErrorCode ( ) ) ) { logger . debug ( "describeLogGroups() throttled; curent delay " + currentDelay + " ms" ) ; CommonUtils . sleepQuietly ( currentDelay ) ; currentDelay *= 2 ; } else { throw ex ; } } } throw preserved ; }
Executes the actual describe, with retry logic.
Executes the actual describe with retry logic .