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.

WithInstanceName(String)

Sets the Host name.

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

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