Class RetryAspect


  • @Component
    public class RetryAspect
    extends Object
    The Aspect Class RetryAspect that applies the retry mechanism on methods with WithRetry annotation.
    Author:
    Loganathan Sekar
    • Constructor Detail

      • RetryAspect

        public RetryAspect()
    • Method Detail

      • withRetryMethods

        public void withRetryMethods()
        With retry methods.
      • processMethodsWithRetry

        public Object processMethodsWithRetry​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                       throws Throwable
        Process methods with retry.
        Parameters:
        pjp - the pjp
        Returns:
        the object
        Throws:
        Throwable - the throwable