@CacheResult public SampleObject multiKeysGet(@CacheKey Long id, Boolean notUsed, @CacheKey String domain) { return null; }
@CacheRemove @CacheRemoveAll public void multiAnnotations() { } }
@CachePut(cacheName = "simpleCache", afterInvocation = false, cacheFor = Exception.class, noCacheFor = RuntimeException.class) public void fullPutConfig(@CacheKey Long id, @CacheValue SampleObject instance) { }
@CacheResult(exceptionCacheName = "exception") public Object customKeyGeneratorAndCacheResolverWithExceptionName(Long id) { return null; } }
@Override @CachePut public void put(String id, @CacheValue Object value) { }
@CacheDefaults(cacheResolverFactory = TestableCacheResolverFactory.class, cacheKeyGenerator = TestableCacheKeyGenerator.class) static class CustomServiceWithDefaults { @CacheResult public Object customKeyGeneratorAndCacheResolver(Long id) { return null; } @CacheResult(exceptionCacheName = "exception") public Object customKeyGeneratorAndCacheResolverWithExceptionName(Long id) { return null; } }
@Override @CachePut(cacheFor = UnsupportedOperationException.class) public void putWithException(@CacheKey String id, @CacheValue Object value, boolean matchFilter) { throwException(matchFilter); }
@CacheResult(cacheName = "simpleCache", skipGet = true, cachedExceptions = Exception.class, nonCachedExceptions = RuntimeException.class) public SampleObject fullGetConfig(@CacheKey Long id) { return null; }
@Override @CacheResult public Long cacheNull(String id) { return null; }
@CachePut(cacheName = "simpleCache") public void multiCacheValues(Long id, @CacheValue SampleObject instance, @CacheValue SampleObject anotherInstance) { }
@Override @CachePut(cacheFor = UnsupportedOperationException.class) public void putWithException(@CacheKey String id, @CacheValue Object value, boolean matchFilter) { throwException(matchFilter); }
@Override @CacheResult public Long cacheWithPartialKey(@CacheKey String id, boolean notUsed) { return counter.getAndIncrement(); }
@CacheResult public Object get(String id) { return null; } }
@Override @CachePut public void put(String id, @CacheValue Object value) { }
@Override @CachePut(afterInvocation = false) public void earlyPutWithException(@CacheKey String id, @CacheValue Object value, boolean matchFilter) { throwException(matchFilter); }
@CacheResult(cacheResolverFactory = TestableCacheResolverFactory.class) public Object customCacheResolver(Long id) { return null; } }
@CachePut(cacheName = "simpleCache") public void simplePut(Long id, @CacheValue SampleObject instance) { }
@Override @CachePut(afterInvocation = false) public void earlyPutWithException(@CacheKey String id, @CacheValue Object value, boolean matchFilter) { throwException(matchFilter); }
@Override @CacheResult public Long cacheNull(String id) { return null; }
@CachePut public void put(long id, @CacheValue Object object) { }