Package io.quarkus.cache.runtime
Class CacheInterceptor
java.lang.Object
io.quarkus.cache.runtime.CacheInterceptor
- Direct Known Subclasses:
CacheInvalidateAllInterceptor
,CacheInvalidateInterceptor
,CacheResultInterceptor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
(package private) CacheManager
(package private) jakarta.enterprise.inject.Instance<CacheKeyGenerator>
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.smallrye.mutiny.Uni<?>
asyncInvocationResultToUni
(Object invocationResult, CacheInterceptor.ReturnType returnType) protected Object
createAsyncResult
(io.smallrye.mutiny.Uni<Object> cacheValue, CacheInterceptor.ReturnType returnType) protected static CacheInterceptor.ReturnType
determineReturnType
(Class<?> returnType) protected Object
getCacheKey
(Cache cache, Class<? extends CacheKeyGenerator> keyGeneratorClass, List<Short> cacheKeyParameterPositions, Method method, Object[] methodParameterValues) protected <T> CacheInterceptionContext<T>
getInterceptionContext
(jakarta.interceptor.InvocationContext invocationContext, Class<T> interceptorBindingClass, boolean supportsCacheKey)
-
Field Details
-
BASE_PRIORITY
public static final int BASE_PRIORITY- See Also:
-
UNHANDLED_ASYNC_RETURN_TYPE_MSG
- See Also:
-
cacheManager
-
keyGenerator
-
-
Constructor Details
-
CacheInterceptor
public CacheInterceptor()
-
-
Method Details
-
getInterceptionContext
protected <T> CacheInterceptionContext<T> getInterceptionContext(jakarta.interceptor.InvocationContext invocationContext, Class<T> interceptorBindingClass, boolean supportsCacheKey) -
getCacheKey
-
determineReturnType
-
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)
-