javax.cache.interceptor
Interface CacheKeyGenerator
public interface CacheKeyGenerator
Generates a CacheKey based on a CacheKeyInvocationContext. Implementations MUST be
thread-safe.
- Since:
- 1.0
- Author:
- Eric Dalquist
generateCacheKey
CacheKey generateCacheKey(CacheKeyInvocationContext<Annotation> cacheKeyInvocationContext)
- Called for each intercepted method invocation. Generate a
CacheKey from the CacheKeyInvocationContext data.
- Parameters:
cacheKeyInvocationContext - Information about the intercepted method invocation
- Returns:
- A non-null cache key for the invocation.
Copyright © 2011. All Rights Reserved.