@RequestScoped public class RetryClientRetryOn extends Object
Constructor and Description |
---|
RetryClientRetryOn() |
Modifier and Type | Method and Description |
---|---|
int |
getRetryCountForConnectionService() |
int |
getRetryCountForWritingService() |
Connection |
serviceA() |
void |
serviceB()
The configured the max retries is 90 but the max duration is 100ms.
|
Connection |
serviceC()
Service that throws a child custom exception but in the retry on list is configured child's parent custom
exception
|
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
|
@Retry(retryOn=java.lang.RuntimeException.class) public Connection serviceA()
@Retry(retryOn=RetryParentException.class) public Connection serviceC()
@Retry(retryOn=RetryParentException.class, abortOn=RetryChildException.class) public Connection serviceD()
public int getRetryCountForConnectionService()
@Retry(retryOn=java.io.IOException.class) public void serviceB()
public int getRetryCountForWritingService()
Copyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.