public static class RetryingErrorHandler.TimeoutConfiguration extends Object
| Constructor and Description |
|---|
RetryingErrorHandler.TimeoutConfiguration(int count,
long timeout,
TimeUnit timeUnit)
Initialize a configuration to apply the given
timeout between retries for the given
count number of retries. |
RetryingErrorHandler.TimeoutConfiguration(long timeout,
TimeUnit timeUnit)
Initialize a configuration to indefinitely retry, applying the given
timeout between retries. |
| Modifier and Type | Method and Description |
|---|---|
int |
count()
The number of times to apply the
retryPolicy. |
RetryPolicy |
retryPolicy()
The retry policy to use between retries
|
public RetryingErrorHandler.TimeoutConfiguration(long timeout,
TimeUnit timeUnit)
timeout between retries.timeout - The amount of time to wait before the next retrytimeUnit - The unit of the timeoutpublic RetryingErrorHandler.TimeoutConfiguration(int count,
long timeout,
TimeUnit timeUnit)
timeout between retries for the given
count number of retries.count - The number of retries to apply the given timeout fortimeout - The amount of time to wait before the next retrytimeUnit - The unit of the timeoutpublic int count()
retryPolicy.retryPolicypublic RetryPolicy retryPolicy()
Copyright © 2010-2015. All Rights Reserved.