@RequestScoped @Retry(maxRetries=2) public class RetryClassLevelClientForMaxRetries extends Object
Constructor and Description |
---|
RetryClassLevelClientForMaxRetries() |
Modifier and Type | Method and Description |
---|---|
int |
getRetryCounterForServiceA() |
int |
getRetryCounterForServiceB() |
int |
getRetryCounterForServiceC() |
int |
getRetryCountForConnectionService() |
int |
getRetryCountForWritingService() |
Connection |
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.
|
public Connection serviceA()
public int getRetryCountForConnectionService()
@Retry(maxRetries=90, maxDuration=1000L) public void serviceB()
@Retry(maxRetries=90, maxDuration=1L, durationUnit=SECONDS) public void serviceC()
public int getRetryCountForWritingService()
public int getRetryCounterForServiceA()
public int getRetryCounterForServiceB()
public int getRetryCounterForServiceC()
Copyright © 2020 Eclipse Foundation. All rights reserved.