Class TimeLimiterAspect
java.lang.Object
io.github.resilience4j.timelimiter.configure.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
-
Constructor Summary
Constructors Constructor Description TimeLimiterAspect(io.github.resilience4j.timelimiter.TimeLimiterRegistry timeLimiterRegistry, TimeLimiterConfigurationProperties properties, java.util.List<TimeLimiterAspectExt> timeLimiterAspectExtList, FallbackDecorators fallbackDecorators, SpelResolver spelResolver, io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor) -
Method Summary
Modifier and Type Method Description voidclose()intgetOrder()voidmatchAnnotatedClassOrMethod(io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiter)java.lang.ObjecttimeLimiterAroundAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiterAnnotation)
-
Constructor Details
-
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 Details
-
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:
getOrderin interfaceorg.springframework.core.Ordered
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-