Package javax.cache.annotation
Interface CacheKeyGenerator
-
public interface CacheKeyGeneratorGenerates aGeneratedCacheKeybased on aCacheKeyInvocationContext.Implementations must be thread-safe.
- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GeneratedCacheKeygenerateCacheKey(CacheKeyInvocationContext<? extends java.lang.annotation.Annotation> cacheKeyInvocationContext)Called for each intercepted method invocation to generate a suitable cache key (as aGeneratedCacheKey) from theCacheKeyInvocationContextdata.
-
-
-
Method Detail
-
generateCacheKey
GeneratedCacheKey generateCacheKey(CacheKeyInvocationContext<? extends java.lang.annotation.Annotation> cacheKeyInvocationContext)
Called for each intercepted method invocation to generate a suitable cache key (as aGeneratedCacheKey) from theCacheKeyInvocationContextdata.- Parameters:
cacheKeyInvocationContext- Information about the intercepted method invocation- Returns:
- A non-null cache key for the invocation.
-
-