SubscribeOptions interface
Options used when subscribing to a Service Bus queue or subscription.
- Extends
Properties
auto |
Indicates whether the message should be settled automatically based on the result from the
user provided
This option is ignored if messages are received in the
|
max |
The maximum number of concurrent calls that the library can make to the user's message handler. Once this limit has been reached, more messages will not be received until atleast one of the calls to the user's message handler has completed.
|
Inherited Properties
abort |
The signal which can be used to abort requests. |
tracing |
Options used when tracing is enabled. |
Property Details
autoCompleteMessages
Indicates whether the message should be settled automatically based on the result from the
user provided processMessage
callback.
- If an error is thrown from the
processMessage
callback the message will be abandoned usingreceiver.abandonMessage()
. Doing so will make the message available again from the queue/subscription and the delivery count will be incremented. - If NO error is thrown from
processMessage
the message will be completed usingreceiver.completeMessage()
. Doing so removes the message from the queue/subscription.
This option is ignored if messages are received in the receiveAndDelete
receive mode or if
the message is already settled in the user provided message callback.
- Default:
true
.
autoCompleteMessages?: boolean
Property Value
boolean
maxConcurrentCalls
The maximum number of concurrent calls that the library can make to the user's message handler. Once this limit has been reached, more messages will not be received until atleast one of the calls to the user's message handler has completed.
- Default:
1
.
maxConcurrentCalls?: number
Property Value
number
Inherited Property Details
abortSignal
The signal which can be used to abort requests.
abortSignal?: AbortSignalLike
Property Value
Inherited From OperationOptionsBase.abortSignal
tracingOptions
Options used when tracing is enabled.
tracingOptions?: OperationTracingOptions
Property Value
Inherited From OperationOptionsBase.tracingOptions