C# 클래스 Spring.Retry.Retry.Policy.CompositeRetryPolicy

A IRetryPolicy that composes a list of other policies and delegates calls to them in order.
상속: IRetryPolicy
파일 보기 프로젝트 열기: spring-projects/spring-net-retry 1 사용 예제들

공개 메소드들

메소드 설명
CanRetry ( IRetryContext context ) : bool

Delegate to the policies that were in operation when the context was created. If any of them cannot retry then return false, otherwise return true.IRetryPolicy.CanRetry

Close ( IRetryContext context ) : void

Delegate to the policies that were in operation when the context was created. If any of them fails to close the exception is propagated (and those later in the chain are closed before re-throwing).IRetryPolicy.Close

Open ( IRetryContext parent ) : IRetryContext

Creates a new context that copies the existing policies and keeps a list of the contexts from each one. IRetryPolicy.Open

RegisterException ( IRetryContext context, Exception exception ) : void

Delegate to the policies that were in operation when the context was created. IRetryPolicy.Close

메소드 상세

CanRetry() 공개 메소드

Delegate to the policies that were in operation when the context was created. If any of them cannot retry then return false, otherwise return true.IRetryPolicy.CanRetry
public CanRetry ( IRetryContext context ) : bool
context IRetryContext The context.
리턴 bool

Close() 공개 메소드

Delegate to the policies that were in operation when the context was created. If any of them fails to close the exception is propagated (and those later in the chain are closed before re-throwing).IRetryPolicy.Close
public Close ( IRetryContext context ) : void
context IRetryContext The context.
리턴 void

Open() 공개 메소드

Creates a new context that copies the existing policies and keeps a list of the contexts from each one. IRetryPolicy.Open
public Open ( IRetryContext parent ) : IRetryContext
parent IRetryContext The parent.
리턴 IRetryContext

RegisterException() 공개 메소드

Delegate to the policies that were in operation when the context was created. IRetryPolicy.Close
public RegisterException ( IRetryContext context, Exception exception ) : void
context IRetryContext The context.
exception System.Exception The exception.
리턴 void