@RequestScoped public class RetryClientForMaxRetries extends Object
Constructor and Description |
---|
RetryClientForMaxRetries() |
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.
|
@Retry(maxRetries=5) 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 © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.