Class BundleSplitterTask
- java.lang.Object
-
- org.apache.pulsar.broker.loadbalance.impl.BundleSplitterTask
-
- All Implemented Interfaces:
BundleSplitStrategy
public class BundleSplitterTask extends java.lang.Object implements BundleSplitStrategy
Determines which bundles should be split based on various thresholds.
-
-
Constructor Summary
Constructors Constructor Description BundleSplitterTask()Construct a BundleSplitterTask.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>findBundlesToSplit(LoadData loadData, PulsarService pulsar)Determines which bundles should be split based on various thresholds.
-
-
-
Method Detail
-
findBundlesToSplit
public java.util.Set<java.lang.String> findBundlesToSplit(LoadData loadData, PulsarService pulsar)
Determines which bundles should be split based on various thresholds.- Specified by:
findBundlesToSplitin interfaceBundleSplitStrategy- Parameters:
loadData- Load data to base decisions on (does not have benefit of preallocated data since this may not be the leader broker).pulsar- Service to use.- Returns:
- All bundles who have exceeded configured thresholds in number of topics, number of sessions, total message rates, or total throughput.
-
-