javax.cache.interceptor
Interface CacheKeyGenerator
- All Known Implementing Classes:
- DefaultCacheKeyGenerator
public interface CacheKeyGenerator
Generates cache keys for intercepted method invocations. Implementations MUST be thread-safe
- Since:
- 1.7
- Author:
- Eric Dalquist
|
Method Summary |
CacheKey |
generateCacheKey(javax.interceptor.InvocationContext invocationContext)
Called for each intercepted method invocation. |
generateCacheKey
CacheKey generateCacheKey(javax.interceptor.InvocationContext invocationContext)
- Called for each intercepted method invocation. Generate a
CacheKey from the InvocationContext data.
- Parameters:
invocationContext - The intercepted method invocation
- Returns:
- A non-null cache key for the invocation.
true