@Test public void webCacheRepositoryTest() throws Exception { FutureWebCacheRepository repository = new FutureWebCacheRepository(); Stopwatch stopwatch = new Stopwatch(); for (final String url : urls) { stopwatch.start(); repository.get(url); stopwatch.stop(); log.debug("First: " + stopwatch.toString()); stopwatch.start(); repository.get(url); stopwatch.stop(); log.debug("Second: " + stopwatch.toString()); } }
@Override public Object get(final String key) throws ExecutionException { return cache.get(key); }
FutureWebCacheRepository extends CacheRepositoryBase { @Override public Object get(final String key) throws ExecutionException { return cache.get(key); } }
FutureWebCacheRepository extends CacheRepositoryBase { @Override public Object get(final String key) throws ExecutionException { return cache.get(key); } FutureWebCacheRepository(); }
FutureWebCacheRepository extends CacheRepositoryBase { @Override public Object get(final String key) throws ExecutionException { return cache.get(key); } FutureWebCacheRepository(); @Override Object get(final String key); @Override void set(final String key, final Object value, long validFor); @Override void remove(final String key); @Override void removeAll(final String... keys); @Override void removeAll(final Iterable<String> keys); @Override boolean exists(final String key); @Override void clear(); }
FutureWebCacheRepository extends CacheRepositoryBase { @Override public Object get(final String key) throws ExecutionException { return cache.get(key); } FutureWebCacheRepository(); @Override Object get(final String key); @Override void set(final String key, final Object value, long validFor); @Override void remove(final String key); @Override void removeAll(final String... keys); @Override void removeAll(final Iterable<String> keys); @Override boolean exists(final String key); @Override void clear();  }