Class CircuitBreakerClassLevelClientWithRetry
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.circuitbreaker.clientserver.CircuitBreakerClassLevelClientWithRetry
- All Implemented Interfaces:
Serializable
@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
A client to exercise Circuit Breaker thresholds using Retries. Annotations are specified at both the Class and Method
level.
- Author:
- Neil Young
- See Also:
-
Constructor Details
-
CircuitBreakerClassLevelClientWithRetry
public CircuitBreakerClassLevelClientWithRetry()
-
-
Method Details
-
getCounterForInvokingServiceA
public int getCounterForInvokingServiceA() -
getCounterForInvokingServiceB
public int getCounterForInvokingServiceB() -
serviceA
-
serviceB
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.75, delay=50000L) @Retry(retryOn=java.lang.RuntimeException.class, maxRetries=2) public Connection serviceB()
-