Share via


ChangeFeedProcessorBuilder Class

Definition

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