com.azure.cosmos.implementation.changefeed.PartitionProcessorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-cosmos Show documentation
Show all versions of azure-cosmos Show documentation
This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation.changefeed;
/**
* Factory class used to create instance(s) of {@link PartitionProcessor}.
*/
public interface PartitionProcessorFactory {
/**
* Creates an instance of a {@link PartitionProcessor}.
*
* @param lease the lease to be used for partition processing.
* @param changeFeedObserver the observer instace to be used.
* @return an instance of {@link PartitionProcessor}.
*/
PartitionProcessor create(Lease lease, ChangeFeedObserver changeFeedObserver);
}