Interface NamespaceUnloadStrategy
- All Known Implementing Classes:
TransferShedder
public interface NamespaceUnloadStrategy
The namespace unload strategy.
Used to determine the criteria for unloading bundles.
Migrate from
LoadSheddingStrategy-
Method Summary
Modifier and TypeMethodDescriptionfindBundlesForUnloading(LoadManagerContext context, Map<String, Long> recentlyUnloadedBundles, Map<String, Long> recentlyUnloadedBrokers) Recommend that all the returned bundles be unloaded.voidinitialize(PulsarService pulsar) Initializes the internals.
-
Method Details
-
findBundlesForUnloading
Set<UnloadDecision> findBundlesForUnloading(LoadManagerContext context, Map<String, Long> recentlyUnloadedBundles, Map<String, Long> recentlyUnloadedBrokers) Recommend that all the returned bundles be unloaded.- Parameters:
context- The context used for decisions.recentlyUnloadedBundles- The recently unloaded bundles.recentlyUnloadedBrokers- The recently unloaded brokers.- Returns:
- unloadDecision containing a list of the bundles that should be unloaded.
-
initialize
Initializes the internals.- Parameters:
pulsar- The pulsar service instance.
-