|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RetryPolicy
A RetryPolicy
is responsible for allocating and managing resources
needed by RetryOperations
. The RetryPolicy
allows retry
operations to be aware of their context. Context can be internal to the retry
framework, e.g. to support nested retries. Context can also be external, and
the RetryPolicy
provides a uniform API for a range of different
platforms for the external context.
Method Summary | |
---|---|
boolean |
canRetry(RetryContext context)
|
void |
close(RetryContext context)
|
RetryContext |
open(RetryContext parent)
Acquire resources needed for the retry operation. |
void |
registerThrowable(RetryContext context,
java.lang.Throwable throwable)
Called once per retry attempt, after the callback fails. |
Method Detail |
---|
boolean canRetry(RetryContext context)
context
- the current retry status
RetryContext open(RetryContext parent)
parent
- the parent context if we are in a nested retry.
RetryContext
object specific to this manager.void close(RetryContext context)
context
- a retry status created by the
open(RetryContext)
method of this manager.void registerThrowable(RetryContext context, java.lang.Throwable throwable)
context
- the current status object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |