Network Services V1 API - Class Google::Cloud::NetworkServices::V1::GrpcRoute::RetryPolicy (v1.0.1)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::RetryPolicy.

The specifications for retries.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#num_retries

def num_retries() -> ::Integer
Returns
  • (::Integer) — Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.

#num_retries=

def num_retries=(value) -> ::Integer
Parameter
  • value (::Integer) — Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.
Returns
  • (::Integer) — Specifies the allowed number of retries. This number must be > 0. If not specified, default to 1.

#retry_conditions

def retry_conditions() -> ::Array<::String>
Returns
  • (::Array<::String>) —
    • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts.
    • refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled: Router will retry if the gRPC status code in the response header is set to cancelled
    • deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded
    • resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted
    • unavailable: Router will retry if the gRPC status code in the response header is set to unavailable

#retry_conditions=

def retry_conditions=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) —
    • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts.
    • refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled: Router will retry if the gRPC status code in the response header is set to cancelled
    • deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded
    • resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted
    • unavailable: Router will retry if the gRPC status code in the response header is set to unavailable
Returns
  • (::Array<::String>) —
    • connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts.
    • refused-stream: Router will retry if the backend service resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry.
    • cancelled: Router will retry if the gRPC status code in the response header is set to cancelled
    • deadline-exceeded: Router will retry if the gRPC status code in the response header is set to deadline-exceeded
    • resource-exhausted: Router will retry if the gRPC status code in the response header is set to resource-exhausted
    • unavailable: Router will retry if the gRPC status code in the response header is set to unavailable