Modifier and Type | Method and Description |
---|---|
default R |
CircuitBreaker.execute(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler)
Executes the given
Callable only when given BreakStrategy allows the execution at the time of call. |
<U> R |
CircuitBreaker.execute(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler,
U userData)
Executes the given
Callable only when given BreakStrategy allows the execution at the time of call. |
R |
ContextAwareCircuitBreaker.executeInContext(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler,
ExecutionContext<R> executionContext)
Executes given task within given execution context.
|
Modifier and Type | Method and Description |
---|---|
R |
ReusableCircuitBreaker.execute(Task<R> task)
Executes given Task within this breaker using
BreakStrategy and BreakHandler given as the params. |
<U> R |
AbstractCircuitBreaker.execute(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler,
U userData) |
<U> R |
ReusableCircuitBreaker.execute(Task<R> task,
U userData)
Executes given Task within this breaker using
BreakStrategy and BreakHandler given as the params
with custom data passed as userData param. |
R |
AbstractCircuitBreaker.executeInContext(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler,
ExecutionContext<R> executionContext) |
Modifier and Type | Method and Description |
---|---|
default R |
BreakHandlerFactory.onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
R |
BreakHandler.onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext)
Handles situation when break occurs.
|
Modifier and Type | Method and Description |
---|---|
R |
StatefulRetryHandler.onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
R |
NoActionHandler.onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
Copyright © 2017. All rights reserved.