C# Class Spring.Retry.Retry.Context.RetryContextSupport

Retry Context Support
Inheritance: Spring.Core.AttributeAccessorSupport, IRetryContext
Afficher le fichier Open project: spring-projects/spring-net-retry

Méthodes publiques

Méthode Description
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.

Method Details

GetParent() public méthode

The get parent.
public GetParent ( ) : IRetryContext
Résultat IRetryContext

RegisterException() public méthode

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

RetryContextSupport() public méthode

Initializes a new instance of the RetryContextSupport class.
public RetryContextSupport ( IRetryContext parent ) : System
parent IRetryContext The parent.
Résultat System

ToString() public méthode

The to string.
public ToString ( ) : string
Résultat string