C# Класс Spring.Retry.Retry.Context.RetryContextSupport

Retry Context Support
Наследование: Spring.Core.AttributeAccessorSupport, IRetryContext
Показать файл Открыть проект

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

Метод Описание
GetParent ( ) : IRetryContext

The get parent.

RegisterException ( Exception exception ) : void

Set the exception for the public interface IRetryContext, and also increment the retry count if the throwable is non-null. All IRetryPolicy implementations should use this method when they register the exception. It should only be called once per retry attempt because it increments a counter. Use of this method is not enforced by the framework - it is a service provider contract for authors of policies.

RetryContextSupport ( IRetryContext parent ) : System

Initializes a new instance of the RetryContextSupport class.

ToString ( ) : string

The to string.

Описание методов

GetParent() публичный Метод

The get parent.
public GetParent ( ) : IRetryContext
Результат IRetryContext

RegisterException() публичный Метод

Set the exception for the public interface IRetryContext, and also increment the retry count if the throwable is non-null. All IRetryPolicy implementations should use this method when they register the exception. It should only be called once per retry attempt because it increments a counter. Use of this method is not enforced by the framework - it is a service provider contract for authors of policies.
public RegisterException ( Exception exception ) : void
exception System.Exception The exception that caused the current retry attempt to fail.
Результат void

RetryContextSupport() публичный Метод

Initializes a new instance of the RetryContextSupport class.
public RetryContextSupport ( IRetryContext parent ) : System
parent IRetryContext The parent.
Результат System

ToString() публичный Метод

The to string.
public ToString ( ) : string
Результат string