Package com.developmentsprint.spring.breaker.interceptor

Examples of com.developmentsprint.spring.breaker.interceptor.DefaultCircuitBreakerAttribute


            return null;
        }
    }

    public CircuitBreakerAttribute parseCircuitBreakerAnnotation(CircuitBreaker ann, AnnotatedElement ae) {
        DefaultCircuitBreakerAttribute attr = new DefaultCircuitBreakerAttribute();
        if (StringUtils.isEmpty(ann.name()) && ae instanceof Method) {
            String name = ((Method) ae).getName();
            attr.setName(name);
        } else {
            attr.setName(ann.name());
        }
        if (ann.properties().length > 0) {
            Map<String, String> properties = new HashMap<String, String>();
            for (CircuitProperty prop : ann.properties()) {
                properties.put(prop.key(), prop.value());
            }
            attr.setProperties(properties);
        }
        return attr;
    }
View Full Code Here

TOP

Related Classes of com.developmentsprint.spring.breaker.interceptor.DefaultCircuitBreakerAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.