共用方式為


WorkItemTimeout Element (ADF)

Specifies the amount of time a distributor thread can take to complete a work item assigned to it before the job is canceled and the work item is returned to the available work item pool.

語法

<NotificationClasses>
    <NotificationClass>
        ...
        <Protocols>
            <Protocol>
                <ProtocolExecutionSettings>
                    ...
                    <WorkItemTimeout>

Element Characteristics

Characteristic Description

Data type

duration.

Default value

15 minutes.

Occurrence

Optional once per ProtocolExecutionSettings element.

Updates

Can be added, deleted, and modified when updating the application.

Element Relationships

Relationship Elements

Parent element

ProtocolExecutionSettings Element (ADF)

Child elements

None.

備註

A work item consists of notifications within a single batch that will be delivered through the same delivery channel. Notification Services divides notification batches into work items to take advantage of batch processing and to deliver notifications via multiple delivery channels in parallel.

When a distributor thread is free, it picks up an available work item to format and deliver. The WorkItemTimeout value configures a time limit for formatting and delivery of the notifications in that work item. If the distributor exceeds the timeout, it returns the work item to the pool of available work items so it can be processed by another distributor thread, assuming there is a retry schedule.

The format of the XML duration data type is PnYnMnDTnHnMnS. For more information about XML data types, see Primitive XML Data Types in the MSDN Library.

範例

The following example shows how to specify that a distributor thread can take two minutes to complete a work item.

<WorkItemTimeout>P0DT00H02M00S</WorkItemTimeout>

請參閱

參考

RetrySchedule Element (ADF)
Application Definition File Reference

其他資源

指定傳遞通訊協定名稱與欄位
更新執行個體及應用程式

說明及資訊

取得 SQL Server 2005 協助