Class CallTiming
An RPC simple expiration; or retry settings.
Inheritance
Inherited Members
Namespace: Google.Api.Gax.Grpc
Assembly: Google.Api.Gax.Grpc.dll
Syntax
public sealed class CallTiming
Properties
Expiration
If not null, the Expiration specifying when this call expires (with no retry).
Declaration
public Expiration Expiration { get; }
Property Value
Type | Description |
---|---|
Expiration |
Retry
If not null, the RetrySettings specifying how retry is performed for this call.
Declaration
public RetrySettings Retry { get; }
Property Value
Type | Description |
---|---|
RetrySettings |
Type
What CallTimingType is contained in this CallTiming.
Declaration
public CallTimingType Type { get; }
Property Value
Type | Description |
---|---|
CallTimingType |
Methods
FromDeadline(DateTime)
Create a CallTiming with a simple deadline; no retry.
Declaration
public static CallTiming FromDeadline(DateTime deadline)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | deadline | The absolute deadline for a call without retry. |
Returns
Type | Description |
---|---|
CallTiming | A CallTiming with the specified deadline; without retry. |
FromExpiration(Expiration)
Create a CallTiming with a simple expiration; no retry.
Declaration
public static CallTiming FromExpiration(Expiration expiration)
Parameters
Type | Name | Description |
---|---|---|
Expiration | expiration | The Expiration for a call without retry. |
Returns
Type | Description |
---|---|
CallTiming | A CallTiming with the specified expiration; without retry. |
FromRetry(RetrySettings)
Create a CallTiming with retry.
Declaration
public static CallTiming FromRetry(RetrySettings retry)
Parameters
Type | Name | Description |
---|---|---|
RetrySettings | retry | The RetrySettings for a call. |
Returns
Type | Description |
---|---|
CallTiming | A CallTiming with the specified retry settings. |
FromTimeout(TimeSpan)
Create a CallTiming with a simple timeout; no retry.
Declaration
public static CallTiming FromTimeout(TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | timeout | The relative timeout for a call without retry. |
Returns
Type | Description |
---|---|
CallTiming | A CallTiming with the specified timeout; without retry. |