Cloud Pub/Sub v1 API - Class SubscriberClient.ShutdownOptions (3.35.0)

public sealed class SubscriberClient.ShutdownOptions

Reference documentation and code samples for the Cloud Pub/Sub v1 API class SubscriberClient.ShutdownOptions.

Settings available for subscriber shutdown.

Inheritance

object > SubscriberClient.ShutdownOptions

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Properties

Mode

public SubscriberClient.ShutdownMode Mode { get; set; }

The SubscriberClient.ShutdownMode to use for shutdown. Defaults to WaitForProcessing.

Property Value
Type Description
SubscriberClientShutdownMode

Timeout

public TimeSpan? Timeout { get; set; }

The timeout for the shutdown process. If null, a default timeout based on the maximum extension duration is used. Zero or negative values will trigger an immediate hard-stop.

Property Value
Type Description
TimeSpan