We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hystrix默认使用Archaius 来实现的动态配置,我们在上节中,使用了代码的方式来实现配置,这节,我们使用Hystrix的动态配置来实现。
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=1000
hystrix.command.HystrixCommandKey.execution.isolation.thread.timeoutInMilliseconds=1000 hystrix.command.HystrixCommandKey.execution.isolation.strategy = SEMAPHORE
其中HystrixCommandKey为@HystrixCommand 注解中的commandKey。
@HystrixCommand(groupKey = "StoreSubmission", commandKey = "StoreSubmission", threadPoolKey = "StoreSubmission") public String storeSubmission(ReturnType returnType, InputStream is, String id) { }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hystrix默认使用Archaius 来实现的动态配置,我们在上节中,使用了代码的方式来实现配置,这节,我们使用Hystrix的动态配置来实现。
超时时间
1、Hystrix配置整体的超时时间
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=1000
2、配置单个超时时间
hystrix.command.HystrixCommandKey.execution.isolation.thread.timeoutInMilliseconds=1000
hystrix.command.HystrixCommandKey.execution.isolation.strategy = SEMAPHORE
其中HystrixCommandKey为@HystrixCommand 注解中的commandKey。
The text was updated successfully, but these errors were encountered: