Class CachePutInterceptor


  • @Interceptor
    @Priority(1005)
    public class CachePutInterceptor
    extends AbstractCacheInterceptor
    A CDI interceptor that stores parameter value in the Coherence cache.
    • Method Detail

      • cachePut

        public Object cachePut​(javax.interceptor.InvocationContext ctxInvocation)
                        throws Exception
        Stores parameter annotated with CacheValue into cache, invokes target method and returns result of the invocation.
        Parameters:
        ctxInvocation - the invocation context
        Returns:
        the result of the invocation of the target method
        Throws:
        Exception - if thrown by target method