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
파일 보기 프로젝트 열기: spring-projects/spring-net-retry 1 사용 예제들

공개 메소드들

메소드 설명
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