Class DisableClient
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.disableEnv.DisableClient
A client to determine the impact of the MP_Fault_Tolerance_NonFallback_Enabled environment variable
- Author:
- Neil Young
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
serviceA()
Invokes connection service and increases the counter for invocations the connection serviceserviceB()
Invokes name service and increases the counter for invocations of serviceBserviceC()
Invokes connection service and increases the counter for invocations of serviceC and connection serviceserviceD
(long timeToSleep) serviceD uses the default Fault Tolerance timeout of 1 second.
-
Constructor Details
-
DisableClient
public DisableClient()
-
-
Method Details
-
serviceA
Invokes connection service and increases the counter for invocations the connection service- Returns:
- Always throws exception
-
serviceB
Invokes name service and increases the counter for invocations of serviceB- Returns:
- Always throws exception
-
serviceC
@CircuitBreaker(successThreshold=2, requestVolumeThreshold=4, failureRatio=0.75, delay=50000L) public Connection serviceC()Invokes connection service and increases the counter for invocations of serviceC and connection service- Returns:
- Always throws exception
-
serviceD
serviceD uses the default Fault Tolerance timeout of 1 second.- Parameters:
timeToSleep
- How long should the execution take in millis- Returns:
- null or exception is raised
-
getRetryCountForConnectionService
public int getRetryCountForConnectionService() -
getCounterForInvokingServiceB
public int getCounterForInvokingServiceB() -
getCounterForInvokingServiceC
public int getCounterForInvokingServiceC()
-