Class TimeLimiterAspect
java.lang.Object
io.github.resilience4j.timelimiter.configure.TimeLimiterAspect
- All Implemented Interfaces:
AutoCloseable,org.springframework.core.Ordered
public class TimeLimiterAspect
extends Object
implements org.springframework.core.Ordered, AutoCloseable
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionTimeLimiterAspect(io.github.resilience4j.timelimiter.TimeLimiterRegistry timeLimiterRegistry, TimeLimiterConfigurationProperties properties, List<TimeLimiterAspectExt> timeLimiterAspectExtList, FallbackExecutor fallbackExecutor, SpelResolver spelResolver, io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetOrder()voidmatchAnnotatedClassOrMethod(io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiter) timeLimiterAroundAdvice(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 List<TimeLimiterAspectExt> timeLimiterAspectExtList, FallbackExecutor fallbackExecutor, SpelResolver spelResolver, @Nullable io.github.resilience4j.core.ContextAwareScheduledThreadPoolExecutor contextAwareScheduledThreadPoolExecutor)
-
-
Method Details
-
matchAnnotatedClassOrMethod
public void matchAnnotatedClassOrMethod(io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiter) -
timeLimiterAroundAdvice
public Object timeLimiterAroundAdvice(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, @Nullable io.github.resilience4j.timelimiter.annotation.TimeLimiter timeLimiterAnnotation) throws Throwable - Throws:
Throwable
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-