C# Class Spring.Retry.Retry.Support.DefaultRetryState

Default Retry State.
Inheritance: IRetryState
ファイルを表示 Open project: spring-projects/spring-net-retry

Public Methods

Method Description
DefaultRetryState ( object key ) : System

Initializes a new instance of the DefaultRetryState class, defaulting the force refresh flag to false and the rollback classifier to null.

DefaultRetryState ( object key, bool>.IClassifier rollbackClassifier ) : System

Initializes a new instance of the DefaultRetryState class, defaulting the force refresh flag to false.

DefaultRetryState ( object key, bool forceRefresh ) : System

Initializes a new instance of the DefaultRetryState class, defaulting the rollback classifier to null.

DefaultRetryState ( object key, bool forceRefresh, bool>.IClassifier rollbackClassifier ) : System

Initializes a new instance of the DefaultRetryState class. Initializes a new instance of the DefaultRetryState representing the state for a new retry attempt.

GetKey ( ) : object

The get key.

IsForceRefresh ( ) : bool

The is force refresh.

RollbackFor ( Exception exception ) : bool

The rollback for.

ToString ( ) : string

Method Details

DefaultRetryState() public method

Initializes a new instance of the DefaultRetryState class, defaulting the force refresh flag to false and the rollback classifier to null.
public DefaultRetryState ( object key ) : System
key object The key.
return System

DefaultRetryState() public method

Initializes a new instance of the DefaultRetryState class, defaulting the force refresh flag to false.
public DefaultRetryState ( object key, bool>.IClassifier rollbackClassifier ) : System
key object The key.
rollbackClassifier bool>.IClassifier The rollback classifier.
return System

DefaultRetryState() public method

Initializes a new instance of the DefaultRetryState class, defaulting the rollback classifier to null.
public DefaultRetryState ( object key, bool forceRefresh ) : System
key object The key.
forceRefresh bool The force refresh.
return System

DefaultRetryState() public method

Initializes a new instance of the DefaultRetryState class. Initializes a new instance of the DefaultRetryState representing the state for a new retry attempt.
public DefaultRetryState ( object key, bool forceRefresh, bool>.IClassifier rollbackClassifier ) : System
key object The key for the state to allow this retry attempt to be recognised.
forceRefresh bool True if the attempt is known to be a brand new state (could not have previously failed).
rollbackClassifier bool>.IClassifier The rollback classifier to set. The rollback classifier answers true if the exception provided should cause a rollback.
return System

GetKey() public method

The get key.
public GetKey ( ) : object
return object

IsForceRefresh() public method

The is force refresh.
public IsForceRefresh ( ) : bool
return bool

RollbackFor() public method

The rollback for.
public RollbackFor ( Exception exception ) : bool
exception System.Exception The exception.
return bool

ToString() public method

public ToString ( ) : string
return string