Package com.developmentsprint.spring.breaker

Examples of com.developmentsprint.spring.breaker.CircuitBreakerException


            } else if (t instanceof TimeoutException) {
                throw new CircuitTimeoutException(t.getMessage(), t);
            } else if (t instanceof RejectedExecutionException) {
                throw new CircuitOverloadException(t.getMessage(), t);
            }
            throw new CircuitBreakerException(t);
        }
    }
View Full Code Here


        Class<? extends HystrixFallback> fallbackClass;
        try {
            fallbackClass = (Class<? extends HystrixFallback>) Class.forName(fallbackClassName);
        } catch (ClassNotFoundException e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }

        try {
            fallbackClass.getDeclaredConstructor().setAccessible(true);
            return fallbackClass.getDeclaredConstructor().newInstance();
        } catch (Exception e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }
    }
View Full Code Here

            } else if (t instanceof TimeoutException) {
                throw new CircuitTimeoutException(e.getMessage(), e);
            } else if (t instanceof RejectedExecutionException) {
                throw new CircuitOverloadException(e.getMessage(), e);
            }
            throw new CircuitBreakerException(t);
        }
    }
View Full Code Here

        Class<? extends HystrixFallback> fallbackClass;
        try {
            fallbackClass = (Class<? extends HystrixFallback>) Class.forName(fallbackClassName);
        } catch (ClassNotFoundException e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }

        try {
            fallbackClass.getDeclaredConstructor().setAccessible(true);
            return fallbackClass.getDeclaredConstructor().newInstance();
        } catch (Exception e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }
    }
View Full Code Here

            } else if (t instanceof TimeoutException) {
                throw new CircuitTimeoutException(e.getMessage(), e);
            } else if (t instanceof RejectedExecutionException) {
                throw new CircuitOverloadException(e.getMessage(), e);
            }
            throw new CircuitBreakerException(t);
        }
    }
View Full Code Here

        Class<? extends HystrixFallback> fallbackClass;
        try {
            fallbackClass = (Class<? extends HystrixFallback>) Class.forName(fallbackClassName);
        } catch (ClassNotFoundException e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }

        try {
            fallbackClass.getDeclaredConstructor().setAccessible(true);
            return fallbackClass.getDeclaredConstructor().newInstance();
        } catch (Exception e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }
    }
View Full Code Here

            } else if (t instanceof TimeoutException) {
                throw new CircuitTimeoutException(t.getMessage(), t);
            } else if (t instanceof RejectedExecutionException) {
                throw new CircuitOverloadException(t.getMessage(), t);
            }
            throw new CircuitBreakerException(t);
        }
    }
View Full Code Here

        Class<? extends HystrixFallback> fallbackClass;
        try {
            fallbackClass = (Class<? extends HystrixFallback>) Class.forName(fallbackClassName);
        } catch (ClassNotFoundException e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }

        try {
            fallbackClass.getDeclaredConstructor().setAccessible(true);
            return fallbackClass.getDeclaredConstructor().newInstance();
        } catch (Exception e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            return invokeWithinCircuitBreaker(aopAllianceInvoker);
        } catch (CircuitBreakerException e) {
            throw e;
        } catch (Throwable e) {
            throw new CircuitBreakerException(e.getMessage(), e);
        }
    }
View Full Code Here

        try {
            return invocation.proceed();
        } catch (CircuitBreakerException e) {
            throw e;
        } catch (Throwable e) {
            throw new CircuitBreakerException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.developmentsprint.spring.breaker.CircuitBreakerException

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.