Class CompositeCacheKey


  • public class CompositeCacheKey
    extends Object
    A composite cache key is used by the annotations caching API when a method annotated with CacheResult or CacheInvalidate is invoked and when the cache key is composed of several of the method arguments (annotated with CacheKey or not). This class can also be used with the programmatic caching API.
    • Constructor Detail

      • CompositeCacheKey

        public CompositeCacheKey​(Object... keyElements)
        Constructor.
        Parameters:
        keyElements - key elements
        Throws:
        IllegalArgumentException - if no key elements are provided