class CloudBreakerInterceptor implements Interceptor {
    public static final CloudBreakerInterceptor instance = new CloudBreakerInterceptor();

    @Override
    public Object doIntercept(Invocation inv) throws Throwable {<FILL_FUNCTION_BODY>}
}

        if (CloudClient.breaker() == null) {
            throw new IllegalArgumentException("Missing CloudBreakerService component");
        }

        CloudBreaker anno = inv.getMethodAnnotation(CloudBreaker.class);

        if (anno != null) {
            //支持${xxx}配置
            String name = Solon.cfg().getByParse(Utils.annoAlias(anno.value(), anno.name()));

            try (AutoCloseable entry = CloudClient.breaker().entry(name)) {
                return inv.invoke();
            } catch (BreakerException ex) {
                Context ctx = Context.current();
                if (ctx != null) {
                    ctx.status(429);
                    ctx.setHandled(true);
                    throw new DataThrowable(ex);
                }else {
                    throw ex;
                }
            }
        } else {
            return inv.invoke();
        }
    
<no_super_class>