Uses of Interface
org.springframework.retry.RetryState
Packages that use RetryState
Package
Description
Infrastructure implementations of retry concerns.
Infrastructure implementations of retry support concerns.
-
Uses of RetryState in org.springframework.retry
Methods in org.springframework.retry with parameters of type RetryStateModifier and TypeMethodDescription<T,E extends Throwable>
TRetryOperations.execute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState retryState) A stateful retry with a recovery path.<T,E extends Throwable>
TRetryOperations.execute(RetryCallback<T, E> retryCallback, RetryState retryState) A simple stateful retry. -
Uses of RetryState in org.springframework.retry.support
Classes in org.springframework.retry.support that implement RetryStateMethods in org.springframework.retry.support with parameters of type RetryStateModifier and TypeMethodDescriptionprotected voidRetryTemplate.close(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded) Clean up the cache if necessary and close the context provided (if the flag indicates that processing was successful).protected <T,E extends Throwable>
TRetryTemplate.doExecute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState state) Execute the callback once if the policy dictates that we can, otherwise execute the recovery callback.final <T,E extends Throwable>
TRetryTemplate.execute(RetryCallback<T, E> retryCallback, RecoveryCallback<T> recoveryCallback, RetryState retryState) 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.final <T,E extends Throwable>
TRetryTemplate.execute(RetryCallback<T, E> retryCallback, RetryState retryState) 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.protected <T> TRetryTemplate.handleRetryExhausted(RecoveryCallback<T> recoveryCallback, RetryContext context, RetryState state) Actions to take after final attempt has failed.protected RetryContextRetryTemplate.open(RetryPolicy retryPolicy, RetryState state) Delegate to theRetryPolicyhaving checked in the cache for an existing value if the state is not null.protected voidRetryTemplate.registerThrowable(RetryPolicy retryPolicy, RetryState state, RetryContext context, Throwable e) protected booleanRetryTemplate.shouldRethrow(RetryPolicy retryPolicy, RetryContext context, RetryState state) Extension point for subclasses to decide on behaviour after catching an exception in aRetryCallback.