Example usage for Java org.apache.hadoop.io.retry RetryPolicies fields, constructors, methods, implement or subclass
The text is from its open source code.
RetryPolicy | TRY_ONCE_THEN_FAIL Try once, and fail by re-throwing the exception. |
RetryPolicy | RETRY_FOREVER Keep trying forever. |
RetryPolicy | exponentialBackoffRetry(int maxRetries, long sleepTime, TimeUnit timeUnit) Keep trying a limited number of times, waiting a growing amount of time between attempts, and then fail by re-throwing the exception. |
RetryPolicy | failoverOnNetworkException(RetryPolicy fallbackPolicy, int maxFailovers, int maxRetries, long delayMillis, long maxDelayBase) |
RetryPolicy | retryByException(RetryPolicy defaultPolicy, Map Set a default policy with some explicit handlers for specific exceptions. |
RetryPolicy | retryUpToMaximumCountWithFixedSleep(int maxRetries, long sleepTime, TimeUnit timeUnit) Keep trying a limited number of times, waiting a fixed time between attempts, and then fail by re-throwing the exception. |