Class DataServiceRetryAspect

  • All Implemented Interfaces:
    org.springframework.core.Ordered

    public class DataServiceRetryAspect
    extends java.lang.Object
    implements 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataServiceRetryAspect

        public DataServiceRetryAspect​(DataServiceRetryProperties dataServiceRetryProperties)
        Constructor.
        Parameters:
        dataServiceRetryProperties - retry properties
    • Method Detail

      • 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 java.lang.Object profile​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                 throws GenieException,
                                        GenieCheckedException
        Aspect 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
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered