Interface CheckedCache<K,V,E extends Exception>
-
- Type Parameters:
K
- key type of cache (must be immutable)V
- value type of cache (should, for monitoring, typically, be of "similar" size for all keys)E
- exception type cache can throw
- All Superinterfaces:
AutoCloseable
,BaseCache<K,V>
- All Known Implementing Classes:
DelegatingNullSafeCheckedCache
public interface CheckedCache<K,V,E extends Exception> extends BaseCache<K,V>
Cache of keys to values, for cache function which may throw a checked exception.See
Cache
for caches who's cache function never throw checked exceptions (i.e. only unchecked ones). Cache also has more general documentation which applies to this API as well.- Author:
- Michael Vorburger.ch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.google.common.collect.ImmutableMap<K,V>
get(Iterable<? extends K> keys)
V
get(K key)
Get cache entry.default com.google.common.collect.ImmutableMap<K,V>
get(K... keys)
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.opendaylight.infrautils.caches.BaseCache
asMap, evict, getManager, put
-
-