Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(Class<? extends T>, C) - Method in class org.springframework.classify.SubclassClassifier
-
The key is the type and this will be mapped along with all subclasses to the corresponding value.
- addAbort(String) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- addAbort(String) - Method in interface org.springframework.retry.stats.StatisticsRepository
- addComplete(String) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- addComplete(String) - Method in interface org.springframework.retry.stats.StatisticsRepository
- addError(String) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- addError(String) - Method in interface org.springframework.retry.stats.StatisticsRepository
- addRecovery(String) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- addRecovery(String) - Method in interface org.springframework.retry.stats.StatisticsRepository
- addSequence(List<Long>) - Method in class org.springframework.retry.support.RetrySimulation
-
Add a sequence of sleeps to the simulation.
- addStarted(String) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- addStarted(String) - Method in interface org.springframework.retry.stats.StatisticsRepository
- afterPropertiesSet() - Method in class org.springframework.retry.annotation.RetryConfiguration
- afterSingletonsInstantiated() - Method in class org.springframework.retry.annotation.RetryConfiguration
- AlwaysRetryPolicy - Class in org.springframework.retry.policy
-
A
RetryPolicy
that always permits a retry. - AlwaysRetryPolicy() - Constructor for class org.springframework.retry.policy.AlwaysRetryPolicy
- AnnotationAwareRetryOperationsInterceptor - Class in org.springframework.retry.annotation
-
Interceptor that parses the retry metadata on the method it is invoking and delegates to an appropriate RetryOperationsInterceptor.
- AnnotationAwareRetryOperationsInterceptor() - Constructor for class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- AnnotationMethodResolver - Class in org.springframework.classify.util
-
MethodResolver implementation that finds a single Method on the given Class that contains the specified annotation type.
- AnnotationMethodResolver(Class<? extends Annotation>) - Constructor for class org.springframework.classify.util.AnnotationMethodResolver
-
Create a MethodResolver for the specified Method-level annotation type
- Args - Class in org.springframework.retry.support
-
A root object containing the method arguments to use in expression evaluation.
- Args(Object[]) - Constructor for class org.springframework.retry.support.Args
B
- backoff() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Specify the backoff properties for retrying this operation.
- backOff(BackOffContext) - Method in interface org.springframework.retry.backoff.BackOffPolicy
-
Back off/pause in an implementation-specific fashion.
- backOff(BackOffContext) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Pause for the current backoff interval.
- backOff(BackOffContext) - Method in class org.springframework.retry.backoff.StatelessBackOffPolicy
-
Delegates directly to the
StatelessBackOffPolicy.doBackOff()
method without passing on theBackOffContext
argument which is not needed for stateless implementations. - Backoff - Annotation Interface in org.springframework.retry.annotation
-
Collects metadata for a
BackOffPolicy
. - BackOffContext - Interface in org.springframework.retry.backoff
- BackOffInterruptedException - Exception in org.springframework.retry.backoff
-
Exception class signifiying that an attempt to back off using a
BackOffPolicy
was interrupted, most likely by anInterruptedException
during a call toThread.sleep(long)
. - BackOffInterruptedException(String) - Constructor for exception org.springframework.retry.backoff.BackOffInterruptedException
- BackOffInterruptedException(String, Throwable) - Constructor for exception org.springframework.retry.backoff.BackOffInterruptedException
- backOffOptions(long, double, long) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Apply the backoff options.
- backOffOptions(long, double, long) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- backOffPeriodSupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
-
Set a supplier for the back off period in milliseconds.
- backOffPolicy(BackOffPolicy) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Apply the back off policy.
- backOffPolicy(BackOffPolicy) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- BackOffPolicy - Interface in org.springframework.retry.backoff
-
Strategy interface to control back off between attempts in a single
retry operation
. - BackOffPolicyBuilder - Class in org.springframework.retry.backoff
-
Fluent API for creating a
BackOffPolicy
based on given attributes. - BackToBackPatternClassifier<C,
T> - Class in org.springframework.classify -
A special purpose
Classifier
with easy configuration options for mapping from one arbitrary type of object to another via a pattern matcher. - BackToBackPatternClassifier() - Constructor for class org.springframework.classify.BackToBackPatternClassifier
-
Default constructor, provided as a convenience for people using setter injection.
- BackToBackPatternClassifier(Classifier<C, String>, Classifier<String, T>) - Constructor for class org.springframework.classify.BackToBackPatternClassifier
-
Set up a classifier with input to the router and output from the matcher.
- BinaryExceptionClassifier - Class in org.springframework.classify
-
A
Classifier
for exceptions that has only two classes (true and false). - BinaryExceptionClassifier(boolean) - Constructor for class org.springframework.classify.BinaryExceptionClassifier
-
Create a binary exception classifier with the provided default value.
- BinaryExceptionClassifier(Collection<Class<? extends Throwable>>) - Constructor for class org.springframework.classify.BinaryExceptionClassifier
-
Create a binary exception classifier with the default value false and value mapping true for the provided classes and their subclasses.
- BinaryExceptionClassifier(Collection<Class<? extends Throwable>>, boolean) - Constructor for class org.springframework.classify.BinaryExceptionClassifier
-
Create a binary exception classifier with the provided classes and their subclasses.
- BinaryExceptionClassifier(Map<Class<? extends Throwable>, Boolean>) - Constructor for class org.springframework.classify.BinaryExceptionClassifier
-
Create a binary exception classifier using the given classification map and a default classification of false.
- BinaryExceptionClassifier(Map<Class<? extends Throwable>, Boolean>, boolean) - Constructor for class org.springframework.classify.BinaryExceptionClassifier
-
Create a binary exception classifier using the given classification map and the given value for default class.
- BinaryExceptionClassifier(Map<Class<? extends Throwable>, Boolean>, boolean, boolean) - Constructor for class org.springframework.classify.BinaryExceptionClassifier
-
Create a binary exception classifier.
- BinaryExceptionClassifierBuilder - Class in org.springframework.classify
-
Fluent API for BinaryExceptionClassifier configuration.
- BinaryExceptionClassifierBuilder() - Constructor for class org.springframework.classify.BinaryExceptionClassifierBuilder
- BinaryExceptionClassifierRetryPolicy - Class in org.springframework.retry.policy
-
A policy, that is based on
BinaryExceptionClassifier
. - BinaryExceptionClassifierRetryPolicy(BinaryExceptionClassifier) - Constructor for class org.springframework.retry.policy.BinaryExceptionClassifierRetryPolicy
- build() - Method in class org.springframework.classify.BinaryExceptionClassifierBuilder
- build() - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Builds the
BackOffPolicy
with the given parameters. - build() - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- build() - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder
- build() - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- build() - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatelessRetryInterceptorBuilder
- build() - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Build a new
RetryTemplate
. - buildAdvice() - Method in class org.springframework.retry.annotation.RetryConfiguration
- builder() - Static method in class org.springframework.classify.BinaryExceptionClassifier
- builder() - Static method in class org.springframework.retry.support.RetryTemplate
-
Main entry point to configure RetryTemplate using fluent API.
- buildPointcut(Set<Class<? extends Annotation>>) - Method in class org.springframework.retry.annotation.RetryConfiguration
-
Calculate a pointcut for the given retry annotation types, if any.
C
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.AlwaysRetryPolicy
-
Always returns true.
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.BinaryExceptionClassifierRetryPolicy
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.CompositeRetryPolicy
-
Delegate to the policies that were in operation when the context was created.
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
Delegate to the policy currently activated in the context.
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.ExpressionRetryPolicy
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
Test for retryable operation based on the status.
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.NeverRetryPolicy
-
Returns false after the first exception.
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.PredicateRetryPolicy
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
Test for retryable operation based on the status.
- canRetry(RetryContext) - Method in class org.springframework.retry.policy.TimeoutRetryPolicy
-
Only permits a retry if the timeout has not expired.
- canRetry(RetryContext) - Method in interface org.springframework.retry.RetryPolicy
- canRetry(RetryPolicy, RetryContext) - Method in class org.springframework.retry.support.RetryTemplate
-
Decide whether to proceed with the ongoing retry attempt.
- CIRCUIT_OPEN - Static variable in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- CIRCUIT_SHORT_COUNT - Static variable in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- circuitBreaker() - Static method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Create a builder for a circuit breaker retry interceptor.
- CircuitBreaker - Annotation Interface in org.springframework.retry.annotation
-
Annotation for a method invocation that is retryable.
- CircuitBreakerRetryPolicy - Class in org.springframework.retry.policy
- CircuitBreakerRetryPolicy() - Constructor for class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- CircuitBreakerRetryPolicy(RetryPolicy) - Constructor for class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- Classifier<C,
T> - Interface in org.springframework.classify -
Interface for a classifier.
- Classifier - Annotation Interface in org.springframework.classify.annotation
-
Mark a method as capable of classifying its input to an instance of its output.
- ClassifierAdapter<C,
T> - Class in org.springframework.classify -
Wrapper for an object to adapt it to the
Classifier
interface. - ClassifierAdapter() - Constructor for class org.springframework.classify.ClassifierAdapter
-
Default constructor for use with setter injection.
- ClassifierAdapter(Object) - Constructor for class org.springframework.classify.ClassifierAdapter
-
Create a new
Classifier
from the delegate provided. - ClassifierAdapter(Classifier<C, T>) - Constructor for class org.springframework.classify.ClassifierAdapter
-
Create a new
Classifier
from the delegate provided. - ClassifierSupport<C,
T> - Class in org.springframework.classify -
Base class for
Classifier
implementations. - ClassifierSupport(T) - Constructor for class org.springframework.classify.ClassifierSupport
- classify(C) - Method in class org.springframework.classify.BackToBackPatternClassifier
-
Classify the input and map to a String, then take that and put it into a pattern matcher to match to an output value.
- classify(C) - Method in interface org.springframework.classify.Classifier
-
Classify the given object and return an object of a different type, possibly an enumerated type.
- classify(C) - Method in class org.springframework.classify.ClassifierAdapter
-
Classify the given object and return an object of a different type, possibly an enumerated type.
- classify(C) - Method in class org.springframework.classify.ClassifierSupport
-
Always returns the default value.
- classify(String) - Method in class org.springframework.classify.PatternMatchingClassifier
-
Classify the input by matching it against the patterns provided in
PatternMatchingClassifier.setPatternMap(Map)
. - classify(Throwable) - Method in class org.springframework.classify.BinaryExceptionClassifier
- classify(T) - Method in class org.springframework.classify.SubclassClassifier
-
Return the value from the type map whose key is the class of the given Throwable, or its nearest ancestor if a subclass.
- clear() - Static method in class org.springframework.retry.support.RetrySynchronizationManager
-
Clear the current context at the end of a batch - should only be used by
RetryOperations
implementations. - cloneValues(ExponentialBackOffPolicy) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- close(RetryContext) - Method in class org.springframework.retry.policy.BinaryExceptionClassifierRetryPolicy
- close(RetryContext) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- close(RetryContext) - Method in class org.springframework.retry.policy.CompositeRetryPolicy
-
Delegate to the policies that were in operation when the context was created.
- close(RetryContext) - Method in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
Delegate to the policy currently activated in the context.
- close(RetryContext) - Method in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
- close(RetryContext) - Method in class org.springframework.retry.policy.NeverRetryPolicy
-
Do nothing.
- close(RetryContext) - Method in class org.springframework.retry.policy.PredicateRetryPolicy
- close(RetryContext) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
- close(RetryContext) - Method in class org.springframework.retry.policy.TimeoutRetryPolicy
- close(RetryContext) - Method in interface org.springframework.retry.RetryPolicy
- close(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
- close(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.listener.RetryListenerSupport
-
Deprecated.
- close(RetryContext, RetryCallback<T, E>, Throwable) - Method in interface org.springframework.retry.RetryListener
-
Called after the final attempt (successful or not).
- close(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.stats.StatisticsListener
- close(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.support.MetricsRetryListener
- close(RetryPolicy, RetryContext, RetryState, boolean) - Method in class org.springframework.retry.support.RetryTemplate
-
Clean up the cache if necessary and close the context provided (if the flag indicates that processing was successful).
- CLOSED - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute that is non-null (and true) if the context has been closed.
- CompositeRetryPolicy - Class in org.springframework.retry.policy
-
A
RetryPolicy
that composes a list of other policies and delegates calls to them in order. - CompositeRetryPolicy() - Constructor for class org.springframework.retry.policy.CompositeRetryPolicy
- containsKey(Object) - Method in class org.springframework.retry.policy.MapRetryContextCache
- containsKey(Object) - Method in interface org.springframework.retry.policy.RetryContextCache
- containsKey(Object) - Method in class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
- create(String) - Method in class org.springframework.retry.stats.DefaultRetryStatisticsFactory
- create(String) - Method in interface org.springframework.retry.stats.RetryStatisticsFactory
- customBackoff(BackOffPolicy) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Use the provided
BackOffPolicy
. - customPolicy(RetryPolicy) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Use the provided
RetryPolicy
.
D
- DEFAULT_CAPACITY - Static variable in class org.springframework.retry.policy.MapRetryContextCache
-
Default value for maximum capacity of the cache.
- DEFAULT_CAPACITY - Static variable in class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
-
Default value for maximum capacity of the cache.
- DEFAULT_INITIAL_INTERVAL - Static variable in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
The default 'initialInterval' value - 100 millisecs.
- DEFAULT_MAX_ATTEMPTS - Static variable in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
The default limit to the number of attempts for a new policy.
- DEFAULT_MAX_ATTEMPTS - Static variable in class org.springframework.retry.policy.SimpleRetryPolicy
-
The default limit to the number of attempts for a new policy.
- DEFAULT_MAX_INTERVAL - Static variable in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
The default maximum backoff time (30 seconds).
- DEFAULT_MULTIPLIER - Static variable in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
The default 'multiplier' value - value 2 (100% increase per backoff).
- DEFAULT_TIMEOUT - Static variable in class org.springframework.retry.policy.TimeoutRetryPolicy
-
Default value for timeout (milliseconds).
- defaultClassifier() - Static method in class org.springframework.classify.BinaryExceptionClassifier
- defaultInstance() - Static method in class org.springframework.retry.support.RetryTemplate
-
Creates a new default instance.
- DefaultRetryState - Class in org.springframework.retry.support
- DefaultRetryState(Object) - Constructor for class org.springframework.retry.support.DefaultRetryState
-
Defaults the force refresh flag (to false) and the rollback classifier (to null).
- DefaultRetryState(Object, boolean) - Constructor for class org.springframework.retry.support.DefaultRetryState
-
Defaults the rollback classifier to null.
- DefaultRetryState(Object, boolean, Classifier<? super Throwable, Boolean>) - Constructor for class org.springframework.retry.support.DefaultRetryState
-
Create a
DefaultRetryState
representing the state for a new retry attempt. - DefaultRetryState(Object, Classifier<? super Throwable, Boolean>) - Constructor for class org.springframework.retry.support.DefaultRetryState
-
Defaults the force refresh flag to false.
- DefaultRetryStatistics - Class in org.springframework.retry.stats
- DefaultRetryStatistics(String) - Constructor for class org.springframework.retry.stats.DefaultRetryStatistics
- DefaultRetryStatisticsFactory - Class in org.springframework.retry.stats
- DefaultRetryStatisticsFactory() - Constructor for class org.springframework.retry.stats.DefaultRetryStatisticsFactory
- DefaultStatisticsRepository - Class in org.springframework.retry.stats
- DefaultStatisticsRepository() - Constructor for class org.springframework.retry.stats.DefaultStatisticsRepository
- delay() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
A canonical backoff period.
- delay(long) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
A canonical backoff period.
- delayExpression() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
An expression evaluating to the canonical backoff period.
- delaySupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Set a supplier for the delay.
- doBackOff() - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
-
Pause for the
FixedBackOffPolicy.setBackOffPeriod(long)
. - doBackOff() - Method in class org.springframework.retry.backoff.NoBackOffPolicy
- doBackOff() - Method in class org.springframework.retry.backoff.StatelessBackOffPolicy
-
Sub-classes should implement this method to perform the actual back off.
- doBackOff() - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
Pause for the
UniformRandomBackOffPolicy.setMinBackOffPeriod(long)
. - doClose(RetryContext, MethodInvocationRetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
-
Called after the final attempt (successful or not).
- doExecute(RetryCallback<T, E>, RecoveryCallback<T>, RetryState) - Method in class org.springframework.retry.support.RetryTemplate
-
Execute the callback once if the policy dictates that we can, otherwise execute the recovery callback.
- doOnError(RetryContext, MethodInvocationRetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
-
Called after every unsuccessful attempt at a retry.
- doOnSuccess(RetryContext, MethodInvocationRetryCallback<T, E>, T) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
-
Called after a successful attempt; allow the listener to throw a new exception to cause a retry (according to the retry policy), based on the result returned by the
RetryCallback.doWithRetry(RetryContext)
- doOpen(RetryContext, MethodInvocationRetryCallback<T, E>) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
-
Called before the first attempt in a retry.
- doWithRetry(RetryContext) - Method in interface org.springframework.retry.RetryCallback
-
Execute an operation with retry semantics.
E
- enableRetry - Variable in class org.springframework.retry.annotation.RetryConfiguration
- EnableRetry - Annotation Interface in org.springframework.retry.annotation
-
Global enabler for
@Retryable
annotations in Spring beans. - equals(Object) - Method in class org.springframework.classify.util.SimpleMethodInvoker
- ExceptionClassifierRetryPolicy - Class in org.springframework.retry.policy
-
A
RetryPolicy
that dynamically adapts to one of a set of injected policies according to the value of the latest exception. - ExceptionClassifierRetryPolicy() - Constructor for class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
- exceptionExpression() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Specify an expression to be evaluated after the
SimpleRetryPolicy.canRetry()
returns true - can be used to conditionally suppress the retry. - exceptionExpression() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Specify an expression to be evaluated after the
SimpleRetryPolicy.canRetry()
returns true - can be used to conditionally suppress the retry. - exclude() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Deprecated.
- exclude() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Deprecated.in favor of
Retryable.noRetryFor()
. - execute(RetryCallback<T, E>) - Method in interface org.springframework.retry.RetryOperations
-
Execute the supplied
RetryCallback
with the configured retry semantics. - execute(RetryCallback<T, E>) - Method in class org.springframework.retry.support.RetryTemplate
-
Keep executing the callback until it either succeeds or the policy dictates that we stop, in which case the most recent exception thrown by the callback will be rethrown.
- execute(RetryCallback<T, E>, RecoveryCallback<T>) - Method in interface org.springframework.retry.RetryOperations
-
Execute the supplied
RetryCallback
with a fallback on exhausted retry to theRecoveryCallback
. - execute(RetryCallback<T, E>, RecoveryCallback<T>) - Method in class org.springframework.retry.support.RetryTemplate
-
Keep executing the callback until it either succeeds or the policy dictates that we stop, in which case the recovery callback will be executed.
- execute(RetryCallback<T, E>, RecoveryCallback<T>, RetryState) - Method in interface org.springframework.retry.RetryOperations
-
A stateful retry with a recovery path.
- execute(RetryCallback<T, E>, RecoveryCallback<T>, RetryState) - Method in class org.springframework.retry.support.RetryTemplate
-
Execute the callback once if the policy dictates that we can, re-throwing any exception encountered so that clients can re-present the same task later.
- execute(RetryCallback<T, E>, RetryState) - Method in interface org.springframework.retry.RetryOperations
-
A simple stateful retry.
- execute(RetryCallback<T, E>, RetryState) - Method in class org.springframework.retry.support.RetryTemplate
-
Execute the callback once if the policy dictates that we can, re-throwing any exception encountered so that clients can re-present the same task later.
- executeSimulation(int) - Method in class org.springframework.retry.support.RetrySimulator
-
Execute the simulator for a give # of iterations.
- executeSingleSimulation() - Method in class org.springframework.retry.support.RetrySimulator
-
Execute a single simulation
- EXHAUSTED - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute that is non-null (and true) if the retry was exhausted.
- ExhaustedRetryException - Exception in org.springframework.retry
- ExhaustedRetryException(String) - Constructor for exception org.springframework.retry.ExhaustedRetryException
- ExhaustedRetryException(String, Throwable) - Constructor for exception org.springframework.retry.ExhaustedRetryException
- ExponentialAverageRetryStatistics - Class in org.springframework.retry.stats
- ExponentialAverageRetryStatistics(String) - Constructor for class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- exponentialBackoff(long, double, long) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Use an exponential backoff policy.
- exponentialBackoff(long, double, long, boolean) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Use an exponential backoff policy.
- exponentialBackoff(Duration, double, Duration) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Use an exponential backoff policy.
- exponentialBackoff(Duration, double, Duration, boolean) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Use an exponential backoff policy.
- ExponentialBackOffPolicy - Class in org.springframework.retry.backoff
-
Implementation of
BackOffPolicy
that increases the back off period for each retry attempt in a given set up to a limit. - ExponentialBackOffPolicy() - Constructor for class org.springframework.retry.backoff.ExponentialBackOffPolicy
- ExponentialRandomBackOffPolicy - Class in org.springframework.retry.backoff
-
Implementation of
ExponentialBackOffPolicy
that chooses a random multiple of the interval that would come from a simple deterministic exponential. - ExponentialRandomBackOffPolicy() - Constructor for class org.springframework.retry.backoff.ExponentialRandomBackOffPolicy
- ExpressionRetryPolicy - Class in org.springframework.retry.policy
-
Subclass of
SimpleRetryPolicy
that delegates to super.canRetry() and, if true, further evaluates an expression against the last thrown exception. - ExpressionRetryPolicy(int, Map<Class<? extends Throwable>, Boolean>, boolean, String, boolean) - Constructor for class org.springframework.retry.policy.ExpressionRetryPolicy
-
Construct an instance with the provided expression.
- ExpressionRetryPolicy(int, Map<Class<? extends Throwable>, Boolean>, boolean, Expression) - Constructor for class org.springframework.retry.policy.ExpressionRetryPolicy
-
Construct an instance with the provided
Expression
. - ExpressionRetryPolicy(String) - Constructor for class org.springframework.retry.policy.ExpressionRetryPolicy
-
Construct an instance with the provided expression.
- ExpressionRetryPolicy(Expression) - Constructor for class org.springframework.retry.policy.ExpressionRetryPolicy
-
Construct an instance with the provided
Expression
.
F
- findAll() - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- findAll() - Method in interface org.springframework.retry.stats.StatisticsRepository
- findMethod(Class<?>) - Method in class org.springframework.classify.util.AnnotationMethodResolver
-
Find a single Method on the given Class that contains the annotation type for which this resolver is searching.
- findMethod(Class<?>) - Method in interface org.springframework.classify.util.MethodResolver
-
Find a single Method on the given Class that matches this resolver's criteria.
- findMethod(Object) - Method in class org.springframework.classify.util.AnnotationMethodResolver
-
Find a single Method on the Class of the given candidate object that contains the annotation type for which this resolver is searching.
- findMethod(Object) - Method in interface org.springframework.classify.util.MethodResolver
-
Find a single Method on the provided Object that matches this resolver's criteria.
- findOne(String) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- findOne(String) - Method in interface org.springframework.retry.stats.StatisticsRepository
- fixedBackoff(long) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Perform each retry after a fixed amount of time.
- fixedBackoff(Duration) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Perform each retry after fixed amount of time.
- FixedBackOffPolicy - Class in org.springframework.retry.backoff
-
Implementation of
BackOffPolicy
that pauses for a fixed period of time before continuing. - FixedBackOffPolicy() - Constructor for class org.springframework.retry.backoff.FixedBackOffPolicy
- FixedKeyGenerator - Class in org.springframework.retry.interceptor
- FixedKeyGenerator(String) - Constructor for class org.springframework.retry.interceptor.FixedKeyGenerator
G
- get(Object) - Method in class org.springframework.retry.policy.MapRetryContextCache
- get(Object) - Method in interface org.springframework.retry.policy.RetryContextCache
- get(Object) - Method in class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
- getAbortCount() - Method in interface org.springframework.retry.RetryStatistics
-
Get the number of times a block failed to complete successfully, even after retry.
- getAbortCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- getAdvice() - Method in class org.springframework.retry.annotation.RetryConfiguration
- getArgs() - Method in class org.springframework.retry.support.Args
- getBackOffPeriod() - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
-
The backoff period in milliseconds.
- getClassFilter() - Method in class org.springframework.retry.annotation.RetryConfiguration
- getClassified() - Method in class org.springframework.classify.SubclassClassifier
- getCompleteCount() - Method in interface org.springframework.retry.RetryStatistics
- getCompleteCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- getContext() - Static method in class org.springframework.retry.support.RetrySynchronizationManager
-
Public accessor for the locally enclosing
RetryContext
. - getDefault() - Method in class org.springframework.classify.SubclassClassifier
-
Return the default value supplied in the constructor (default false).
- getErrorCount() - Method in interface org.springframework.retry.RetryStatistics
-
Get the number of errors detected, whether or not they resulted in a retry.
- getErrorCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- getExceptionClassifier() - Method in class org.springframework.retry.policy.BinaryExceptionClassifierRetryPolicy
- getInitialInterval() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
The initial period to sleep on the first backoff.
- getInitialIntervalSupplier() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- getInterfaces() - Method in class org.springframework.retry.annotation.RetryConfiguration
- getInvocation() - Method in class org.springframework.retry.interceptor.MethodInvocationRetryCallback
- getKey() - Method in interface org.springframework.retry.RetryState
-
Key representing the state for a retry attempt.
- getKey() - Method in class org.springframework.retry.support.DefaultRetryState
- getKey(Object[]) - Method in class org.springframework.retry.interceptor.FixedKeyGenerator
- getKey(Object[]) - Method in interface org.springframework.retry.interceptor.MethodArgumentsKeyGenerator
-
Get a unique identifier for the item that can be used to cache it between calls if necessary, and then identify it later.
- getLabel() - Method in class org.springframework.retry.interceptor.MethodInvocationRetryCallback
- getLabel() - Method in interface org.springframework.retry.RetryCallback
-
A logical identifier for this callback to distinguish retries around business operations.
- getLastThrowable() - Method in class org.springframework.retry.context.RetryContextSupport
- getLastThrowable() - Method in interface org.springframework.retry.RetryContext
-
Accessor for the exception object that caused the current retry.
- getLongestSleep() - Method in class org.springframework.retry.support.RetrySimulation.SleepSequence
- getLongestTotalSleepSequence() - Method in class org.springframework.retry.support.RetrySimulation
- getMaxAttempts() - Method in class org.springframework.retry.policy.CompositeRetryPolicy
- getMaxAttempts() - Method in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
The maximum number of attempts before failure.
- getMaxAttempts() - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
The maximum number of attempts before failure.
- getMaxAttempts() - Method in interface org.springframework.retry.RetryPolicy
-
Called to understand if the policy has a fixed number of maximum attempts before failure
- getMaxBackOffPeriod() - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
The maximum backoff period in milliseconds.
- getMaxInterval() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
The maximum interval to sleep for.
- getMaxIntervalSupplier() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- getMethodInvokerByAnnotation(Class<? extends Annotation>, Object) - Static method in class org.springframework.classify.util.MethodInvokerUtils
-
Create
MethodInvoker
for the method with the provided annotation on the provided object. - getMethodInvokerByAnnotation(Class<? extends Annotation>, Object, Class<?>...) - Static method in class org.springframework.classify.util.MethodInvokerUtils
-
Create a MethodInvoker from the delegate based on the annotationType.
- getMethodInvokerByName(Object, String, boolean, Class<?>...) - Static method in class org.springframework.classify.util.MethodInvokerUtils
-
Create a
MethodInvoker
using the provided method name to search. - getMethodInvokerForInterface(Class<?>, String, Object, Class<?>...) - Static method in class org.springframework.classify.util.MethodInvokerUtils
-
Create a
MethodInvoker
using the provided interface, and method name from that interface. - getMethodInvokerForSingleArgument(Object) - Static method in class org.springframework.classify.util.MethodInvokerUtils
-
Create a
MethodInvoker
for the delegate from a single public method. - getMinBackOffPeriod() - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
The minimum backoff period in milliseconds.
- getMultiplier() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
The multiplier to use to generate the next backoff interval from the last.
- getMultiplierSupplier() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- getName() - Method in interface org.springframework.retry.RetryStatistics
-
Get an identifier for the retry block for reporting purposes.
- getName() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- getParamTypesString(Class<?>...) - Static method in class org.springframework.classify.util.MethodInvokerUtils
-
Create a String representation of the array of parameter types.
- getParent() - Method in class org.springframework.retry.context.RetryContextSupport
- getParent() - Method in interface org.springframework.retry.RetryContext
-
Accessor for the parent context if retry blocks are nested.
- getPercentile(double) - Method in class org.springframework.retry.support.RetrySimulation
- getPercentiles() - Method in class org.springframework.retry.support.RetrySimulation
- getPointcut() - Method in class org.springframework.retry.annotation.RetryConfiguration
- getRecoveryCount() - Method in interface org.springframework.retry.RetryStatistics
-
Get the number of times a recovery callback was applied.
- getRecoveryCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- getRetryCount() - Method in class org.springframework.retry.context.RetryContextSupport
- getRetryCount() - Method in interface org.springframework.retry.RetryContext
-
Counts the number of retry attempts.
- getRollingAbortCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- getRollingCompleteCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- getRollingErrorCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- getRollingErrorRate() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- getRollingRecoveryCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- getRollingStartedCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- getSleeps() - Method in class org.springframework.retry.support.RetrySimulation.SleepSequence
- getStartedCount() - Method in interface org.springframework.retry.RetryStatistics
-
Get the number of times a retry block has been entered, irrespective of how many times the operation was retried.
- getStartedCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- getTimeout() - Method in class org.springframework.retry.policy.TimeoutRetryPolicy
-
The value of the timeout.
- getTotalSleep() - Method in class org.springframework.retry.support.RetrySimulation.SleepSequence
H
- handleRetryExhausted(RecoveryCallback<T>, RetryContext, RetryState) - Method in class org.springframework.retry.support.RetryTemplate
-
Actions to take after final attempt has failed.
- hashCode() - Method in class org.springframework.classify.util.SimpleMethodInvoker
- hasListeners() - Method in class org.springframework.retry.support.RetryTemplate
-
Return true if at least one listener is registered.
I
- implementsInterface(Class<?>) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- include() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Deprecated.in favor of
CircuitBreaker.retryFor()
. - include() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Deprecated.in favor of
Retryable.retryFor()
. - incrementAbortCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- incrementAbortCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- incrementAbortCount() - Method in interface org.springframework.retry.stats.MutableRetryStatistics
- incrementCompleteCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- incrementCompleteCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- incrementCompleteCount() - Method in interface org.springframework.retry.stats.MutableRetryStatistics
- incrementErrorCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- incrementErrorCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- incrementErrorCount() - Method in interface org.springframework.retry.stats.MutableRetryStatistics
- incrementRecoveryCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- incrementRecoveryCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- incrementRecoveryCount() - Method in interface org.springframework.retry.stats.MutableRetryStatistics
- incrementStartedCount() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- incrementStartedCount() - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
- incrementStartedCount() - Method in interface org.springframework.retry.stats.MutableRetryStatistics
- infiniteRetry() - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Retry actions infinitely.
- initialIntervalSupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Set the initial sleep interval value.
- interceptor() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Retry interceptor bean name to be applied for retryable method.
- invocation - Variable in class org.springframework.retry.interceptor.MethodInvocationRetryCallback
- invoke(MethodInvocation) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- invoke(MethodInvocation) - Method in class org.springframework.retry.interceptor.RetryOperationsInterceptor
- invoke(MethodInvocation) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
-
Wrap the method invocation in a stateful retry with the policy and other helpers provided.
- invokeMethod(Object...) - Method in interface org.springframework.classify.util.MethodInvoker
- invokeMethod(Object...) - Method in class org.springframework.classify.util.SimpleMethodInvoker
- isExhaustedOnly() - Method in class org.springframework.retry.context.RetryContextSupport
- isExhaustedOnly() - Method in interface org.springframework.retry.RetryContext
-
Public accessor for the exhausted flag
RetryContext.setExhaustedOnly()
. - isForceRefresh() - Method in interface org.springframework.retry.RetryState
-
Indicate whether a cache lookup can be avoided.
- isForceRefresh() - Method in class org.springframework.retry.support.DefaultRetryState
- isNew(Object[]) - Method in interface org.springframework.retry.interceptor.NewMethodArgumentsIdentifier
-
Inspect the arguments and determine if they have never been processed before.
- isTemplate(String) - Static method in class org.springframework.retry.policy.ExpressionRetryPolicy
-
Check if the expression is a template
- isUseThreadLocal() - Static method in class org.springframework.retry.support.RetrySynchronizationManager
-
Return true if contexts are held in a ThreadLocal (default) rather than a Map.
K
- keyGenerator(MethodArgumentsKeyGenerator) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder
- keyGenerator(MethodArgumentsKeyGenerator) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
-
Stateful retry requires items to be identifiable.
L
- label - Variable in class org.springframework.retry.interceptor.MethodInvocationRetryCallback
- label - Variable in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- label() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
A unique label for the circuit for reporting and state management.
- label() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
A unique label for statistics reporting.
- label(String) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- listeners() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Bean names of retry listeners to use instead of default ones defined in Spring context.
- logger - Variable in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- logger - Variable in class org.springframework.retry.support.RetryTemplate
M
- MapRetryContextCache - Class in org.springframework.retry.policy
-
Map-based implementation of
RetryContextCache
. - MapRetryContextCache() - Constructor for class org.springframework.retry.policy.MapRetryContextCache
-
Create a
MapRetryContextCache
with default capacity. - MapRetryContextCache(int) - Constructor for class org.springframework.retry.policy.MapRetryContextCache
- match(String) - Method in class org.springframework.classify.PatternMatcher
-
This method takes a String key and a map from Strings to values of any type.
- match(String, String) - Static method in class org.springframework.classify.PatternMatcher
-
Lifted from AntPathMatcher in Spring Core.
- MAX_ATTEMPTS - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute that represent the maximum number of attempts for policies that provide a maximum number of attempts before failure.
- maxAttempts() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
- maxAttempts() - Element in annotation interface org.springframework.retry.annotation.Retryable
- maxAttempts(int) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder
- maxAttempts(int) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Apply the max attempts - a SimpleRetryPolicy will be used.
- maxAttempts(int) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- maxAttempts(int) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Attempt an action no more than
maxAttempts
times. - maxAttemptsExpression() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
- maxAttemptsExpression() - Element in annotation interface org.springframework.retry.annotation.Retryable
- MaxAttemptsRetryPolicy - Class in org.springframework.retry.policy
-
Simple retry policy that is aware only about attempt count and retries a fixed number of times.
- MaxAttemptsRetryPolicy() - Constructor for class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
Create a
MaxAttemptsRetryPolicy
with the default number of retry attempts (3), retrying all throwables. - MaxAttemptsRetryPolicy(int) - Constructor for class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
Create a
MaxAttemptsRetryPolicy
with the specified number of retry attempts, retrying all throwables. - maxAttemptsSupplier(Supplier<Integer>) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
Set a supplier for the number of attempts before retries are exhausted.
- maxBackOffPeriodSupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
Set a supplier for the maximum back off period in milliseconds.
- maxDelay() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
The maximum wait (in milliseconds) between retries.
- maxDelay(long) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
The maximum wait in milliseconds between retries.
- maxDelayExpression() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
An expression evaluating to the maximum wait (in milliseconds) between retries.
- maxDelaySupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Set a supplier for the max delay.
- maxIntervalSupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Setter for maximum back off period.
- METHOD - Static variable in class org.springframework.retry.interceptor.RetryOperationsInterceptor
-
The
RetryContext
attribute name for theMethodInvocation.getMethod()
. - METHOD_ARGS - Static variable in class org.springframework.retry.interceptor.RetryOperationsInterceptor
-
The
RetryContext
attribute name for thenew Args(invocation.getArguments())
. - MethodArgumentsKeyGenerator - Interface in org.springframework.retry.interceptor
-
Interface that allows method parameters to be identified and tagged by a unique key.
- MethodInvocationRecoverer<T> - Interface in org.springframework.retry.interceptor
-
Strategy interface for recovery action when processing of an item fails.
- MethodInvocationRetryCallback<T,
E extends Throwable> - Class in org.springframework.retry.interceptor -
Callback class for a Spring AOP reflective `MethodInvocation` that can be retried using a
RetryOperations
. - MethodInvocationRetryCallback(MethodInvocation, String) - Constructor for class org.springframework.retry.interceptor.MethodInvocationRetryCallback
-
Constructor for the class.
- MethodInvocationRetryListenerSupport - Class in org.springframework.retry.listener
-
Empty method implementation of
RetryListener
with focus on the AOP reflective method invocations providing convenience retry listener type-safe (with a `MethodInvocationRetryCallback` callback parameter) specific methods. - MethodInvocationRetryListenerSupport() - Constructor for class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
- MethodInvoker - Interface in org.springframework.classify.util
-
A strategy interface for invoking a method.
- MethodInvokerUtils - Class in org.springframework.classify.util
-
Utility methods to create
MethodInvoker
instances. - MethodInvokerUtils() - Constructor for class org.springframework.classify.util.MethodInvokerUtils
- MethodResolver - Interface in org.springframework.classify.util
-
Strategy interface for detecting a single Method on a Class.
- MetricsRetryListener - Class in org.springframework.retry.support
-
The
RetryListener
implementation for MicrometerTimer
s around retry operations. - MetricsRetryListener(MeterRegistry) - Constructor for class org.springframework.retry.support.MetricsRetryListener
-
Construct an instance based on the provided
MeterRegistry
. - minBackOffPeriodSupplier(Supplier<Long>) - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
Set a supplier for the minimum back off period in milliseconds.
- multiplier() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
If greater than 1.0, used as a multiplier for generating the next delay for backoff; any value less than or equal to 1.0 is treated as 1.0, meaning a fixed delay.
- multiplier(double) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
If positive, then used as a multiplier for generating the next delay for backoff.
- multiplierExpression() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
Evaluates to a value used as a multiplier for generating the next delay for backoff; ; any value less than or equal to 1.0 is treated as 1.0, meaning a fixed delay.
- multiplierSupplier(Supplier<Double>) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Set a supplier for the multiplier.
- multiplierSupplier(Supplier<Double>) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Set the multiplier value.
- MutableRetryStatistics - Interface in org.springframework.retry.stats
N
- NAME - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute name for reporting key.
- NeverRetryPolicy - Class in org.springframework.retry.policy
-
A
RetryPolicy
that allows the first attempt but never permits a retry. - NeverRetryPolicy() - Constructor for class org.springframework.retry.policy.NeverRetryPolicy
- newBuilder() - Static method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Creates a new
BackOffPolicyBuilder
instance. - newDefaultPolicy() - Static method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Creates a new
FixedBackOffPolicy
instance with a delay of 1000ms. - newInstance() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- newInstance() - Method in class org.springframework.retry.backoff.ExponentialRandomBackOffPolicy
- newMethodArgumentsIdentifier(NewMethodArgumentsIdentifier) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
-
Apply a custom new item identifier.
- NewMethodArgumentsIdentifier - Interface in org.springframework.retry.interceptor
-
Strategy interface to distinguish new arguments from ones that have been processed before, e.g. by examining a message flag.
- NO_ARGS - Static variable in class org.springframework.retry.support.Args
-
An empty
Args
with 100 null arguments. - NO_MAXIMUM_ATTEMPTS_SET - Static variable in interface org.springframework.retry.RetryPolicy
-
The value returned by
RetryPolicy.getMaxAttempts()
when the policy doesn't provide a maximum number of attempts before failure - NO_RECOVERY - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute that is non-null (and true) if the exception is not recoverable.
- noBackoff() - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Retry immediately without pausing between attempts.
- NoBackOffPolicy - Class in org.springframework.retry.backoff
-
Implementation of
BackOffPolicy
that performs a no-op and as such all retry operation in a given set proceed one after the other with no pause. - NoBackOffPolicy() - Constructor for class org.springframework.retry.backoff.NoBackOffPolicy
- noRetryFor() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Exception types that are not retryable.
- noRetryFor() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Exception types that are not retryable.
- notRecoverable() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Exception types that are not recoverable; these exceptions are thrown to the caller without calling any recoverer (immediately if also in
CircuitBreaker.noRetryFor()
). - notRecoverable() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Exception types that are not recoverable; these exceptions are thrown to the caller without calling any recoverer (immediately if also in
Retryable.noRetryFor()
). - notRetryOn(Class<? extends Throwable>) - Method in class org.springframework.classify.BinaryExceptionClassifierBuilder
- notRetryOn(Class<? extends Throwable>) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Add the
Throwable
and its subclasses to the list of exceptions that do not cause a retry. - notRetryOn(List<Class<? extends Throwable>>) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Add the list of
Throwable
classes and their subclasses to the list of exceptions that do not cause a retry.
O
- ObjectWaitSleeper - Class in org.springframework.retry.backoff
-
Deprecated.in favor of
ThreadWaitSleeper
- ObjectWaitSleeper() - Constructor for class org.springframework.retry.backoff.ObjectWaitSleeper
-
Deprecated.
- onError(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
- onError(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.listener.RetryListenerSupport
-
Deprecated.
- onError(RetryContext, RetryCallback<T, E>, Throwable) - Method in interface org.springframework.retry.RetryListener
-
Called after every unsuccessful attempt at a retry.
- onError(RetryContext, RetryCallback<T, E>, Throwable) - Method in class org.springframework.retry.stats.StatisticsListener
- onSuccess(RetryContext, RetryCallback<T, E>, T) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
- onSuccess(RetryContext, RetryCallback<T, E>, T) - Method in interface org.springframework.retry.RetryListener
-
Called after a successful attempt; allow the listener to throw a new exception to cause a retry (according to the retry policy), based on the result returned by the
RetryCallback.doWithRetry(RetryContext)
- open(RetryContext) - Method in class org.springframework.retry.policy.BinaryExceptionClassifierRetryPolicy
- open(RetryContext) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- open(RetryContext) - Method in class org.springframework.retry.policy.CompositeRetryPolicy
-
Creates a new context that copies the existing policies and keeps a list of the contexts from each one.
- open(RetryContext) - Method in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
Create an active context that proxies a retry policy by choosing a target from the policy map.
- open(RetryContext) - Method in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
Get a status object that can be used to track the current operation according to this policy.
- open(RetryContext) - Method in class org.springframework.retry.policy.NeverRetryPolicy
-
Return a context that can respond to early termination requests, but does nothing else.
- open(RetryContext) - Method in class org.springframework.retry.policy.PredicateRetryPolicy
- open(RetryContext) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
Get a status object that can be used to track the current operation according to this policy.
- open(RetryContext) - Method in class org.springframework.retry.policy.TimeoutRetryPolicy
- open(RetryContext) - Method in interface org.springframework.retry.RetryPolicy
-
Acquire resources needed for the retry operation.
- open(RetryContext, RetryCallback<T, E>) - Method in class org.springframework.retry.listener.MethodInvocationRetryListenerSupport
- open(RetryContext, RetryCallback<T, E>) - Method in class org.springframework.retry.listener.RetryListenerSupport
-
Deprecated.
- open(RetryContext, RetryCallback<T, E>) - Method in interface org.springframework.retry.RetryListener
-
Called before the first attempt in a retry.
- open(RetryContext, RetryCallback<T, E>) - Method in class org.springframework.retry.support.MetricsRetryListener
- open(RetryPolicy, RetryState) - Method in class org.springframework.retry.support.RetryTemplate
-
Delegate to the
RetryPolicy
having checked in the cache for an existing value if the state is not null. - openTimeout() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
When
CircuitBreaker.maxAttempts()
failures are reached within this timeout, the circuit is opened automatically, preventing access to the downstream component. - openTimeoutExpression() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
When
CircuitBreaker.maxAttempts()
failures are reached within this timeout, the circuit is opened automatically, preventing access to the downstream component. - openTimeoutSupplier(Supplier<Long>) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
-
A supplier for the Timeout for tripping the open circuit.
- order() - Element in annotation interface org.springframework.retry.annotation.EnableRetry
-
Indicate the order in which the
RetryConfiguration
AOP advice should be applied. - org.springframework.classify - package org.springframework.classify
- org.springframework.classify.annotation - package org.springframework.classify.annotation
- org.springframework.classify.util - package org.springframework.classify.util
- org.springframework.retry - package org.springframework.retry
-
Infrastructure implementations of retry concerns.
- org.springframework.retry.annotation - package org.springframework.retry.annotation
- org.springframework.retry.backoff - package org.springframework.retry.backoff
-
Infrastructure implementations of retry backoff concerns.
- org.springframework.retry.context - package org.springframework.retry.context
-
Infrastructure implementations of retry context concerns.
- org.springframework.retry.interceptor - package org.springframework.retry.interceptor
-
Infrastructure implementations of retry aop concerns.
- org.springframework.retry.listener - package org.springframework.retry.listener
-
Infrastructure implementations of retry interceptor concerns.
- org.springframework.retry.policy - package org.springframework.retry.policy
-
Infrastructure implementations of retry policy concerns.
- org.springframework.retry.stats - package org.springframework.retry.stats
- org.springframework.retry.support - package org.springframework.retry.support
-
Infrastructure implementations of retry support concerns.
P
- PatternMatcher<S> - Class in org.springframework.classify
- PatternMatcher(Map<String, S>) - Constructor for class org.springframework.classify.PatternMatcher
-
Initialize a new
PatternMatcher
with a map of patterns to values - PatternMatchingClassifier<T> - Class in org.springframework.classify
-
A
Classifier
that maps from String patterns with wildcards to a set of values of a given type. - PatternMatchingClassifier() - Constructor for class org.springframework.classify.PatternMatchingClassifier
-
Default constructor.
- PatternMatchingClassifier(Map<String, T>) - Constructor for class org.springframework.classify.PatternMatchingClassifier
-
Create a classifier from the provided map.
- PredicateRetryPolicy - Class in org.springframework.retry.policy
- PredicateRetryPolicy(Predicate<Throwable>) - Constructor for class org.springframework.retry.policy.PredicateRetryPolicy
- proxyTargetClass() - Element in annotation interface org.springframework.retry.annotation.EnableRetry
-
Indicate whether subclass-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
- put(Object, RetryContext) - Method in class org.springframework.retry.policy.MapRetryContextCache
- put(Object, RetryContext) - Method in interface org.springframework.retry.policy.RetryContextCache
- put(Object, RetryContext) - Method in class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
R
- random() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
In the exponential case (
Backoff.multiplier()
> 1.0) set this to true to have the backoff delays randomized with jitter, so that the maximum delay is multiplier times the previous delay and the distribution is uniform between the two values. - random(boolean) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
In the exponential case (
BackOffPolicyBuilder.multiplier
> 0) set this to true to have the backoff delays randomized, so that the maximum delay is multiplier times the previous delay and the distribution is uniform between the two values. - randomExpression() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
Evaluates to a value.
- randomSupplier(Supplier<Boolean>) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
Set a supplier for the random.
- recover() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Name of method in this class to use for recover.
- recover() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Name of method in this class to use for recover.
- recover(Object[], Throwable) - Method in class org.springframework.retry.annotation.RecoverAnnotationRecoveryHandler
- recover(Object[], Throwable) - Method in interface org.springframework.retry.interceptor.MethodInvocationRecoverer
-
Recover gracefully from an error.
- recover(RetryContext) - Method in interface org.springframework.retry.RecoveryCallback
- Recover - Annotation Interface in org.springframework.retry.annotation
-
Annotation for a method invocation that is a recovery handler.
- RecoverAnnotationRecoveryHandler<T> - Class in org.springframework.retry.annotation
-
A recoverer for method invocations based on the
@Recover
annotation. - RecoverAnnotationRecoveryHandler(Object, Method) - Constructor for class org.springframework.retry.annotation.RecoverAnnotationRecoveryHandler
- RECOVERED - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute that is non-null (and true) if the recovery path was taken.
- recoverer - Variable in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- recoverer(MethodInvocationRecoverer<?>) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder
- recoverer(MethodInvocationRecoverer<?>) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Apply a
MethodInvocationRecoverer
for the Retry interceptor. - recoverer(MethodInvocationRecoverer<?>) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- RecoveryCallback<T> - Interface in org.springframework.retry
-
Callback for stateful retry after all tries are exhausted.
- register(RetryContext) - Static method in class org.springframework.retry.support.RetrySynchronizationManager
-
Method for registering a context - should only be used by
RetryOperations
implementations to ensure thatRetrySynchronizationManager.getContext()
always returns the correct value. - registerListener(RetryListener) - Method in class org.springframework.retry.support.RetryTemplate
-
Register an additional listener at the end of the list.
- registerListener(RetryListener, int) - Method in class org.springframework.retry.support.RetryTemplate
-
Register an additional listener at the specified index.
- registerThrowable(Throwable) - Method in class org.springframework.retry.context.RetryContextSupport
-
Set the exception for the public interface
RetryContext
, and also increment the retry count if the throwable is non-null. - registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.BinaryExceptionClassifierRetryPolicy
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.CompositeRetryPolicy
-
Delegate to the policies that were in operation when the context was created.
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
Delegate to the policy currently activated in the context.
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
Update the status with another attempted retry and the latest exception.
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.NeverRetryPolicy
-
Make the throwable available for downstream use through the context.
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.PredicateRetryPolicy
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
Update the status with another attempted retry and the latest exception.
- registerThrowable(RetryContext, Throwable) - Method in class org.springframework.retry.policy.TimeoutRetryPolicy
- registerThrowable(RetryContext, Throwable) - Method in interface org.springframework.retry.RetryPolicy
-
Called once per retry attempt, after the callback fails.
- registerThrowable(RetryPolicy, RetryState, RetryContext, Throwable) - Method in class org.springframework.retry.support.RetryTemplate
- remove(Object) - Method in class org.springframework.retry.policy.MapRetryContextCache
- remove(Object) - Method in interface org.springframework.retry.policy.RetryContextCache
- remove(Object) - Method in class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
- resetTimeout() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
If the circuit is open for longer than this timeout then it resets on the next call to give the downstream component a chance to respond again.
- resetTimeoutExpression() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
If the circuit is open for longer than this timeout then it resets on the next call to give the downstream component a chance to respond again.
- resetTimeoutSupplier(Supplier<Long>) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
-
A supplier for the timeout for resetting circuit in milliseconds.
- rethrow(RetryContext, String, boolean) - Method in class org.springframework.retry.support.RetryTemplate
- Retryable - Interface in org.springframework.retry.interceptor
-
Marker interface for proxies that are providing retryable behaviour.
- Retryable - Annotation Interface in org.springframework.retry.annotation
-
Annotation for a method invocation that is retryable.
- RetryCacheCapacityExceededException - Exception in org.springframework.retry.policy
-
Exception that indicates that a cache limit was exceeded.
- RetryCacheCapacityExceededException(String) - Constructor for exception org.springframework.retry.policy.RetryCacheCapacityExceededException
-
Constructs a new instance with a message.
- RetryCacheCapacityExceededException(String, Throwable) - Constructor for exception org.springframework.retry.policy.RetryCacheCapacityExceededException
-
Constructs a new instance with a message and nested exception.
- RetryCallback<T,
E extends Throwable> - Interface in org.springframework.retry -
Callback interface for an operation that can be retried using a
RetryOperations
. - RetryConfiguration - Class in org.springframework.retry.annotation
-
Basic configuration for
@Retryable
processing. - RetryConfiguration() - Constructor for class org.springframework.retry.annotation.RetryConfiguration
- RetryContext - Interface in org.springframework.retry
-
Low-level access to ongoing retry operation.
- RetryContextCache - Interface in org.springframework.retry.policy
-
Simple map-like abstraction for stateful retry policies to use when storing and retrieving
RetryContext
instances. - RetryContextSupport - Class in org.springframework.retry.context
- RetryContextSupport(RetryContext) - Constructor for class org.springframework.retry.context.RetryContextSupport
- RetryException - Exception in org.springframework.retry
- RetryException(String) - Constructor for exception org.springframework.retry.RetryException
- RetryException(String, Throwable) - Constructor for exception org.springframework.retry.RetryException
- retryFor() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Exception types that are retryable.
- retryFor() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Exception types that are retryable.
- RetryInterceptorBuilder<T extends org.aopalliance.intercept.MethodInterceptor> - Class in org.springframework.retry.interceptor
-
Simplified facade to make it easier and simpler to build a
StatefulRetryOperationsInterceptor
or (stateless)RetryOperationsInterceptor
by providing a fluent interface to defining the behavior on error. - RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder - Class in org.springframework.retry.interceptor
- RetryInterceptorBuilder.StatefulRetryInterceptorBuilder - Class in org.springframework.retry.interceptor
- RetryInterceptorBuilder.StatelessRetryInterceptorBuilder - Class in org.springframework.retry.interceptor
- RetryListener - Interface in org.springframework.retry
-
Interface for listener that can be used to add behaviour to a retry.
- RetryListenerSupport - Class in org.springframework.retry.listener
-
Deprecated, for removal: This API element is subject to removal in a future version.in favor of the default implementations in
RetryListener
- RetryListenerSupport() - Constructor for class org.springframework.retry.listener.RetryListenerSupport
-
Deprecated.
- retryOn(Class<? extends Throwable>) - Method in class org.springframework.classify.BinaryExceptionClassifierBuilder
- retryOn(Class<? extends Throwable>) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Add the
Throwable
and its subclasses to the list of exceptions that cause a retry. - retryOn(Predicate<Throwable>) - Method in class org.springframework.retry.support.RetryTemplateBuilder
- retryOn(List<Class<? extends Throwable>>) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Add the list of
Throwable
classes and their subclasses to the list of exceptions that cause a retry. - retryOperations - Variable in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- retryOperations(RetryOperations) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder
- retryOperations(RetryOperations) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Apply the retry operations - once this is set, other properties can no longer be set; can't be set if other properties have been applied.
- retryOperations(RetryOperations) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- RetryOperations - Interface in org.springframework.retry
-
Defines the basic set of operations implemented by
RetryOperations
to execute operations with configurable retry behaviour. - RetryOperationsInterceptor - Class in org.springframework.retry.interceptor
-
A
MethodInterceptor
that can be used to automatically retry calls to a method on a service if it fails. - RetryOperationsInterceptor() - Constructor for class org.springframework.retry.interceptor.RetryOperationsInterceptor
- retryPolicy(RetryPolicy) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder
- retryPolicy(RetryPolicy) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
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.
- retryPolicy(RetryPolicy) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
- RetryPolicy - Interface in org.springframework.retry
-
A
RetryPolicy
is responsible for allocating and managing resources needed byRetryOperations
. - RetrySimulation - Class in org.springframework.retry.support
-
The results of a simulation.
- RetrySimulation() - Constructor for class org.springframework.retry.support.RetrySimulation
- RetrySimulation.SleepSequence - Class in org.springframework.retry.support
- RetrySimulator - Class in org.springframework.retry.support
-
A
RetrySimulator
is a tool for exercising retry + backoff operations. - RetrySimulator(SleepingBackOffPolicy<?>, RetryPolicy) - Constructor for class org.springframework.retry.support.RetrySimulator
- RetryState - Interface in org.springframework.retry
-
Stateful retry is characterised by having to recognise the items that are being processed, so this interface is used primarily to provide a cache key in between failed attempts.
- RetryStatistics - Interface in org.springframework.retry
-
Interface for statistics reporting of retry attempts.
- RetryStatisticsFactory - Interface in org.springframework.retry.stats
- RetrySynchronizationManager - Class in org.springframework.retry.support
-
Global variable support for retry clients.
- retryTemplate - Variable in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- RetryTemplate - Class in org.springframework.retry.support
-
Template class that simplifies the execution of operations with retry semantics.
- RetryTemplate() - Constructor for class org.springframework.retry.support.RetryTemplate
- RetryTemplateBuilder - Class in org.springframework.retry.support
-
Builder that provides a fluent API to configure new instances of
RetryTemplate
. - RetryTemplateBuilder() - Constructor for class org.springframework.retry.support.RetryTemplateBuilder
- rollbackFor(Throwable) - Method in interface org.springframework.retry.RetryState
-
Check whether this exception requires a rollback.
- rollbackFor(Throwable) - Method in class org.springframework.retry.support.DefaultRetryState
- rollbackFor(Classifier<? super Throwable, Boolean>) - Method in class org.springframework.retry.interceptor.RetryInterceptorBuilder.StatefulRetryInterceptorBuilder
-
Control the rollback of an ongoing transaction.
S
- setBackOffPeriod(long) - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
-
Set the back off period in milliseconds.
- setBackOffPolicy(BackOffPolicy) - Method in class org.springframework.retry.support.RetryTemplate
-
Setter for
BackOffPolicy
. - setBeanFactory(BeanFactory) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- setBeanFactory(BeanFactory) - Method in class org.springframework.retry.annotation.RetryConfiguration
-
Set the
BeanFactory
to be used when looking up executors by qualifier. - setBeanFactory(BeanFactory) - Method in class org.springframework.retry.policy.ExpressionRetryPolicy
- setCapacity(int) - Method in class org.springframework.retry.policy.MapRetryContextCache
-
Public setter for the capacity.
- setCapacity(int) - Method in class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
-
Public setter for the capacity.
- setCustomTags(Iterable<Tag>) - Method in class org.springframework.retry.support.MetricsRetryListener
-
Supply tags which are going to be used for all the timers managed by this listener.
- setCustomTagsProvider(Function<RetryContext, Iterable<Tag>>) - Method in class org.springframework.retry.support.MetricsRetryListener
-
Supply a
Function
to build additional tags for all the timers based on theRetryContext
. - setDefaultValue(C) - Method in class org.springframework.classify.SubclassClassifier
-
Public setter for the default value for mapping keys that are not found in the map (or their subclasses).
- setDelegate(Object) - Method in class org.springframework.classify.ClassifierAdapter
-
Search for the
Classifier
annotation on a method in the supplied delegate and use that to create aClassifier
from the parameter type to the return type. - setDelegate(Classifier<C, T>) - Method in class org.springframework.classify.ClassifierAdapter
- setExceptionClassifier(Classifier<Throwable, RetryPolicy>) - Method in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
Setter for an exception classifier.
- setExhaustedOnly() - Method in class org.springframework.retry.context.RetryContextSupport
- setExhaustedOnly() - Method in interface org.springframework.retry.RetryContext
-
Signal to the framework that no more attempts should be made to try or retry the current
RetryCallback
. - setImportMetadata(AnnotationMetadata) - Method in class org.springframework.retry.annotation.RetryConfiguration
- setInitialInterval(long) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Set the initial sleep interval value.
- setKeyGenerator(MethodArgumentsKeyGenerator) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- setKeyGenerator(MethodArgumentsKeyGenerator) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
- setLabel(String) - Method in class org.springframework.retry.interceptor.RetryOperationsInterceptor
- setLabel(String) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
- setListeners(Collection<RetryListener>) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
-
Default retry listeners to apply to all operations.
- setListeners(RetryListener[]) - Method in class org.springframework.retry.support.RetryTemplate
-
Setter for listeners.
- setLogger(Log) - Method in class org.springframework.retry.support.RetryTemplate
-
Setter for
Log
. - setMatcherMap(Map<String, T>) - Method in class org.springframework.classify.BackToBackPatternClassifier
-
A convenience method for creating a pattern matching classifier for the matcher component.
- setMaxAttempts(int) - Method in class org.springframework.retry.policy.MaxAttemptsRetryPolicy
-
Set the number of attempts before retries are exhausted.
- setMaxAttempts(int) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
Set the number of attempts before retries are exhausted.
- setMaxBackOffPeriod(long) - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
Set the maximum back off period in milliseconds.
- setMaxInterval(long) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Setter for maximum back off period.
- setMinBackOffPeriod(long) - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
Set the minimum back off period in milliseconds.
- setMultiplier(double) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Set the multiplier value.
- setName(String) - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- setNewItemIdentifier(NewMethodArgumentsIdentifier) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- setNewItemIdentifier(NewMethodArgumentsIdentifier) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
-
Public setter for the
NewMethodArgumentsIdentifier
. - setNotRecoverable(Class<? extends Throwable>...) - Method in class org.springframework.retry.policy.SimpleRetryPolicy
-
Configure throwables that should not be passed to a recoverer (if present) but thrown immediately.
- setOpenTimeout(long) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
-
Timeout for tripping the open circuit.
- setOptimistic(boolean) - Method in class org.springframework.retry.policy.CompositeRetryPolicy
-
Setter for optimistic.
- setPatternMap(Map<String, T>) - Method in class org.springframework.classify.PatternMatchingClassifier
-
A map from pattern to value
- setPolicies(RetryPolicy[]) - Method in class org.springframework.retry.policy.CompositeRetryPolicy
-
Setter for policies.
- setPolicyMap(Map<Class<? extends Throwable>, RetryPolicy>) - Method in class org.springframework.retry.policy.ExceptionClassifierRetryPolicy
-
Setter for policy map used to create a classifier.
- setRecoverer(MethodInvocationRecoverer<?>) - Method in class org.springframework.retry.interceptor.RetryOperationsInterceptor
- setRecoverer(MethodInvocationRecoverer<?>) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
-
Public setter for the
MethodInvocationRecoverer
to use if the retry is exhausted. - setResetTimeout(long) - Method in class org.springframework.retry.policy.CircuitBreakerRetryPolicy
-
Timeout for resetting circuit in milliseconds.
- setRetryContextCache(RetryContextCache) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
-
Public setter for the
RetryContextCache
. - setRetryContextCache(RetryContextCache) - Method in class org.springframework.retry.support.RetryTemplate
-
Public setter for the
RetryContextCache
. - setRetryOperations(RetryOperations) - Method in class org.springframework.retry.interceptor.RetryOperationsInterceptor
- setRetryOperations(RetryOperations) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
- setRetryPolicy(RetryPolicy) - Method in class org.springframework.retry.support.RetryTemplate
-
Setter for
RetryPolicy
. - setRetryStatisticsFactory(RetryStatisticsFactory) - Method in class org.springframework.retry.stats.DefaultStatisticsRepository
- setRollbackClassifier(Classifier<? super Throwable, Boolean>) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
-
Rollback classifier for the retry state.
- setRouterDelegate(Object) - Method in class org.springframework.classify.BackToBackPatternClassifier
-
A convenience method of creating a router classifier based on a plain old Java Object.
- setSleeper(Sleeper) - Method in class org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor
- setSleeper(Sleeper) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Public setter for the
Sleeper
strategy. - setSleeper(Sleeper) - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
-
Public setter for the
Sleeper
strategy. - setSleeper(Sleeper) - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
-
Public setter for the
Sleeper
strategy. - setThrowLastExceptionOnExhausted(boolean) - Method in class org.springframework.retry.support.RetryTemplate
-
Whether to re-throw last exception or wrap into
ExhaustedRetryException
when all retry attempts are exhausted. - setTimeout(long) - Method in class org.springframework.retry.policy.TimeoutRetryPolicy
-
Setter for timeout in milliseconds.
- setTraverseCauses(boolean) - Method in class org.springframework.classify.BinaryExceptionClassifier
- setTypeMap(Map<Class<? extends T>, C>) - Method in class org.springframework.classify.SubclassClassifier
-
Set the classifications up as a map.
- setUseRawKey(boolean) - Method in class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
-
Set to true to use the raw key generated by the key generator.
- setUseThreadLocal(boolean) - Static method in class org.springframework.retry.support.RetrySynchronizationManager
-
Set to false to store the context in a map (keyed by the current thread) instead of in a
ThreadLocal
. - setWindow(long) - Method in class org.springframework.retry.stats.DefaultRetryStatisticsFactory
-
Window in milliseconds for exponential decay factor in rolling averages.
- setWindow(long) - Method in class org.springframework.retry.stats.ExponentialAverageRetryStatistics
-
Window in milliseconds for exponential decay factor in rolling average.
- shouldRethrow(RetryPolicy, RetryContext, RetryState) - Method in class org.springframework.retry.support.RetryTemplate
-
Extension point for subclasses to decide on behaviour after catching an exception in a
RetryCallback
. - SimpleMethodInvoker - Class in org.springframework.classify.util
-
Simple implementation of the
MethodInvoker
interface that invokes a method on an object. - SimpleMethodInvoker(Object, Method) - Constructor for class org.springframework.classify.util.SimpleMethodInvoker
- SimpleMethodInvoker(Object, String, Class<?>...) - Constructor for class org.springframework.classify.util.SimpleMethodInvoker
- simpleRetryPolicy - Variable in class org.springframework.retry.interceptor.RetryInterceptorBuilder
- SimpleRetryPolicy - Class in org.springframework.retry.policy
-
Simple retry policy that retries a fixed number of times for a set of named exceptions (and subclasses).
- SimpleRetryPolicy() - Constructor for class org.springframework.retry.policy.SimpleRetryPolicy
-
Create a
SimpleRetryPolicy
with the default number of retry attempts, retrying all exceptions. - SimpleRetryPolicy(int) - Constructor for class org.springframework.retry.policy.SimpleRetryPolicy
-
Create a
SimpleRetryPolicy
with the specified number of retry attempts, retrying all exceptions. - SimpleRetryPolicy(int, Map<Class<? extends Throwable>, Boolean>) - Constructor for class org.springframework.retry.policy.SimpleRetryPolicy
-
Create a
SimpleRetryPolicy
with the specified number of retry attempts. - SimpleRetryPolicy(int, Map<Class<? extends Throwable>, Boolean>, boolean) - Constructor for class org.springframework.retry.policy.SimpleRetryPolicy
-
Create a
SimpleRetryPolicy
with the specified number of retry attempts. - SimpleRetryPolicy(int, Map<Class<? extends Throwable>, Boolean>, boolean, boolean) - Constructor for class org.springframework.retry.policy.SimpleRetryPolicy
-
Create a
SimpleRetryPolicy
with the specified number of retry attempts. - SimpleRetryPolicy(int, BinaryExceptionClassifier) - Constructor for class org.springframework.retry.policy.SimpleRetryPolicy
-
Create a
SimpleRetryPolicy
with the specified number of retry attempts and provided exception classifier. - sleep(long) - Method in class org.springframework.retry.backoff.ObjectWaitSleeper
-
Deprecated.
- sleep(long) - Method in interface org.springframework.retry.backoff.Sleeper
-
Pause for the specified period using whatever means available.
- sleep(long) - Method in class org.springframework.retry.backoff.ThreadWaitSleeper
- sleeper(Sleeper) - Method in class org.springframework.retry.backoff.BackOffPolicyBuilder
-
The
Sleeper
instance to be used to back off. - Sleeper - Interface in org.springframework.retry.backoff
-
Strategy interface for backoff policies to delegate the pausing of execution.
- SleepingBackOffPolicy<T extends SleepingBackOffPolicy<T>> - Interface in org.springframework.retry.backoff
-
A interface which can be mixed in by
BackOffPolicy
s indicating that they sleep when backing off. - SleepSequence(List<Long>) - Constructor for class org.springframework.retry.support.RetrySimulation.SleepSequence
- SoftReferenceMapRetryContextCache - Class in org.springframework.retry.policy
-
Map-based implementation of
RetryContextCache
. - SoftReferenceMapRetryContextCache() - Constructor for class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
-
Create a
SoftReferenceMapRetryContextCache
with default capacity. - SoftReferenceMapRetryContextCache(int) - Constructor for class org.springframework.retry.policy.SoftReferenceMapRetryContextCache
- start(RetryContext) - Method in interface org.springframework.retry.backoff.BackOffPolicy
-
Start a new block of back off operations.
- start(RetryContext) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
-
Returns a new instance of
BackOffContext
with the configured properties. - start(RetryContext) - Method in class org.springframework.retry.backoff.ExponentialRandomBackOffPolicy
-
Returns a new instance of
BackOffContext
, seeded with this policies settings. - start(RetryContext) - Method in class org.springframework.retry.backoff.StatelessBackOffPolicy
-
Returns '
null
'. - STATE_KEY - Static variable in interface org.springframework.retry.RetryContext
-
Retry context attribute name for state key.
- stateful() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Flag to say that the retry is stateful: i.e. exceptions are re-thrown, but the retry policy is applied with the same policy to subsequent invocations with the same arguments.
- stateful() - Static method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Create a builder for a stateful retry interceptor.
- StatefulRetryOperationsInterceptor - Class in org.springframework.retry.interceptor
-
A
MethodInterceptor
that can be used to automatically retry calls to a method on a service if it fails. - StatefulRetryOperationsInterceptor() - Constructor for class org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
- stateless() - Static method in class org.springframework.retry.interceptor.RetryInterceptorBuilder
-
Create a builder for a stateless retry interceptor.
- StatelessBackOffPolicy - Class in org.springframework.retry.backoff
-
Simple base class for
BackOffPolicy
implementations that maintain no state across invocations. - StatelessBackOffPolicy() - Constructor for class org.springframework.retry.backoff.StatelessBackOffPolicy
- StatisticsListener - Class in org.springframework.retry.stats
- StatisticsListener(StatisticsRepository) - Constructor for class org.springframework.retry.stats.StatisticsListener
- StatisticsRepository - Interface in org.springframework.retry.stats
- SubclassClassifier<T,
C> - Class in org.springframework.classify -
A
Classifier
for a parameterised object type based on a map. - SubclassClassifier() - Constructor for class org.springframework.classify.SubclassClassifier
-
Create a
SubclassClassifier
with null default value. - SubclassClassifier(C) - Constructor for class org.springframework.classify.SubclassClassifier
-
Create a
SubclassClassifier
with supplied default value. - SubclassClassifier(Map<Class<? extends T>, C>, C) - Constructor for class org.springframework.classify.SubclassClassifier
-
Create a
SubclassClassifier
with supplied default value.
T
- TerminatedRetryException - Exception in org.springframework.retry
- TerminatedRetryException(String) - Constructor for exception org.springframework.retry.TerminatedRetryException
- TerminatedRetryException(String, Throwable) - Constructor for exception org.springframework.retry.TerminatedRetryException
- ThreadWaitSleeper - Class in org.springframework.retry.backoff
-
Simple
Sleeper
implementation that just blocks the current Thread with sleep period. - ThreadWaitSleeper() - Constructor for class org.springframework.retry.backoff.ThreadWaitSleeper
- throwLastExceptionOnExhausted() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Set to
true
to not wrap last exception to theExhaustedRetryException
when retry is exhausted. - TimeoutRetryPolicy - Class in org.springframework.retry.policy
-
A
RetryPolicy
that allows a retry only if it hasn't timed out. - TimeoutRetryPolicy() - Constructor for class org.springframework.retry.policy.TimeoutRetryPolicy
-
Create a new instance with the timeout set to
TimeoutRetryPolicy.DEFAULT_TIMEOUT
. - TimeoutRetryPolicy(long) - Constructor for class org.springframework.retry.policy.TimeoutRetryPolicy
-
Create a new instance with a configurable timeout.
- TIMER_NAME - Static variable in class org.springframework.retry.support.MetricsRetryListener
- toString() - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- toString() - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
- toString() - Method in class org.springframework.retry.backoff.NoBackOffPolicy
- toString() - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
- toString() - Method in class org.springframework.retry.context.RetryContextSupport
- toString() - Method in class org.springframework.retry.policy.SimpleRetryPolicy
- toString() - Method in class org.springframework.retry.stats.DefaultRetryStatistics
- toString() - Method in class org.springframework.retry.support.DefaultRetryState
- toString() - Method in class org.springframework.retry.support.RetrySimulation.SleepSequence
- traversingCauses() - Method in class org.springframework.classify.BinaryExceptionClassifierBuilder
- traversingCauses() - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Enable examining exception causes for
Throwable
instances that cause a retry.
U
- uniformRandomBackoff(long, long) - Method in class org.springframework.retry.support.RetryTemplateBuilder
- uniformRandomBackoff(Duration, Duration) - Method in class org.springframework.retry.support.RetryTemplateBuilder
- UniformRandomBackOffPolicy - Class in org.springframework.retry.backoff
-
Implementation of
BackOffPolicy
that pauses for a random period of time before continuing. - UniformRandomBackOffPolicy() - Constructor for class org.springframework.retry.backoff.UniformRandomBackOffPolicy
V
- validateInterfaces() - Method in class org.springframework.retry.annotation.RetryConfiguration
- value() - Element in annotation interface org.springframework.retry.annotation.Backoff
-
Synonym for
Backoff.delay()
. - value() - Element in annotation interface org.springframework.retry.annotation.CircuitBreaker
-
Deprecated.in favor of
CircuitBreaker.retryFor()
- value() - Element in annotation interface org.springframework.retry.annotation.Retryable
-
Deprecated.in favor of
Retryable.retryFor()
W
- withBeanFactory(BeanFactory) - Method in class org.springframework.retry.policy.ExpressionRetryPolicy
- withinMillis(long) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
RetryTemplateBuilder.withTimeout(long)
instead. - withListener(RetryListener) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Append the provided
listener
toRetryTemplate
's list of listeners. - withListeners(List<RetryListener>) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Append all provided
listeners
toRetryTemplate
's list of listeners. - withLogger(Log) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Applies a dedicated logger to the
RetryTemplate
. - withSleeper(Sleeper) - Method in class org.springframework.retry.backoff.ExponentialBackOffPolicy
- withSleeper(Sleeper) - Method in class org.springframework.retry.backoff.FixedBackOffPolicy
- withSleeper(Sleeper) - Method in interface org.springframework.retry.backoff.SleepingBackOffPolicy
-
Clone the policy and return a new policy which uses the passed sleeper.
- withSleeper(Sleeper) - Method in class org.springframework.retry.backoff.UniformRandomBackOffPolicy
- withTimeout(long) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Retry until
timeoutMillis
has passed since the initial attempt. - withTimeout(Duration) - Method in class org.springframework.retry.support.RetryTemplateBuilder
-
Retry until
timeout
has passed since the initial attempt.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
CircuitBreaker.noRetryFor()
.