R
- the return type of the original method that should have been executed (but break handler took over the
control instead)public class ExceptionThrowingHandler<R> extends Object implements BreakHandler<R>
Constructor and Description |
---|
ExceptionThrowingHandler(Class<? extends BreakHandlerException> exceptionClass,
ExceptionThrowingHandlerMessageCallback<R> callback) |
ExceptionThrowingHandler(Class<? extends BreakHandlerException> exceptionClass,
String exceptionMessage) |
ExceptionThrowingHandler(ExceptionThrowingHandlerMessageCallback<R> callback) |
ExceptionThrowingHandler(String exceptionMessage) |
Modifier and Type | Method and Description |
---|---|
protected String |
buildMessage(Task<R> task,
ExecutionContext<R> executionContext) |
R |
onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
public ExceptionThrowingHandler(String exceptionMessage)
public ExceptionThrowingHandler(ExceptionThrowingHandlerMessageCallback<R> callback)
public ExceptionThrowingHandler(Class<? extends BreakHandlerException> exceptionClass, String exceptionMessage)
public ExceptionThrowingHandler(Class<? extends BreakHandlerException> exceptionClass, ExceptionThrowingHandlerMessageCallback<R> callback)
public R onBreak(ContextAwareCircuitBreaker<R> circuitBreaker, Task<R> task, BreakStrategy<R> breakStrategy, ExecutionContext<R> executionContext) throws BreakHandlerException
protected String buildMessage(Task<R> task, ExecutionContext<R> executionContext)
Copyright © 2017. All rights reserved.