public abstract class AbstractSentinelAspectSupport extends Object
| Constructor and Description |
|---|
AbstractSentinelAspectSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exceptionBelongsTo(Throwable ex,
Class<? extends Throwable>[] exceptions)
Check whether the exception is in provided list of exception classes.
|
protected String |
getResourceName(String resourceName,
Method method) |
protected Object |
handleBlockException(org.aspectj.lang.ProceedingJoinPoint pjp,
SentinelResource annotation,
BlockException ex) |
protected Object |
handleDefaultFallback(org.aspectj.lang.ProceedingJoinPoint pjp,
String defaultFallback,
Class<?>[] fallbackClass,
Throwable ex) |
protected Object |
handleFallback(org.aspectj.lang.ProceedingJoinPoint pjp,
SentinelResource annotation,
Throwable ex) |
protected Object |
handleFallback(org.aspectj.lang.ProceedingJoinPoint pjp,
String fallback,
String defaultFallback,
Class<?>[] fallbackClass,
Throwable ex) |
protected Method |
resolveMethod(org.aspectj.lang.ProceedingJoinPoint joinPoint) |
protected void |
traceException(Throwable ex) |
protected void |
traceException(Throwable ex,
SentinelResource annotation) |
protected void traceException(Throwable ex)
protected void traceException(Throwable ex, SentinelResource annotation)
protected boolean exceptionBelongsTo(Throwable ex, Class<? extends Throwable>[] exceptions)
ex - provided throwableexceptions - list of exceptionsprotected Object handleFallback(org.aspectj.lang.ProceedingJoinPoint pjp, SentinelResource annotation, Throwable ex) throws Throwable
Throwableprotected Object handleFallback(org.aspectj.lang.ProceedingJoinPoint pjp, String fallback, String defaultFallback, Class<?>[] fallbackClass, Throwable ex) throws Throwable
Throwableprotected Object handleDefaultFallback(org.aspectj.lang.ProceedingJoinPoint pjp, String defaultFallback, Class<?>[] fallbackClass, Throwable ex) throws Throwable
Throwableprotected Object handleBlockException(org.aspectj.lang.ProceedingJoinPoint pjp, SentinelResource annotation, BlockException ex) throws Throwable
Throwableprotected Method resolveMethod(org.aspectj.lang.ProceedingJoinPoint joinPoint)
Copyright © 2020 Alibaba Group. All rights reserved.