public class LeastLongTermMessageRate extends Object implements ModularLoadManagerStrategy
| Constructor and Description |
|---|
LeastLongTermMessageRate(ServiceConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
selectBroker(Set<String> candidates,
BundleData bundleToAssign,
LoadData loadData,
ServiceConfiguration conf)
Find a suitable broker to assign the given bundle to.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic LeastLongTermMessageRate(ServiceConfiguration conf)
public Optional<String> selectBroker(Set<String> candidates, BundleData bundleToAssign, LoadData loadData, ServiceConfiguration conf)
selectBroker in interface ModularLoadManagerStrategycandidates - The candidates for which the bundle may be assigned.bundleToAssign - The data for the bundle to assign.loadData - The load data from the leader broker.conf - The service configuration.Copyright © 2017–2022 Apache Software Foundation. All rights reserved.