public final class RetrySynchronizationManager extends Object
RetryCallbackcan 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
RetryContextso we provide a global accessor here. The mutator methods (
register(RetryContext)should not be used except internally by
|Modifier and Type||Method and Description|
Clear the current context at the end of a batch - should only be used by
Public accessor for the locally enclosing
public static RetryContext getContext()
public static RetryContext register(RetryContext context)
RetryOperationsimplementations to ensure that
getContext()always returns the correct value.
context- the new context to register
Copyright © 2018 SpringSource. All rights reserved.