public sealed class Settings
Settings for SubscriberClient.
Defaults will be used for null
properties.
Inheritance
System.Object > SubscriberClient.SettingsNamespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Constructors
Settings()
public Settings()
Create a new instance.
Properties
AckDeadline
public TimeSpan? AckDeadline { get; set; }
The lease time before which a message must either be ACKed
or have its lease extended. This is truncated to the nearest second.
If null
, uses the default of DefaultAckDeadline.
Property Value | |
---|---|
Type | Description |
System.Nullable<System.TimeSpan> |
AckExtensionWindow
public TimeSpan? AckExtensionWindow { get; set; }
Duration before AckDeadline at which the message ACK deadline
is automatically extended.
If null
, uses the default of DefaultAckExtensionWindow.
Property Value | |
---|---|
Type | Description |
System.Nullable<System.TimeSpan> |
FlowControlSettings
public FlowControlSettings FlowControlSettings { get; set; }
Flow control settings.
If null
, uses flow control settings from DefaultFlowControlSettings.
Property Value | |
---|---|
Type | Description |
Google.Api.Gax.FlowControlSettings |
MaxTotalAckExtension
public TimeSpan? MaxTotalAckExtension { get; set; }
Maximum duration for which a message ACK deadline will be extended.
If null
, uses the default of DefaultMaxTotalAckExtension.
Property Value | |
---|---|
Type | Description |
System.Nullable<System.TimeSpan> |
Scheduler
public IScheduler Scheduler { get; set; }
The Google.Api.Gax.IScheduler used to schedule delays.
If null
, the default Google.Api.Gax.SystemScheduler is used.
This is usually only used for testing.
Property Value | |
---|---|
Type | Description |
Google.Api.Gax.IScheduler |
UseLegacyFlowControl
public bool UseLegacyFlowControl { get; set; }
If set to true, disables enforcing flow control settings at the Cloud PubSub server and uses the less accurate method of only enforcing flow control at the client side.
Property Value | |
---|---|
Type | Description |
System.Boolean |
Methods
Clone()
public SubscriberClient.Settings Clone()
Create a clone of this object.
Returns | |
---|---|
Type | Description |
SubscriberClient.Settings | A clone of this object. |