R
- the return type of the real method executed by the breakerpublic interface BreakStrategy<R>
Modifier and Type | Method and Description |
---|---|
boolean |
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.
|
boolean shouldBreak(Task<R> task, ExecutionContext<R> executionContext)
task
- the task for execution of which this break strategy was calledexecutionContext
- current execution contextCopyright © 2017. All rights reserved.