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

Retry Context Support
Inheritance: Spring.Core.AttributeAccessorSupport, IRetryContext
ファイルを表示 Open project: spring-projects/spring-net-retry

Public Methods

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

The get parent.
public GetParent ( ) : IRetryContext
return IRetryContext

RegisterException() public method

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

RetryContextSupport() public method

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

ToString() public method

The to string.
public ToString ( ) : string
return string