Package tachyon.retry

Set of utilities for working with retryable operations.

See: Description

Package tachyon.retry Description

Set of utilities for working with retryable operations. The main entrypoint is RetryPolicy which is designed to work with do/while loops.

Example

 {
   @code
   RetryPolicy retry = new ExponentialBackoffRetry(50, Constants.SECOND_MS, MAX_CONNECT_TRY);
   do {
     // work to retry
   } while (retry.attemptRetry());
 }
 

Copyright © 2015. All Rights Reserved.