|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.cache.UniversalCache<K,V>
public class UniversalCache<K,V>
UniversalCache - A universal cache.
| Nested Class Summary | |
|---|---|
static interface |
UniversalCache.ValueYielder<K,V>
The value yielder interface. |
| Constructor Summary | |
|---|---|
UniversalCache(UniversalCache.ValueYielder<K,V> yielder)
Initializes a new UniversalCache. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the cache- |
V |
get(K k)
Gets the result when passing specified input to yielder. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniversalCache(UniversalCache.ValueYielder<K,V> yielder)
UniversalCache.
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||