Class TimeLimiterAspect

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.springframework.core.Ordered

    public class TimeLimiterAspect
    extends java.lang.Object
    implements org.springframework.core.Ordered, java.lang.AutoCloseable
    • 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
      void close()  
      int getOrder()  
      void matchAnnotatedClassOrMethod​(io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiter)  
      java.lang.Object timeLimiterAroundAdvice​(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiterAnnotation)  
      • Methods inherited from class java.lang.Object

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

      • TimeLimiterAspect

        public TimeLimiterAspect​(io.github.resilience4j.timelimiter.TimeLimiterRegistry timeLimiterRegistry,
                                 TimeLimiterConfigurationProperties properties,
                                 @Nullable
                                 java.util.List<TimeLimiterAspectExt> timeLimiterAspectExtList,
                                 FallbackDecorators fallbackDecorators,
                                 SpelResolver spelResolver,
                                 @Nullable
                                 io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor)
    • Method Detail

      • matchAnnotatedClassOrMethod

        public void matchAnnotatedClassOrMethod​(io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiter)
      • timeLimiterAroundAdvice

        public java.lang.Object timeLimiterAroundAdvice​(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
                                                        @Nullable
                                                        io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiterAnnotation)
                                                 throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • getOrder

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

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception