@Test public void testExpirationPolicy() throws Exception { ExpiringMapCache cache = new ExpiringMapCache(); assertEquals(ExpirationPolicy.ACCESSED, cache.expirationPolicy()); cache.withExpirationPolicy(ExpirationPolicy.CREATED); assertEquals(ExpirationPolicy.CREATED, cache.expirationPolicy()); }
public ExpirationPolicy expirationPolicy() { return ObjectUtils.defaultIfNull(getExpirationPolicy(), ExpirationPolicy.ACCESSED); }
ExpiringMapCache implements Cache { public ExpirationPolicy expirationPolicy() { return ObjectUtils.defaultIfNull(getExpirationPolicy(), ExpirationPolicy.ACCESSED); } }
ExpiringMapCache implements Cache { public ExpirationPolicy expirationPolicy() { return ObjectUtils.defaultIfNull(getExpirationPolicy(), ExpirationPolicy.ACCESSED); } ExpiringMapCache(); }
ExpiringMapCache implements Cache { public ExpirationPolicy expirationPolicy() { return ObjectUtils.defaultIfNull(getExpirationPolicy(), ExpirationPolicy.ACCESSED); } ExpiringMapCache(); @Override void init(); @Override void put(String key, Serializable value); @Override void put(String key, Object value); @Override void put(String key, Object value, long ttl); @Override void put(String key, Serializable value, long ttl); @Override Object get(String key); @Override void remove(String key); @Override List<String> getKeys(); @Override void clear(); @Override int size(); Integer getMaxEntries(); void setMaxEntries(Integer maxEntries); int maxEntries(); TimeInterval getExpiration(); void setExpiration(TimeInterval expiration); long expiration(); ExpiringMapCacheListener getEventListener(); void setEventListener(ExpiringMapCacheListener cacheListener); ExpirationPolicy getExpirationPolicy(); void setExpirationPolicy(ExpirationPolicy expirationPolicy); ExpirationPolicy expirationPolicy(); ExpiringMapCache withMaxEntries(Integer i); ExpiringMapCache withExpiration(TimeInterval t); ExpiringMapCache withExpirationPolicy(ExpirationPolicy p); ExpiringMapCache withEventListener(ExpiringMapCacheListener p); }
ExpiringMapCache implements Cache { public ExpirationPolicy expirationPolicy() { return ObjectUtils.defaultIfNull(getExpirationPolicy(), ExpirationPolicy.ACCESSED); } ExpiringMapCache(); @Override void init(); @Override void put(String key, Serializable value); @Override void put(String key, Object value); @Override void put(String key, Object value, long ttl); @Override void put(String key, Serializable value, long ttl); @Override Object get(String key); @Override void remove(String key); @Override List<String> getKeys(); @Override void clear(); @Override int size(); Integer getMaxEntries(); void setMaxEntries(Integer maxEntries); int maxEntries(); TimeInterval getExpiration(); void setExpiration(TimeInterval expiration); long expiration(); ExpiringMapCacheListener getEventListener(); void setEventListener(ExpiringMapCacheListener cacheListener); ExpirationPolicy getExpirationPolicy(); void setExpirationPolicy(ExpirationPolicy expirationPolicy); ExpirationPolicy expirationPolicy(); ExpiringMapCache withMaxEntries(Integer i); ExpiringMapCache withExpiration(TimeInterval t); ExpiringMapCache withExpirationPolicy(ExpirationPolicy p); ExpiringMapCache withEventListener(ExpiringMapCacheListener p);  }