Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ServiceBusProcessor.PrefetchCount Property

Definition

Namespace:
Azure.Messaging.ServiceBus
Assembly:
Azure.Messaging.ServiceBus.dll
Package:
Azure.Messaging.ServiceBus v7.20.1
Package:
Azure.Messaging.ServiceBus v7.18.0-beta.1
Source:
ServiceBusProcessor.cs
Source:
ServiceBusProcessor.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the number of messages that will be eagerly requested from Queues or Subscriptions during processing. This is intended to help maximize throughput by allowing the processor to receive from a local cache rather than waiting on a service request.

public virtual int PrefetchCount { get; }
member this.PrefetchCount : int
Public Overridable ReadOnly Property PrefetchCount As Integer

Property Value

The prefetch count is specified using PrefetchCount and has a default value of 0.

Applies to


Feedback

Was this page helpful?