Interface SubscriberOptions (4.0.0)

{object} SubscriberOptions {number} [ackDeadline=10] Acknowledge deadline in seconds. If left unset, the initial value will be 10 seconds, but it will evolve into the 99th percentile time it takes to acknowledge a message, subject to the limitations of minAckDeadline and maxAckDeadline. If ackDeadline is set by the user, then the min/max values will be set to match it. New code should prefer setting minAckDeadline and maxAckDeadline directly. {Duration} [minAckDeadline] The minimum time that ackDeadline should ever have, while it's under library control. {Duration} [maxAckDeadline] The maximum time that ackDeadline should ever have, while it's under library control. {BatchOptions} [batching] Request batching options. {FlowControlOptions} [flowControl] Flow control options. {boolean} [useLegacyFlowControl] 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. {MessageStreamOptions} [streamingOptions] Streaming options.

Package

@google-cloud/pubsub

Properties

ackDeadline

ackDeadline?: number;

batching

batching?: BatchOptions;

enableOpenTelemetryTracing

enableOpenTelemetryTracing?: boolean;

flowControl

flowControl?: FlowControlOptions;

maxAckDeadline

maxAckDeadline?: Duration;

minAckDeadline

minAckDeadline?: Duration;

streamingOptions

streamingOptions?: MessageStreamOptions;

useLegacyFlowControl

useLegacyFlowControl?: boolean;