Package com.netflix.genie.web.aspects
Class DataServiceRetryAspect
- java.lang.Object
- 
- com.netflix.genie.web.aspects.DataServiceRetryAspect
 
- 
- All Implemented Interfaces:
- org.springframework.core.Ordered
 
 public class DataServiceRetryAspect extends java.lang.Object implements org.springframework.core.OrderedAspect implementation of retrying the data service methods on certain failures.- Since:
- 3.0.0
 
- 
- 
Constructor SummaryConstructors Constructor Description DataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()java.lang.Objectprofile(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 Detail- 
DataServiceRetryAspectpublic DataServiceRetryAspect(DataServiceRetryProperties dataServiceRetryProperties) Constructor.- Parameters:
- dataServiceRetryProperties- retry properties
 
 
- 
 - 
Method Detail- 
setRetryListenerspublic void setRetryListeners(org.springframework.retry.RetryListener[] retryListeners) Sets the retry listeners for the retry template in use.- Parameters:
- retryListeners- retry listeners
 
 - 
profilepublic java.lang.Object profile(org.aspectj.lang.ProceedingJoinPoint pjp) throws GenieException, GenieCheckedExceptionAspect implementation method of retrying the data service method on certain failures.- Parameters:
- pjp- join point
- Returns:
- return the data method response
- Throws:
- GenieException- any exception thrown by the data service method
- GenieCheckedException- any exception thrown by one of the data service methods Genie code
 
 - 
getOrderpublic int getOrder() - Specified by:
- getOrderin interface- org.springframework.core.Ordered
 
 
- 
 
-