R
- the return type of real-method that is executed by circuit breakerpublic class LimitedConcurrentExecutionsStrategy<R> extends Object implements BreakStrategy<R>
Modifier and Type | Field and Description |
---|---|
protected long |
maxSupportedExecutions |
Constructor and Description |
---|
LimitedConcurrentExecutionsStrategy(long maxSupportedExecutions) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldBreak(Task<R> task,
ExecutionContext<R> executionContext) |
public LimitedConcurrentExecutionsStrategy(long maxSupportedExecutions)
public boolean shouldBreak(Task<R> task, ExecutionContext<R> executionContext)
Copyright © 2017. All rights reserved.