@Test public void testSetRetryInterval() throws Exception { TimeInterval newTi = new TimeInterval(10L, TimeUnit.MINUTES); RetryingCacheProxy cache = new RetryingCacheProxy(); assertNull(cache.getRetryInterval()); assertEquals(2000, cache.retryInterval()); cache.setRetryInterval(newTi); assertEquals(newTi, cache.getRetryInterval()); assertEquals(newTi.toMilliseconds(), cache.retryInterval()); cache.setRetryInterval(null); assertNull(cache.getRetryInterval()); assertEquals(2000, cache.retryInterval()); }
public void setRetryInterval(TimeInterval t) { this.retryInterval = t; }
RetryingCacheProxy implements Cache { public void setRetryInterval(TimeInterval t) { this.retryInterval = t; } }
RetryingCacheProxy implements Cache { public void setRetryInterval(TimeInterval t) { this.retryInterval = t; } RetryingCacheProxy();  RetryingCacheProxy(Cache cache); }
RetryingCacheProxy implements Cache { public void setRetryInterval(TimeInterval t) { this.retryInterval = t; } RetryingCacheProxy();  RetryingCacheProxy(Cache cache); @Override void init(); @Override void close(); @Override void start(); @Override void stop(); @Override void put(String key, Serializable value); @Override void put(String key, Object value); @Override Object get(String key); @Override void remove(String key); @Override List<String> getKeys(); @Override void clear(); @Override int size(); Cache getProxiedCache(); void setProxiedCache(Cache c); Integer getMaxAttempts(); void setMaxAttempts(Integer max); TimeInterval getRetryInterval(); void setRetryInterval(TimeInterval t); RetryingCacheProxy withMaxAttempts(Integer i); RetryingCacheProxy withRetryInterval(TimeInterval i); RetryingCacheProxy withProxiedCache(Cache c); }
RetryingCacheProxy implements Cache { public void setRetryInterval(TimeInterval t) { this.retryInterval = t; } RetryingCacheProxy();  RetryingCacheProxy(Cache cache); @Override void init(); @Override void close(); @Override void start(); @Override void stop(); @Override void put(String key, Serializable value); @Override void put(String key, Object value); @Override Object get(String key); @Override void remove(String key); @Override List<String> getKeys(); @Override void clear(); @Override int size(); Cache getProxiedCache(); void setProxiedCache(Cache c); Integer getMaxAttempts(); void setMaxAttempts(Integer max); TimeInterval getRetryInterval(); void setRetryInterval(TimeInterval t); RetryingCacheProxy withMaxAttempts(Integer i); RetryingCacheProxy withRetryInterval(TimeInterval i); RetryingCacheProxy withProxiedCache(Cache c);  }