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

Settings for retrying RPCs.
Mostrar archivo Open project: googleapis/gax-dotnet Class Usage Examples

Public Methods

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

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

FilterForStatusCodes() public static method

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

RetrySettings() public method

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.
return Grpc.Core

RetrySettings() public method

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.
return Grpc.Core

RetrySettings() public method

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.
return Grpc.Core