@RequestScoped @CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.75, delay=50000L) @Retry(retryOn=java.lang.RuntimeException.class, maxRetries=7) public class CircuitBreakerClassLevelClientWithRetry extends Object implements Serializable
Constructor and Description |
---|
CircuitBreakerClassLevelClientWithRetry() |
Modifier and Type | Method and Description |
---|---|
int |
getCounterForInvokingServiceA() |
int |
getCounterForInvokingServiceB() |
Connection |
serviceA() |
Connection |
serviceB() |
public CircuitBreakerClassLevelClientWithRetry()
public int getCounterForInvokingServiceA()
public int getCounterForInvokingServiceB()
public Connection serviceA()
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.75, delay=50000L) @Retry(retryOn=java.lang.RuntimeException.class, maxRetries=2) public Connection serviceB()
Copyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.