Class CircuitBreakerClientRollingWindow
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.circuitbreaker.clientserver.CircuitBreakerClientRollingWindow
- All Implemented Interfaces:
Serializable
@RequestScoped
public class CircuitBreakerClientRollingWindow
extends Object
implements Serializable
A client to exercise Circuit Breaker thresholds, with a SuccessThreshold of 2, a requestVolumeThreshold of 4,
failureRatio of 0.5 and a 1 millisecond delay
- Author:
- Emily Jiang
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
-
Constructor Details
-
CircuitBreakerClientRollingWindow
public CircuitBreakerClientRollingWindow()
-
-
Method Details
-
getCounterForInvokingService1
public int getCounterForInvokingService1() -
getCounterForInvokingService2
public int getCounterForInvokingService2() -
service1RollingWindowOpenAfter4
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.5) public Connection service1RollingWindowOpenAfter4() -
service2RollingWindowOpenAfter5
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.5) public Connection service2RollingWindowOpenAfter5()
-