@RequestScoped public class CircuitBreakerClientRollingWindow extends Object implements Serializable
Constructor and Description |
---|
CircuitBreakerClientRollingWindow() |
Modifier and Type | Method and Description |
---|---|
int |
getCounterForInvokingService1() |
int |
getCounterForInvokingService2() |
Connection |
service1RollingWindowOpenAfter4() |
Connection |
service2RollingWindowOpenAfter5() |
public int getCounterForInvokingService1()
public int getCounterForInvokingService2()
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.5) public Connection service1RollingWindowOpenAfter4()
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.5) public Connection service2RollingWindowOpenAfter5()
Copyright © 2020 Eclipse Foundation. All rights reserved.