Skip to content

InMemoryLeaseContainer: Adds public API to use InMemoryLeaseContainer with ChangeFeedProcessorBuilder #5182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 13, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,11 @@ public ChangeFeedProcessorBuilder WithLeaseContainer(Container leaseContainer)

/// <summary>
/// Uses an in-memory container to maintain state of the leases
/// </summary>
/// <remarks>
///
/// Using an in-memory container restricts the scaling capability to just the instance running the current processor.
/// </remarks>
/// </summary>
/// <returns>The instance of <see cref="ChangeFeedProcessorBuilder"/> to use.</returns>
internal virtual ChangeFeedProcessorBuilder WithInMemoryLeaseContainer()
public virtual ChangeFeedProcessorBuilder WithInMemoryLeaseContainer()
{
if (this.leaseContainer != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,11 @@
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder WithErrorNotification(ChangeFeedMonitorErrorDelegate);IsAbstract:False;IsStatic:False;IsVirtual:False;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
},
"Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder WithInMemoryLeaseContainer()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder WithInMemoryLeaseContainer();IsAbstract:False;IsStatic:False;IsVirtual:True;IsGenericMethod:False;IsConstructor:False;IsFinal:False;"
},
"Microsoft.Azure.Cosmos.ChangeFeedProcessorBuilder WithInstanceName(System.String)": {
"Type": "Method",
"Attributes": [],
Expand Down
Loading