R- the return type of the real method executed by the breaker
public interface BreakStrategy<R>
|Modifier and Type||Method and Description|
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 called
executionContext- current execution context
Copyright © 2017. All rights reserved.