public class UniversalCache<K,V>
extends java.lang.Object
UniversalCache - A universal cache.| Modifier and Type | Class and Description |
|---|---|
static interface |
UniversalCache.ValueYielder<K,V>
The value yielder interface.
|
| Constructor and Description |
|---|
UniversalCache(UniversalCache.ValueYielder<K,V> yielder)
Initializes a new
UniversalCache. |
public UniversalCache(UniversalCache.ValueYielder<K,V> yielder)
UniversalCache.public V get(K k) throws java.lang.InterruptedException
k - The input.java.lang.InterruptedException - If current thread is interrupted while waiting for result being yielded.public void clear()