C# Class Google.Api.Gax.Grpc.RetrySettings

Settings for retrying RPCs.
Afficher le fichier Open project: googleapis/gax-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
FilterForStatusCodes ( ) : Predicate

Creates a retry filter based on status codes.

FilterForStatusCodes ( IEnumerable statusCodes ) : Predicate

Creates a retry filter based on status codes.

RetrySettings ( BackoffSettings retryBackoff, BackoffSettings timeoutBackoff, Expiration totalExpiration ) : Grpc.Core

Constructs an instance with the given backoff configuration, the default RPC filter and jitter.

RetrySettings ( BackoffSettings retryBackoff, BackoffSettings timeoutBackoff, Expiration totalExpiration, Predicate retryFilter ) : Grpc.Core

Constructs an instance with the given configuration, and the default jitter.

RetrySettings ( BackoffSettings retryBackoff, BackoffSettings timeoutBackoff, Expiration totalExpiration, Predicate retryFilter, IJitter delayJitter ) : Grpc.Core

Constructs an instance with the given configuration.

Method Details

FilterForStatusCodes() public static méthode

Creates a retry filter based on status codes.
public static FilterForStatusCodes ( ) : Predicate
Résultat Predicate

FilterForStatusCodes() public static méthode

Creates a retry filter based on status codes.
public static FilterForStatusCodes ( IEnumerable statusCodes ) : Predicate
statusCodes IEnumerable The status codes to retry. Must not be null.
Résultat Predicate

RetrySettings() public méthode

Constructs an instance with the given backoff configuration, the default RPC filter and jitter.
public RetrySettings ( BackoffSettings retryBackoff, BackoffSettings timeoutBackoff, Expiration totalExpiration ) : Grpc.Core
retryBackoff BackoffSettings The backoff policy for the time between retries. Must not be null.
timeoutBackoff BackoffSettings The backoff policy for timeouts of retries. Must not be null.
totalExpiration Expiration The total expiration, across all retries. Must not be null.
Résultat Grpc.Core

RetrySettings() public méthode

Constructs an instance with the given configuration, and the default jitter.
public RetrySettings ( BackoffSettings retryBackoff, BackoffSettings timeoutBackoff, Expiration totalExpiration, Predicate retryFilter ) : Grpc.Core
retryBackoff BackoffSettings The backoff policy for the time between retries. Must not be null.
timeoutBackoff BackoffSettings The backoff policy for timeouts of retries. Must not be null.
totalExpiration Expiration The total expiration, across all retries. Must not be null.
retryFilter Predicate A predicate to determine whether or not a particular exception should cause the operation to be retried, /// or null for the default filter.
Résultat Grpc.Core

RetrySettings() public méthode

Constructs an instance with the given configuration.
public RetrySettings ( BackoffSettings retryBackoff, BackoffSettings timeoutBackoff, Expiration totalExpiration, Predicate retryFilter, IJitter delayJitter ) : Grpc.Core
retryBackoff BackoffSettings The backoff policy for the time between retries. Must not be null.
timeoutBackoff BackoffSettings The backoff policy for timeouts of retries. Must not be null.
totalExpiration Expiration The total expiration, across all retries. Must not be null.
retryFilter Predicate A predicate to determine whether or not a particular exception should cause the operation to be retried, /// or null for the default filter.
delayJitter IJitter The delay jitter to apply for delays, or null for the defautl (random) jitter.
Résultat Grpc.Core