Package com.netflix.genie.web.aspects
Class DataServiceRetryAspect
java.lang.Object
com.netflix.genie.web.aspects.DataServiceRetryAspect
- All Implemented Interfaces:
org.springframework.core.Ordered
Aspect implementation of retrying the data service methods on certain failures.
- Since:
- 3.0.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()profile(org.aspectj.lang.ProceedingJoinPoint pjp) Aspect implementation method of retrying the data service method on certain failures.voidsetRetryListeners(org.springframework.retry.RetryListener[] retryListeners) Sets the retry listeners for the retry template in use.
-
Constructor Details
-
DataServiceRetryAspect
Constructor.- Parameters:
dataServiceRetryProperties- retry properties
-
-
Method Details
-
setRetryListeners
public void setRetryListeners(org.springframework.retry.RetryListener[] retryListeners) Sets the retry listeners for the retry template in use.- Parameters:
retryListeners- retry listeners
-
profile
public Object profile(org.aspectj.lang.ProceedingJoinPoint pjp) throws com.netflix.genie.common.exceptions.GenieException, com.netflix.genie.common.internal.exceptions.checked.GenieCheckedException Aspect implementation method of retrying the data service method on certain failures.- Parameters:
pjp- join point- Returns:
- return the data method response
- Throws:
com.netflix.genie.common.exceptions.GenieException- any exception thrown by the data service methodcom.netflix.genie.common.internal.exceptions.checked.GenieCheckedException- any exception thrown by one of the data service methods Genie code
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-