R
- the return type of the called methodpublic class ReusableCircuitBreaker<R> extends AbstractCircuitBreaker<R>
Constructor and Description |
---|
ReusableCircuitBreaker(BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler) |
Modifier and Type | Method and Description |
---|---|
static ReusableCircuitBreakerBuilder |
builder() |
static <R> ReusableCircuitBreakerBuilder<R> |
builderP() |
R |
execute(Task<R> task) |
<U> R |
execute(Task<R> task,
U userData) |
execute, executeInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public ReusableCircuitBreaker(BreakStrategy<R> breakStrategy, BreakHandler<R> breakHandler)
public static ReusableCircuitBreakerBuilder builder()
public static <R> ReusableCircuitBreakerBuilder<R> builderP()
public R execute(Task<R> task) throws TaskExecutionException, CircuitBreakerException, BreakHandlerException
public <U> R execute(Task<R> task, U userData) throws TaskExecutionException, CircuitBreakerException, BreakHandlerException
Copyright © 2017. All rights reserved.