Class RetryClientRetryOn
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.retry.clientserver.RetryClientRetryOn
A client to demonstrate the retryOn conditions
- Author:
- Emily Jiang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
serviceA()
void
serviceB()
The configured the max retries is 90 but the max duration is 100ms.serviceC()
Service that throws a child custom exception but in the retry on list is configured child's parent custom exceptionserviceD()
Service that throws a child custom exception but in the retry on list is configured child's parent custom exception and is configured in the abort on list the child custom exception
-
Constructor Details
-
RetryClientRetryOn
public RetryClientRetryOn()
-
-
Method Details
-
serviceA
-
serviceC
Service that throws a child custom exception but in the retry on list is configured child's parent custom exception- Returns:
- Connection
-
serviceD
@Retry(retryOn=RetryParentException.class, abortOn=RetryChildException.class) public Connection serviceD()Service that throws a child custom exception but in the retry on list is configured child's parent custom exception and is configured in the abort on list the child custom exception- Returns:
- Connection
-
getRetryCountForConnectionService
public int getRetryCountForConnectionService() -
serviceB
The configured the max retries is 90 but the max duration is 100ms. Once the duration is reached, no more retries should be performed. -
getRetryCountForWritingService
public int getRetryCountForWritingService()
-