@RequestScoped @CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.75, delay=50000L) public class CircuitBreakerClassLevelClientWithDelay extends Object implements Serializable
Constructor and Description |
---|
CircuitBreakerClassLevelClientWithDelay() |
Modifier and Type | Method and Description |
---|---|
int |
getCounterForInvokingService() |
Connection |
serviceA() |
Connection |
serviceB() |
Connection |
serviceC() |
Connection |
serviceD() |
void |
setCounterForInvokingServiceA(int count) |
public CircuitBreakerClassLevelClientWithDelay()
public int getCounterForInvokingService()
public void setCounterForInvokingServiceA(int count)
public Connection serviceA()
public Connection serviceB()
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=2, failureRatio=1.0, delay=50000L) public Connection serviceC()
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.75, delay=1L) public Connection serviceD()
Copyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.