Java org.apache.hadoop.io.retry RetryPolicies fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.io.retry RetryPolicies fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.io.retry RetryPolicies.

The text is from its open source code.

Field

RetryPolicyTRY_ONCE_THEN_FAIL

Try once, and fail by re-throwing the exception.

RetryPolicyRETRY_FOREVER

Keep trying forever.

Method

RetryPolicyexponentialBackoffRetry(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.

RetryPolicyfailoverOnNetworkException(RetryPolicy fallbackPolicy, int maxFailovers, int maxRetries, long delayMillis, long maxDelayBase)
RetryPolicyretryByException(RetryPolicy defaultPolicy, Map, RetryPolicy> exceptionToPolicyMap)

Set a default policy with some explicit handlers for specific exceptions.

RetryPolicyretryUpToMaximumCountWithFixedSleep(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.