azure-messaging-eventhubs
Loading...
Searching...
No Matches
processor_load_balancer_models.hpp
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3#pragma once
4#include "checkpoint_store_models.hpp"
5
6#include <azure/core/context.hpp>
7
8#include <chrono>
9#include <vector>
10
11namespace Azure { namespace Messaging { namespace EventHubs { namespace Models {
12 enum class ProcessorStrategy
13 {
14 // ProcessorStrategyBalanced will attempt to claim a single partition at a time, until each
15 // active owner has an equal share of partitions. This is the default strategy.
16 ProcessorStrategyBalanced,
17
18 // ProcessorStrategyGreedy will attempt to claim as many partitions at a time as it can,
19 // ignoring balance.
20 ProcessorStrategyGreedy
21 };
22
23}}}} // namespace Azure::Messaging::EventHubs::Models