Package | Description |
---|---|
net.secodo.jcircuitbreaker.breakhandler.impl |
Constructor and Description |
---|
ExceptionThrowingHandler(Class<? extends BreakHandlerException> exceptionClass,
ExceptionThrowingHandlerMessageCallback<R> callback)
Constructs new instance of
ExceptionThrowingHandler which will throw exception of given class
with message obtained from given callback, in case "break" occurred (circuit breaker executed break handler
instead of real-method). |
ExceptionThrowingHandler(ExceptionThrowingHandlerMessageCallback<R> callback)
Constructs new instance of
ExceptionThrowingHandler which will throw BreakHandlerException with
message obtained by calling
buildMessage(Task, ExecutionContext) . |
Copyright © 2017. All rights reserved.