C# Класс Spring.Retry.Retry.Policy.CompositeRetryPolicy

A IRetryPolicy that composes a list of other policies and delegates calls to them in order.
Наследование: IRetryPolicy
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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