Package | Description |
---|---|
org.springframework.retry.interceptor |
Infrastructure implementations of retry aop concerns.
|
org.springframework.retry.policy |
Infrastructure implementations of retry policy concerns.
|
org.springframework.retry.support |
Infrastructure implementations of retry support concerns.
|
Modifier and Type | Method and Description |
---|---|
RetryInterceptorBuilder<T> |
RetryInterceptorBuilder.retryPolicy(RetryPolicy policy)
Apply the retry policy - cannot be used if a custom retry template has been provided, or the max attempts or
back off options or policy have been applied.
|
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder |
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder.retryPolicy(RetryPolicy policy) |
Modifier and Type | Class and Description |
---|---|
class |
AlwaysRetryPolicy
A
RetryPolicy that always permits a retry. |
class |
CompositeRetryPolicy
A
RetryPolicy that composes a list of other policies and delegates
calls to them in order. |
class |
ExceptionClassifierRetryPolicy
A
RetryPolicy that dynamically adapts to one of a set of injected
policies according to the value of the latest exception. |
class |
NeverRetryPolicy
A
RetryPolicy that allows the first attempt but never permits a
retry. |
class |
SimpleRetryPolicy
Simple retry policy that retries a fixed number of times for a set of named
exceptions (and subclasses).
|
class |
TimeoutRetryPolicy
A
RetryPolicy that allows a retry only if it hasn't timed out. |
Modifier and Type | Method and Description |
---|---|
void |
CompositeRetryPolicy.setPolicies(RetryPolicy[] policies)
Setter for policies.
|
Modifier and Type | Method and Description |
---|---|
void |
ExceptionClassifierRetryPolicy.setExceptionClassifier(Classifier<Throwable,RetryPolicy> exceptionClassifier)
Setter for an exception classifier.
|
void |
ExceptionClassifierRetryPolicy.setPolicyMap(Map<Class<? extends Throwable>,RetryPolicy> policyMap)
Setter for policy map used to create a classifier.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
RetryTemplate.canRetry(RetryPolicy retryPolicy,
RetryContext context)
Decide whether to proceed with the ongoing retry attempt.
|
protected void |
RetryTemplate.close(RetryPolicy retryPolicy,
RetryContext context,
RetryState state,
boolean succeeded)
Clean up the cache if necessary and close the context provided (if the flag
indicates that processing was successful).
|
protected RetryContext |
RetryTemplate.open(RetryPolicy retryPolicy,
RetryState state)
Delegate to the
RetryPolicy having checked in the cache for an existing
value if the state is not null. |
protected void |
RetryTemplate.registerThrowable(RetryPolicy retryPolicy,
RetryState state,
RetryContext context,
Throwable e) |
void |
RetryTemplate.setRetryPolicy(RetryPolicy retryPolicy)
Setter for
RetryPolicy . |
protected boolean |
RetryTemplate.shouldRethrow(RetryPolicy retryPolicy,
RetryContext context,
RetryState state)
Extension point for subclasses to decide on behaviour after catching an exception
in a
RetryCallback . |
Constructor and Description |
---|
RetrySimulator(SleepingBackOffPolicy<?> backOffPolicy,
RetryPolicy retryPolicy) |
Copyright © 2014 SpringSource. All rights reserved.