Class BaseCustomAsyncInterceptor

  • All Implemented Interfaces:
    Visitor, AsyncInterceptor

    public class BaseCustomAsyncInterceptor
    extends DDAsyncInterceptor
    Anyone using the AsyncInterceptorChain.addInterceptor(AsyncInterceptor, int) method (or any of its overloaded forms) or registering custom interceptors via XML should extend this base class when creating their own custom interceptors.

    Annotations on custom interceptors, including Inject, Start and Stop will not be respected and callbacks will not be made.

    Instead, custom interceptor authors should extend this base class to gain access to Cache and EmbeddedCacheManager, from which other components may be accessed. Further, lifecycle should be implemented by overriding start() and stop() as defined in this class.

    Since:
    9.0
    Author:
    Dan Berindei
    • Constructor Detail

      • BaseCustomAsyncInterceptor

        public BaseCustomAsyncInterceptor()
    • Method Detail

      • start

        protected void start()
      • stop

        protected void stop()