Interface CacheResolver
public interface CacheResolver
Determines the
Cache to use for an intercepted method invocation.
Implementations MUST be thread-safe.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<K,V> Cache <K, V> resolveCache(CacheInvocationContext<? extends Annotation> cacheInvocationContext) Resolve theCacheto use for theCacheInvocationContext.
-
Method Details
-
resolveCache
Resolve theCacheto use for theCacheInvocationContext.- Type Parameters:
K- the type of keyV- the type of value- Parameters:
cacheInvocationContext- The context data for the intercepted method invocation- Returns:
- The
Cacheinstance to be used by the interceptor
-