@azure/event-hubs
Version:
Azure Event Hubs SDK for JS.
20 lines • 1.05 kB
TypeScript
import type { LoadBalancingStrategy } from "./loadBalancingStrategy.js";
import type { PartitionOwnership } from "../eventProcessor.js";
/**
* The UnbalancedLoadBalancingStrategy does no actual load balancing.
* It is intended to be used when you want to avoid load balancing
* and consume a set of partitions.
* @internal
*/
export declare class UnbalancedLoadBalancingStrategy implements LoadBalancingStrategy {
/**
* Implements load balancing by taking into account current ownership and
* the full set of partitions in the Event Hub.
* @param _ourOwnerId - The id we should assume is _our_ id when checking for ownership.
* @param _claimedPartitionOwnershipMap - The current claimed ownerships for partitions.
* @param partitionIds - Partitions to assign owners to.
* @returns Partition ids to claim.
*/
getPartitionsToClaim(_ourOwnerId: string, _claimedPartitionOwnershipMap: Map<string, PartitionOwnership>, partitionIds: string[]): string[];
}
//# sourceMappingURL=unbalancedStrategy.d.ts.map