Service Control v1 API - Class ServiceControllerSettings (2.4.0)

public sealed class ServiceControllerSettings : ServiceSettingsBase

Reference documentation and code samples for the Service Control v1 API class ServiceControllerSettings.

Settings for ServiceControllerClient instances.

Inheritance

object > ServiceSettingsBase > ServiceControllerSettings

Namespace

Google.Cloud.ServiceControl.V1

Assembly

Google.Cloud.ServiceControl.V1.dll

Constructors

ServiceControllerSettings()

public ServiceControllerSettings()

Constructs a new ServiceControllerSettings object with default settings.

Properties

CheckSettings

public CallSettings CheckSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceControllerClient.Check and ServiceControllerClient.CheckAsync.

Property Value
Type Description
CallSettings
Remarks
  • Initial retry delay: 1000 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 10000 milliseconds.
  • Maximum attempts: 5
  • Retriable status codes: Unavailable.
  • Timeout: 5 seconds.

ReportSettings

public CallSettings ReportSettings { get; set; }

CallSettings for synchronous and asynchronous calls to ServiceControllerClient.Report and ServiceControllerClient.ReportAsync.

Property Value
Type Description
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 16 seconds.

Methods

Clone()

public ServiceControllerSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
Type Description
ServiceControllerSettings

A deep clone of this ServiceControllerSettings object.

GetDefault()

public static ServiceControllerSettings GetDefault()

Get a new instance of the default ServiceControllerSettings.

Returns
Type Description
ServiceControllerSettings

A new instance of the default ServiceControllerSettings.