ChangeFeedProcessorBuilder Class
Definition
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.
Provides a flexible way to create an instance of ChangeFeedProcessor with custom set of parameters.
public class ChangeFeedProcessorBuilder
type ChangeFeedProcessorBuilder = class
Public Class ChangeFeedProcessorBuilder
- Inheritance
-
ChangeFeedProcessorBuilder
Methods
Build() |
Builds a new instance of the ChangeFeedProcessor with the specified configuration. |
WithErrorNotification(Container+ChangeFeedMonitorErrorDelegate) |
Defines a delegate to receive notifications on errors that occur during change feed processor execution. |
WithInstanceName(String) |
Sets the compute instance name that will host the processor. |
WithLeaseAcquireNotification(Container+ChangeFeedMonitorLeaseAcquireDelegate) |
Defines a delegate to receive notifications on lease acquires that occur during change feed processor execution. |
WithLeaseConfiguration(Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) |
Sets a custom configuration to be used by this instance of ChangeFeedProcessor to control how leases are maintained in a container when using WithLeaseContainer(Container). |
WithLeaseContainer(Container) |
Sets the Cosmos Container to hold the leases state |
WithLeaseReleaseNotification(Container+ChangeFeedMonitorLeaseReleaseDelegate) |
Defines a delegate to receive notifications on lease releases that occur during change feed processor execution. |
WithMaxItems(Int32) |
Sets the maximum number of items to be returned in the enumeration operation in the Azure Cosmos DB service. |
WithPollInterval(TimeSpan) |
Gets or sets the delay in between polling the change feed for new changes, after all current changes are drained. |
WithStartTime(DateTime) |
Sets the time (exclusive) to start looking for changes after. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應