类 ClusterFlowConfig
java.lang.Object
com.alibaba.csp.sentinel.slots.block.flow.ClusterFlowConfig
Flow rule config in cluster mode.
- 从以下版本开始:
- 1.4.0
- 作者:
- Eric Zhao
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanintlonglongintintintintintinthashCode()booleanvoidsetAcquireRefuseStrategy(int acquireRefuseStrategy) voidsetClientOfflineTime(long clientOfflineTime) setFallbackToLocalWhenFail(boolean fallbackToLocalWhenFail) voidsetResourceTimeout(long resourceTimeout) voidsetResourceTimeoutStrategy(int resourceTimeoutStrategy) setSampleCount(int sampleCount) setStrategy(int strategy) setThresholdType(int thresholdType) setWindowIntervalMs(int windowIntervalMs) toString()
-
构造器详细资料
-
ClusterFlowConfig
public ClusterFlowConfig()
-
-
方法详细资料
-
getResourceTimeout
public long getResourceTimeout() -
setResourceTimeout
public void setResourceTimeout(long resourceTimeout) -
getResourceTimeoutStrategy
public int getResourceTimeoutStrategy() -
setResourceTimeoutStrategy
public void setResourceTimeoutStrategy(int resourceTimeoutStrategy) -
getAcquireRefuseStrategy
public int getAcquireRefuseStrategy() -
setAcquireRefuseStrategy
public void setAcquireRefuseStrategy(int acquireRefuseStrategy) -
getClientOfflineTime
public long getClientOfflineTime() -
setClientOfflineTime
public void setClientOfflineTime(long clientOfflineTime) -
getFlowId
-
setFlowId
-
getThresholdType
public int getThresholdType() -
setThresholdType
-
getStrategy
public int getStrategy() -
setStrategy
-
isFallbackToLocalWhenFail
public boolean isFallbackToLocalWhenFail() -
setFallbackToLocalWhenFail
-
getSampleCount
public int getSampleCount() -
setSampleCount
-
getWindowIntervalMs
public int getWindowIntervalMs() -
setWindowIntervalMs
-
equals
-
hashCode
public int hashCode() -
toString
-