public class WeightedRandomBalance extends Destroyable implements LoadBalancer
| Constructor and Description |
|---|
WeightedRandomBalance() |
| Modifier and Type | Method and Description |
|---|---|
Instance |
chooseInstance(Criteria criteria,
ServiceInstances svcInstances) |
String |
getName() |
PluginType |
getType() |
void |
init(InitContext ctx) |
void |
postContextInit(Extensions extensions) |
destroy, isDestroyedpublic Instance chooseInstance(Criteria criteria, ServiceInstances svcInstances) throws PolarisException
chooseInstance in interface LoadBalancerPolarisExceptionpublic String getName()
getName in interface PlugingetName in class Destroyablepublic PluginType getType()
public void init(InitContext ctx)
public void postContextInit(Extensions extensions) throws PolarisException
postContextInit in interface PluginPolarisExceptionCopyright © 2023. All rights reserved.