Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @HystrixCommand(commandKey = MFO_SERVICE, fallbackMethod = "fallback")
- @HystrixCommand(
- commandKey = MFO_SERVICE,
- commandProperties = {
- @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "1000"),
- @HystrixProperty(name = "metrics.rollingStats.timeInMilliseconds", value = "60000"),
- @HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "10"),
- @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "50"),
- @HystrixProperty(name = "circuitBreaker.sleepWindowInMilliseconds", value = "60000")},
- fallbackMethod = "fallback")
- @Component
- public class HystrixConfig {
- @Value("${execution.isolation.thread.timeoutInMilliseconds}")
- private String timeoutInMilliseconds;
- @PostConstruct
- private void init() {
- ConfigurationManager.getConfigInstance().setProperty("propertyStringHere", timeoutInMilliseconds);
- }
- }
Add Comment
Please, Sign In to add comment