Class BundleSplitterTask
java.lang.Object
org.apache.pulsar.broker.loadbalance.impl.BundleSplitterTask
- All Implemented Interfaces:
BundleSplitStrategy
Determines which bundles should be split based on various thresholds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindBundlesToSplit(LoadData loadData, PulsarService pulsar) Determines which bundles should be split based on various thresholds.
-
Constructor Details
-
BundleSplitterTask
public BundleSplitterTask()Construct a BundleSplitterTask.
-
-
Method Details
-
findBundlesToSplit
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.
-