Class CacheInterceptor
- java.lang.Object
-
- io.quarkus.infinispan.client.runtime.cache.CacheInterceptor
-
- Direct Known Subclasses:
CacheInvalidateAllInterceptor,CacheInvalidateInterceptor,CacheResultInterceptor
public abstract class CacheInterceptor extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCacheInterceptor.ReturnType
-
Field Summary
Fields Modifier and Type Field Description static intBASE_PRIORITY(package private) org.infinispan.client.hotrod.RemoteCacheManagercacheManagerprotected static StringUNHANDLED_ASYNC_RETURN_TYPE_MSG
-
Constructor Summary
Constructors Constructor Description CacheInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.smallrye.mutiny.Uni<?>asyncInvocationResultToUni(Object invocationResult, CacheInterceptor.ReturnType returnType)protected ObjectcreateAsyncResult(io.smallrye.mutiny.Uni<Object> cacheValue, CacheInterceptor.ReturnType returnType)protected static CacheInterceptor.ReturnTypedetermineReturnType(Class<?> returnType)protected ObjectgetCacheKey(Object[] methodParameterValues)protected <T extends Annotation>
CacheInterceptionContext<T>getInterceptionContext(javax.interceptor.InvocationContext invocationContext, Class<T> interceptorBindingClass)
-
-
-
Field Detail
-
BASE_PRIORITY
public static final int BASE_PRIORITY
- See Also:
- Constant Field Values
-
UNHANDLED_ASYNC_RETURN_TYPE_MSG
protected static final String UNHANDLED_ASYNC_RETURN_TYPE_MSG
- See Also:
- Constant Field Values
-
cacheManager
@Inject org.infinispan.client.hotrod.RemoteCacheManager cacheManager
-
-
Method Detail
-
getInterceptionContext
protected <T extends Annotation> CacheInterceptionContext<T> getInterceptionContext(javax.interceptor.InvocationContext invocationContext, Class<T> interceptorBindingClass)
-
determineReturnType
protected static CacheInterceptor.ReturnType determineReturnType(Class<?> returnType)
-
asyncInvocationResultToUni
protected io.smallrye.mutiny.Uni<?> asyncInvocationResultToUni(Object invocationResult, CacheInterceptor.ReturnType returnType)
-
createAsyncResult
protected Object createAsyncResult(io.smallrye.mutiny.Uni<Object> cacheValue, CacheInterceptor.ReturnType returnType)
-
-