Hystrix能否根据方法参数打开电路?

时间:2015-12-17 15:41:54

标签: java hystrix circuit-breaker

如果我有以下Hystrix命令:

boundary='wrap'

呼叫:

public class TimeoutDependingOnParam extends HystrixCommand<String> {

    private final String name;

    public TimeoutDependingOnParam (String name) {
        super(HystrixCommandGroupKey.Factory.asKey("ExampleGroup"));
        this.name = name;
    }

    @Override
    protected String run() {

        if (name.equals("Looong")) {
           waitABillionYears();
        }

        return "Hello " + name + "!";
    }
}

如果Hystrix因为“Looong”的通话超时而打开电路,这是否意味着“Quick”的通话将被打开

0 个答案:

没有答案