C# Class Spring.Retry.Retry.Policy.CompositeRetryPolicy

A IRetryPolicy that composes a list of other policies and delegates calls to them in order.
Inheritance: IRetryPolicy
ファイルを表示 Open project: spring-projects/spring-net-retry Class Usage Examples

Public Methods

Method Description
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

Method Details

CanRetry() public method

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.
return bool

Close() public method

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.
return void

Open() public method

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.
return IRetryContext

RegisterException() public method

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.
return void