Modifier and Type | Method and Description |
---|---|
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 | Class and Description |
---|---|
class |
DefaultExecutionContextImpl<R> |
Modifier and Type | Method and Description |
---|---|
R |
AbstractCircuitBreaker.executeInContext(Task<R> task,
BreakStrategy<R> breakStrategy,
BreakHandler<R> breakHandler,
ExecutionContext<R> executionContext) |
Modifier and Type | Method and Description |
---|---|
BreakHandler<R> |
OnePerExecutionHandlerFactory.createNewHandler(Task<R> task,
ExecutionContext<R> executionContext)
Constructs and returns new
BreakHandler . |
default String |
OnePerExecutionHandlerFactory.getOnePerExecutionContextParamName(Task<R> task,
ExecutionContext<R> executionContext)
Returns execution context parameter name under which produced break handler will be stored.
|
default BreakHandler<R> |
OnePerExecutionHandlerFactory.makeHandler(Task<R> task,
ExecutionContext<R> executionContext) |
BreakHandler<R> |
BreakHandlerFactory.makeHandler(Task<R> task,
ExecutionContext<R> executionContext)
Returns an instance of
BreakHandler which should be used to handle the break. |
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 |
---|---|
String |
ExceptionThrowingHandlerMessageCallback.buildMessage(Task<R> task,
ExecutionContext<R> executionContext) |
protected String |
ExceptionThrowingHandler.buildMessage(Task<R> task,
ExecutionContext<R> executionContext) |
BreakHandler<R> |
ReusableRetryHandler.createNewHandler(Task<R> task,
ExecutionContext<R> executionContext) |
String |
ReusableRetryHandler.getOnePerExecutionContextParamName(Task<R> task,
ExecutionContext<R> executionContext) |
BreakHandler<R> |
SimpleHandlerFactory.makeHandler(Task<R> task,
ExecutionContext<R> executionContext) |
R |
StatefulRetryHandler.onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
R |
ReturnStaticValueHandler.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) |
R |
ExceptionThrowingHandler.onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
void |
RetryHandlerOnRetryCallback.onRetry(int currentRetryAttempt,
ExecutionContext<R> executionContext) |
protected void |
StatefulRetryHandler.onRetry(int currentRetryAttempt,
Task<R> task,
ExecutionContext<R> executionContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
BreakStrategy.shouldBreak(Task<R> task,
ExecutionContext<R> executionContext)
Returns true if "break" should happen, so that the Task (target-method) does not execute and circuit
breaker executes fallback break handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
LimitedCurrentAverageExecutionTimeStrategy.shouldBreak(Task<R> task,
ExecutionContext<R> executionContext) |
boolean |
LimitedConcurrentExecutionsStrategy.shouldBreak(Task<R> task,
ExecutionContext<R> executionContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
DslOrStrategy.shouldBreak(Task<R> task,
ExecutionContext<R> executionContext) |
boolean |
DslAndStrategy.shouldBreak(Task<R> task,
ExecutionContext<R> executionContext) |
Copyright © 2017. All rights reserved.