Calculating Processing time for a Mule flow by using Interceptors

前端 未结 3 1509
抹茶落季
抹茶落季 2021-01-23 10:33

I want to calculate the execution time which my mule flow takes for execution,so I have used interceptor for it, here is my interceptor code

    class CustomLogg         


        
3条回答
  •  再見小時候
    2021-01-23 11:02

    I can't advise to use an AbstractEnvelopeInterceptor for two reasins, it's not part of the public API and they don't do exactly what you want, as per:

    EnvelopeInterceptor is an intercepter that will fire before and after an event is received.
    

    Have you considered using server notifications?

提交回复
热议问题