public abstract class BaseMeterInterceptor<T,M> extends java.lang.Object implements Interceptor
构造器和说明 |
---|
BaseMeterInterceptor() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
doIntercept(Invocation inv)
拦截
|
protected abstract T |
getAnno(Invocation inv)
获取注解
|
protected abstract java.lang.String |
getAnnoName(T anno)
获取注解名字
|
protected M |
getMeter(java.lang.String meterName,
java.util.function.Supplier<M> supplier) |
protected java.lang.String |
getMeterName(Invocation inv,
T anno) |
protected io.micrometer.core.instrument.Tags |
getMeterTags(Invocation inv,
java.lang.String[] annoTags) |
protected abstract java.lang.Object |
metering(Invocation inv,
T anno)
度量
|
protected abstract T getAnno(Invocation inv)
protected abstract java.lang.String getAnnoName(T anno)
protected abstract java.lang.Object metering(Invocation inv, T anno) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object doIntercept(Invocation inv) throws java.lang.Throwable
Interceptor
doIntercept
在接口中 Interceptor
inv
- 调用者java.lang.Throwable
protected java.lang.String getMeterName(Invocation inv, T anno)
protected io.micrometer.core.instrument.Tags getMeterTags(Invocation inv, java.lang.String[] annoTags)