Class RetryClassLevelClientForMaxRetries
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.retry.clientserver.RetryClassLevelClientForMaxRetries
A client to demonstrate the maxRetries and max duration configuration
- Author:
- Emily Jiang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
serviceA()
void
serviceB()
Max retries is configured to 90 but the max duration is 1 second with a default durationUnit of milliseconds.void
serviceC()
Max retries is configured to 90 but the max duration is 1 second with a durationUnit of seconds specified.
-
Constructor Details
-
RetryClassLevelClientForMaxRetries
public RetryClassLevelClientForMaxRetries()
-
-
Method Details
-
serviceA
-
getRetryCountForConnectionService
public int getRetryCountForConnectionService() -
serviceB
Max retries is configured to 90 but the max duration is 1 second with a default durationUnit of milliseconds. Once the duration is reached, no more retries should be performed. -
serviceC
Max retries is configured to 90 but the max duration is 1 second with a durationUnit of seconds specified. Once the duration is reached, no more retries should be performed. -
getRetryCountForWritingService
public int getRetryCountForWritingService() -
getRetryCounterForServiceA
public int getRetryCounterForServiceA() -
getRetryCounterForServiceB
public int getRetryCounterForServiceB() -
getRetryCounterForServiceC
public int getRetryCounterForServiceC()
-