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