Class: Google::Cloud::NetworkServices::V1::GrpcRoute::RetryPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkservices/v1/grpc_route.rb

Overview

The specifications for retries.

Instance Attribute Summary collapse

Instance Attribute Details

#num_retries::Integer

Returns 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.



282
283
284
285
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 282

class RetryPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#retry_conditions::Array<::String>

Returns - 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


282
283
284
285
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 282

class RetryPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end