Class HystrixHandle
- java.lang.Object
-
- org.apache.shenyu.common.dto.convert.rule.HystrixHandle
-
public class HystrixHandle extends java.lang.Objectthis is hystrix handle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHystrixHandle.HystrixThreadPoolConfighystrix thread pool config.
-
Constructor Summary
Constructors Constructor Description HystrixHandle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCallBackUri()get callBackUri.java.lang.StringgetCommandKey()get commandKey.intgetErrorThresholdPercentage()get errorThresholdPercentage.intgetExecutionIsolationStrategy()get executionIsolationStrategy.java.lang.StringgetGroupKey()get groupKey.HystrixHandle.HystrixThreadPoolConfiggetHystrixThreadPoolConfig()get hystrixThreadPoolConfig.intgetMaxConcurrentRequests()get maxConcurrentRequests.intgetRequestVolumeThreshold()get requestVolumeThreshold.intgetSleepWindowInMilliseconds()get sleepWindowInMilliseconds.longgetTimeout()get timeout.inthashCode()voidsetCallBackUri(java.lang.String callBackUri)set callBackUri.voidsetCommandKey(java.lang.String commandKey)set commandKey.voidsetErrorThresholdPercentage(int errorThresholdPercentage)set errorThresholdPercentage.voidsetExecutionIsolationStrategy(int executionIsolationStrategy)set executionIsolationStrategy.voidsetGroupKey(java.lang.String groupKey)set groupKey.voidsetHystrixThreadPoolConfig(HystrixHandle.HystrixThreadPoolConfig hystrixThreadPoolConfig)set hystrixThreadPoolConfig.voidsetMaxConcurrentRequests(int maxConcurrentRequests)set maxConcurrentRequests.voidsetRequestVolumeThreshold(int requestVolumeThreshold)set requestVolumeThreshold.voidsetSleepWindowInMilliseconds(int sleepWindowInMilliseconds)set sleepWindowInMilliseconds.voidsetTimeout(long timeout)set timeout.java.lang.StringtoString()
-
-
-
Method Detail
-
getGroupKey
public java.lang.String getGroupKey()
get groupKey.- Returns:
- groupKey
-
setGroupKey
public void setGroupKey(java.lang.String groupKey)
set groupKey.- Parameters:
groupKey- groupKey
-
getCommandKey
public java.lang.String getCommandKey()
get commandKey.- Returns:
- commandKey
-
setCommandKey
public void setCommandKey(java.lang.String commandKey)
set commandKey.- Parameters:
commandKey- commandKey
-
getMaxConcurrentRequests
public int getMaxConcurrentRequests()
get maxConcurrentRequests.- Returns:
- maxConcurrentRequests
-
setMaxConcurrentRequests
public void setMaxConcurrentRequests(int maxConcurrentRequests)
set maxConcurrentRequests.- Parameters:
maxConcurrentRequests- maxConcurrentRequests
-
getErrorThresholdPercentage
public int getErrorThresholdPercentage()
get errorThresholdPercentage.- Returns:
- errorThresholdPercentage
-
setErrorThresholdPercentage
public void setErrorThresholdPercentage(int errorThresholdPercentage)
set errorThresholdPercentage.- Parameters:
errorThresholdPercentage- errorThresholdPercentage
-
getRequestVolumeThreshold
public int getRequestVolumeThreshold()
get requestVolumeThreshold.- Returns:
- requestVolumeThreshold
-
setRequestVolumeThreshold
public void setRequestVolumeThreshold(int requestVolumeThreshold)
set requestVolumeThreshold.- Parameters:
requestVolumeThreshold- requestVolumeThreshold
-
getSleepWindowInMilliseconds
public int getSleepWindowInMilliseconds()
get sleepWindowInMilliseconds.- Returns:
- sleepWindowInMilliseconds
-
setSleepWindowInMilliseconds
public void setSleepWindowInMilliseconds(int sleepWindowInMilliseconds)
set sleepWindowInMilliseconds.- Parameters:
sleepWindowInMilliseconds- sleepWindowInMilliseconds
-
getTimeout
public long getTimeout()
get timeout.- Returns:
- timeout
-
setTimeout
public void setTimeout(long timeout)
set timeout.- Parameters:
timeout- timeout
-
getCallBackUri
public java.lang.String getCallBackUri()
get callBackUri.- Returns:
- callBackUri
-
setCallBackUri
public void setCallBackUri(java.lang.String callBackUri)
set callBackUri.- Parameters:
callBackUri- callBackUri
-
getExecutionIsolationStrategy
public int getExecutionIsolationStrategy()
get executionIsolationStrategy.- Returns:
- executionIsolationStrategy
-
setExecutionIsolationStrategy
public void setExecutionIsolationStrategy(int executionIsolationStrategy)
set executionIsolationStrategy.- Parameters:
executionIsolationStrategy- executionIsolationStrategy
-
getHystrixThreadPoolConfig
public HystrixHandle.HystrixThreadPoolConfig getHystrixThreadPoolConfig()
get hystrixThreadPoolConfig.- Returns:
- hystrixThreadPoolConfig
-
setHystrixThreadPoolConfig
public void setHystrixThreadPoolConfig(HystrixHandle.HystrixThreadPoolConfig hystrixThreadPoolConfig)
set hystrixThreadPoolConfig.- Parameters:
hystrixThreadPoolConfig- hystrixThreadPoolConfig
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-