public class FaultToleranceConfig extends Object
| 构造器和说明 |
|---|
FaultToleranceConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDegradeLeastWeight()
Gets degrade least weight.
|
int |
getDegradeMaxIpCount()
Gets degrade max ip count.
|
long |
getLeastCallCount()
Gets least invoke count.
|
long |
getLeastWindowCount()
Gets least window count.
|
double |
getLeastWindowExceptionRateMultiple()
Gets least window exception rate multiple.
|
long |
getTimeWindow()
Gets time window.
|
double |
getWeightDegradeRate()
Gets weight degrade rate.
|
double |
getWeightRecoverRate()
Gets weight recover rate.
|
boolean |
isDegradeEffective()
Is degrade effective boolean.
|
boolean |
isRegulationEffective()
Is regulation effective boolean.
|
void |
setDegradeEffective(boolean degradeEffective)
Sets degrade effective.
|
void |
setDegradeLeastWeight(int degradeLeastWeight)
Sets degrade least weight.
|
void |
setDegradeMaxIpCount(int degradeMaxIpCount)
Sets degrade max ip count.
|
void |
setLeastCallCount(long leastCallCount)
Sets least invoke count.
|
void |
setLeastWindowCount(long leastWindowCount)
Sets least window count.
|
void |
setLeastWindowExceptionRateMultiple(double leastWindowExceptionRateMultiple)
Sets least window exception rate multiple.
|
void |
setRegulationEffective(boolean regulationEffective)
Sets regulation effective.
|
void |
setTimeWindow(long timeWindow)
Sets time window.
|
void |
setWeightDegradeRate(double weightDegradeRate)
Sets weight degrade rate.
|
void |
setWeightRecoverRate(double weightRecoverRate)
Sets weight recover rate.
|
String |
toString() |
public long getTimeWindow()
public void setTimeWindow(long timeWindow)
timeWindow - the time windowpublic long getLeastCallCount()
public void setLeastCallCount(long leastCallCount)
leastCallCount - the least invoke countpublic long getLeastWindowCount()
public void setLeastWindowCount(long leastWindowCount)
leastWindowCount - the least window countpublic double getLeastWindowExceptionRateMultiple()
public void setLeastWindowExceptionRateMultiple(double leastWindowExceptionRateMultiple)
leastWindowExceptionRateMultiple - the least window exception rate multiplepublic boolean isRegulationEffective()
public void setRegulationEffective(boolean regulationEffective)
regulationEffective - the regulation effectivepublic double getWeightDegradeRate()
public void setWeightDegradeRate(double weightDegradeRate)
weightDegradeRate - the weight degrade ratepublic boolean isDegradeEffective()
public void setDegradeEffective(boolean degradeEffective)
degradeEffective - the degrade effectivepublic int getDegradeLeastWeight()
public void setDegradeLeastWeight(int degradeLeastWeight)
degradeLeastWeight - the degrade least weightpublic double getWeightRecoverRate()
public void setWeightRecoverRate(double weightRecoverRate)
weightRecoverRate - the weight recover ratepublic int getDegradeMaxIpCount()
public void setDegradeMaxIpCount(int degradeMaxIpCount)
degradeMaxIpCount - the degrade max ip countCopyright © 2008–2018 The Ant Financial. All rights reserved.