@Component
public class DataServiceRetryAspect
extends java.lang.Object
implements org.springframework.core.Ordered
| Constructor and Description |
|---|
DataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
java.lang.Object |
profile(org.aspectj.lang.ProceedingJoinPoint pjp)
Aspect implementation method of retrying the data service method on certain failures.
|
void |
setRetryListeners(org.springframework.retry.RetryListener[] retryListeners)
Sets the retry listeners for the retry template in use.
|
@Autowired public DataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties)
dataServiceRetryProperties - retry propertiespublic void setRetryListeners(org.springframework.retry.RetryListener[] retryListeners)
retryListeners - retry listenerspublic java.lang.Object profile(org.aspectj.lang.ProceedingJoinPoint pjp)
throws com.netflix.genie.common.exceptions.GenieException
pjp - join pointcom.netflix.genie.common.exceptions.GenieException - any exception thrown by the data service methodpublic int getOrder()
getOrder in interface org.springframework.core.Ordered