@FunctionalInterface public interface CacheFunction<K,V>
Cache's Function.
 Use this if your implementation throws no exception (i.e. only unchecked
 runtime exceptions). If your cache function throws checked exceptions, then
 just use a CheckedCacheFunction instead.
| Modifier and Type | Method and Description | 
|---|---|
default CacheFunction<K,V> | 
from(Function<K,V> function)
Convenience mapping from java.util.function.Function. 
 | 
default com.google.common.collect.ImmutableMap<K,V> | 
get(Iterable<? extends K> keys)
Implementations may wish to override this implementation
 if they can provide bulk implementations which avoid 1-by-1
 locking overhead which single get() may incur, which is what
 the default implementation does. 
 | 
V | 
get(K key)
Calculate the value of the cache entry for the given key. 
 | 
@Nonnull V get(@Nonnull K key)
key - the key for which to "calculate" (lookup, remote call, ...) a value.default com.google.common.collect.ImmutableMap<K,V> get(Iterable<? extends K> keys)
keys - list of keys of cache entriesCopyright © 2019 OpenDaylight. All rights reserved.