|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.batch.retry.support.RetrySynchronizationManager
public class RetrySynchronizationManager
Global variable support for retry clients. Normally it is not necessary for
clients to be aware of the surrounding environment because a
RetryCallback
can always use the context it is passed by the
enclosing RetryOperations
. But occasionally it might be helpful to
have lower level access to the ongoing RetryContext
so we provide a
global accessor here. The mutator methods (clear()
and
register(RetryContext)
should not be used except internally by
RetryOperations
implementations.
Method Summary | |
---|---|
static RetryContext |
clear()
Clear the current context at the end of a batch - should only be used by RepeatOperations implementations. |
static RetryContext |
getContext()
Public accessor for the locally enclosing RetryContext . |
static RetryContext |
register(RetryContext context)
Method for registering a context - should only be used by RetryOperations implementations to ensure that
getContext() always returns the correct value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RetryContext getContext()
RetryContext
.
public static RetryContext register(RetryContext context)
RetryOperations
implementations to ensure that
getContext()
always returns the correct value.
context
- the new context to register
public static RetryContext clear()
RepeatOperations
implementations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |