エクスポート (0) 印刷
すべて展開

PrefetchCount プロパティ

キュー受信者が同時に要求できるメッセージの数を取得または設定します。

名前空間:  Microsoft.ServiceBus.Messaging
アセンブリ:  Microsoft.ServiceBus (Microsoft.ServiceBus.dll)

public int PrefetchCount { get; set; }

プロパティ値

型: System..::..Int32
キュー受信者が同時に要求できるメッセージの数。

You can use PrefetchCount to fetch multiple messages from the server in the same round-trip. This can be useful in scenarios that need lower latency for receiving existing messages from a queue or subscription. Prefetch can also improve throughput depending upon the scenarios as the number of round-trips to the server are reduced.

Prefetch is disabled by default. You can enable it by using this property on the client. You must set PrefetchCount before receiving the first message.

QueueClient client = factory.CreateQueueClient("queue1");
client.PrefetchCount = 200;

BrokeredMessage message = client.Receive();

コミュニティの追加

追加
表示:
© 2014 Microsoft