public class ProviderInfoWeightManager extends Object
| 构造器和说明 |
|---|
ProviderInfoWeightManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
degradeWeight(ProviderInfo providerInfo,
int weight)
Degrade weight of provider info
|
static int |
getWeight(ProviderInfo providerInfo) |
static void |
recoverOriginWeight(ProviderInfo providerInfo,
int originWeight)
Recover weight of provider info, and set default status
|
static boolean |
recoverWeight(ProviderInfo providerInfo,
int weight)
Recover weight of provider info
|
public static boolean recoverWeight(ProviderInfo providerInfo, int weight)
providerInfo - ProviderInfoweight - recovered weightpublic static boolean degradeWeight(ProviderInfo providerInfo, int weight)
providerInfo - ProviderInfoweight - degraded weightpublic static void recoverOriginWeight(ProviderInfo providerInfo, int originWeight)
providerInfo - ProviderInfooriginWeight - origin weightpublic static int getWeight(ProviderInfo providerInfo)
Copyright © 2008–2018 The Ant Financial. All rights reserved.