C# Class Spring.Retry.Retry.Policy.TimeoutRetryPolicy

A IRetryPolicy that allows a retry only if it hasn't timed out. The clock is started on a call to Open.
Inheritance: IRetryPolicy
Afficher le fichier Open project: spring-projects/spring-net-retry

Méthodes publiques

Свойство Type Description
DEFAULT_TIMEOUT long

Méthodes publiques

Méthode Description
CanRetry ( IRetryContext context ) : bool

Only permits a retry if the timeout has not expired. Does not check the exception at all.

Close ( IRetryContext context ) : void

The close.

Open ( IRetryContext parent ) : IRetryContext

The open.

RegisterException ( IRetryContext context, Exception exception ) : void

The register exception.

Method Details

CanRetry() public méthode

Only permits a retry if the timeout has not expired. Does not check the exception at all.
public CanRetry ( IRetryContext context ) : bool
context IRetryContext The context.
Résultat bool

Close() public méthode

The close.
public Close ( IRetryContext context ) : void
context IRetryContext The context.
Résultat void

Open() public méthode

The open.
public Open ( IRetryContext parent ) : IRetryContext
parent IRetryContext The parent.
Résultat IRetryContext

RegisterException() public méthode

The register exception.
public RegisterException ( IRetryContext context, Exception exception ) : void
context IRetryContext The context.
exception System.Exception The exception.
Résultat void

Property Details

DEFAULT_TIMEOUT public_oe static_oe property

public static long DEFAULT_TIMEOUT
Résultat long