R
- the return type of onBreak method of the created BreakHandler
. This must be the same return
type as the of of executed Taskpublic interface BreakHandlerFactory<R> extends BreakHandler<R>
Modifier and Type | Method and Description |
---|---|
BreakHandler<R> |
makeHandler(Task<R> task,
ExecutionContext<R> executionContext) |
default R |
onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
default R onBreak(ContextAwareCircuitBreaker<R> circuitBreaker, Task<R> task, BreakStrategy<R> breakStrategy, ExecutionContext<R> executionContext) throws TaskExecutionException, CircuitBreakerException, BreakHandlerException
BreakHandler<R> makeHandler(Task<R> task, ExecutionContext<R> executionContext) throws BreakHandlerException
Copyright © 2017. All rights reserved.