public interface ProviderInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterInvoke(TraceId traceId,
Object provider,
String methodName,
Object[] args,
Object result,
Throwable failCause)
This code is executed after the method is optionally called.
|
void |
beforeInvoke(TraceId traceId,
Object provider,
String methodName,
Object[] args)
This code is executed before the method is optionally called.
|
void beforeInvoke(TraceId traceId, Object provider, String methodName, Object[] args)
traceId - id for tracing, may be null if without tracingprovider - provider be interceptedmethodName - name of the method to callargs - arguments to the method callvoid afterInvoke(TraceId traceId, Object provider, String methodName, Object[] args, Object result, Throwable failCause)
traceId - id for tracing, may be null if without tracingprovider - provider be interceptedmethodName - name of the called methodargs - arguments to the called methodresult - result of the call, in the case of a call failure, result is nullfailCause - exception of the call, in the case of a call succeeds, failCause is nullCopyright © 2018. All rights reserved.