Top Description Methods
javax.cache.annotation

public Interface CacheKeyGenerator

Imports
java.lang.annotation.Annotation

Generates a GeneratedCacheKey based on a CacheKeyInvocationContext.

Implementations must be thread-safe.

Author
Eric Dalquist
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public GeneratedCacheKey

Returns:

A non-null cache key for the invocation.
generateCacheKey
(CacheKeyInvocationContext<? extends Annotation>
Information about the intercepted method invocation
cacheKeyInvocationContext
)

Called for each intercepted method invocation to generate a suitable cache key (as a GeneratedCacheKey) from the CacheKeyInvocationContext data.

Method Detail

generateCacheKeyback to summary
public GeneratedCacheKey generateCacheKey(CacheKeyInvocationContext<? extends Annotation> cacheKeyInvocationContext)

Called for each intercepted method invocation to generate a suitable cache key (as a GeneratedCacheKey) from the CacheKeyInvocationContext data.

Parameters
cacheKeyInvocationContext:CacheKeyInvocationContext<? extends Annotation>

Information about the intercepted method invocation

Returns:GeneratedCacheKey

A non-null cache key for the invocation.