Package com.oracle.coherence.cdi
Class CachePutInterceptor
java.lang.Object
com.oracle.coherence.cdi.AbstractCacheInterceptor
com.oracle.coherence.cdi.CachePutInterceptor
A CDI interceptor that stores parameter value in the Coherence cache.
-
Constructor Summary
ConstructorDescriptionCachePutInterceptor
(Coherence coherence, CoherenceExtension extension) Create theCachePutInterceptor
-
Method Summary
Modifier and TypeMethodDescriptioncachePut
(jakarta.interceptor.InvocationContext ctxInvocation) Stores parameter annotated withCacheValue
into cache, invokes target method and returns result of the invocation.Methods inherited from class com.oracle.coherence.cdi.AbstractCacheInterceptor
getCoherence, getExtension, getSession
-
Constructor Details
-
CachePutInterceptor
Create theCachePutInterceptor
- Parameters:
coherence
- the Coherence instanceextension
- the Coherence CDI extension
-
-
Method Details
-
cachePut
Stores parameter annotated withCacheValue
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
-