C# Класс Spring.Retry.Retry.Support.RetrySynchronizationManager

Global variable support for retry clients. Normally it is not necessary for clients to be aware of the surrounding environment because a IRetryCallback{T} can always use the context it is passed by the enclosing IRetryOperations{T}. But occasionally it might be helpful to have lower level access to the ongoing IRetryContext so we provide a global accessor here. The mutator methods ({@link #clear()} and
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clear ( ) : IRetryContext

Clear the current context at the end of a batch - should only be used by IRetryOperations{T} implementations.

GetContext ( ) : IRetryContext

Public accessor for the locally enclosing IRetryContext.

Register ( IRetryContext context ) : IRetryContext

Method for registering a context - should only be used by IRetryOperations{T} implementations to ensure that GetContext always returns the correct value.

Приватные методы

Метод Описание
RetrySynchronizationManager ( ) : System.Threading

Описание методов

Clear() публичный статический Метод

Clear the current context at the end of a batch - should only be used by IRetryOperations{T} implementations.
public static Clear ( ) : IRetryContext
Результат IRetryContext

GetContext() публичный статический Метод

Public accessor for the locally enclosing IRetryContext.
public static GetContext ( ) : IRetryContext
Результат IRetryContext

Register() публичный статический Метод

Method for registering a context - should only be used by IRetryOperations{T} implementations to ensure that GetContext always returns the correct value.
public static Register ( IRetryContext context ) : IRetryContext
context IRetryContext The new context to register.
Результат IRetryContext