test_class.declarator: simpleExponentialBackoffStrategy
test_class.modifier: private
test_class.original_string: private SimpleExponentialBackoffStrategy simpleExponentialBackoffStrategy;
test_class.type: SimpleExponentialBackoffStrategy
test_class.var_name: simpleExponentialBackoffStrategy
test_class.file: herd-code/herd-dao/src/test/java/org/finra/herd/dao/SimpleExponentialBackoffStrategyTest.java
test_class.identifier: SimpleExponentialBackoffStrategyTest
test_case.body: @Test
      public void assertExponentialBackoff()
      {
          long delayBeforeNextRetry = simpleExponentialBackoffStrategy.delayBeforeNextRetry(null, new AmazonClientException("test"), 2);
          Assert.assertEquals(4000l, delayBeforeNextRetry);
      }
test_case.class_method_signature: SimpleExponentialBackoffStrategyTest.assertExponentialBackoff()
test_case.full_signature: @Test public void assertExponentialBackoff()
test_case.identifier: assertExponentialBackoff
test_case.invocations: delayBeforeNextRetry assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertExponentialBackoff()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(SimpleExponentialBackoffStrategy.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(SimpleExponentialBackoffStrategy.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: SECOND_IN_MS = 1000
focal_class.modifier: private static final
focal_class.original_string: private static final long SECOND_IN_MS = 1000;
focal_class.type: long
focal_class.var_name: SECOND_IN_MS
focal_class.file: herd-code/herd-dao/src/main/java/org/finra/herd/dao/SimpleExponentialBackoffStrategy.java
focal_class.identifier: SimpleExponentialBackoffStrategy
focal_class.interfaces: implements BackoffStrategy
focal_class.class_method_signature: SimpleExponentialBackoffStrategy.delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_class.full_signature: @Override public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_class.identifier: delayBeforeNextRetry
focal_class.modifiers: @Override public
focal_class.parameters: (AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_class.return: long
focal_class.signature: long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_method.body: @Override
      public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
      {
          long delay = (long) Math.pow(2, retriesAttempted) * SECOND_IN_MS;
          LOGGER.warn("delayBeforeNextRetryInMilliseconds={} retriesAttempted={}", delay, retriesAttempted, exception);
          return delay;
      }
focal_method.class_method_signature: SimpleExponentialBackoffStrategy.delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_method.full_signature: @Override public long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_method.identifier: delayBeforeNextRetry
focal_method.invocations: pow warn
focal_method.modifiers: @Override public
focal_method.parameters: (AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)
focal_method.return: long
focal_method.signature: long delayBeforeNextRetry(AmazonWebServiceRequest originalRequest, AmazonClientException exception, int retriesAttempted)