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
Afficher le fichier Open project: spring-projects/spring-net-retry Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

Close() public méthode

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.
Résultat void

Open() public méthode

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.
Résultat IRetryContext

RegisterException() public méthode

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.
Résultat void