public class RetryPolicy<V> extends Object
| Constructor and Description |
|---|
RetryPolicy(RetryStrategy retryStrategy,
TransientExceptionDetector transientExceptionDetector)
Implements a retry policy using the specified strategy and transient error detection algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
V |
action(Callable<V> callable)
Perform the specified action under the defined retry semantics.
|
void |
addRetryEventListener(RetryEventListener rel) |
public RetryPolicy(RetryStrategy retryStrategy, TransientExceptionDetector transientExceptionDetector)
retryStrategy - the strategy that implements retrytransientExceptionDetector - the transient error detection algorithmpublic V action(Callable<V> callable) throws Exception
callable - the action to perform under retryException - inspect cause to determine reason, or interrupt statuspublic void addRetryEventListener(RetryEventListener rel)
Copyright © 2015. All rights reserved.