R
- the return value that the breaker returns (if breaker wants to return any value)public interface CircuitBreaker<R>
Modifier and Type | Method and Description |
---|---|
default R |
execute(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler) |
<U> R |
execute(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler,
U userData) |
default R execute(Task<R> task, BreakStrategy<R> breakStrategy, BreakHandler<R> breakHandler) throws TaskExecutionException, BreakHandlerException, CircuitBreakerException
<U> R execute(Task<R> task, BreakStrategy<R> breakStrategy, BreakHandler<R> breakHandler, U userData) throws TaskExecutionException, BreakHandlerException, CircuitBreakerException
Copyright © 2017. All rights reserved.