导出 (0) 打印
全部展开

EnablePartitioning 属性

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

使队列能在多个消息代理间分区。

命名空间:  Microsoft.ServiceBus.Messaging
程序集:  Microsoft.ServiceBus(在 Microsoft.ServiceBus.dll 中)

声明
Public Property EnablePartitioning As Boolean
	Get
	Set
用法
Dim instance As QueueDescription
Dim value As Boolean

value = instance.EnablePartitioning

instance.EnablePartitioning = value

属性值

类型:System..::..Boolean
返回 Boolean

A partitioned queue consists of multiple fragments, each processed by a different message broker and stored in a different messaging store. This allows the throughput of a single queue or topic to exceed the maximum load a single message broker or messaging store can handle. At the same time, it enables the queue to remain available in case a messaging store becomes temporarily unavailable.

To enable partitioning for a queue, set the EnablePartitioning property to true. This value must be set at the time the queue is created. It is not possible to change this property on an existing queue.

Partitioned queues enforce a maximum message TimeToLive value of 30 days.

// Create partitioned queue.
NamespaceManager ns = NamespaceManager.CreateFromConnectionString(myConnectionString);
QueueDescription qd = new QueueDescription(QueueName);
qd.EnablePartitioning = true;
ns.CreateQueue(qd);

社区附加资源

添加
显示:
© 2014 Microsoft