|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.inject.internal.FailableCache<K,V>
public abstract class FailableCache<K,V>
Lazily creates (and caches) values for keys. If creating the value fails (with errors), an exception is thrown on retrieval.
Constructor Summary | |
---|---|
FailableCache()
|
Method Summary | |
---|---|
protected abstract V |
create(K key,
Errors errors)
|
V |
get(K key,
Errors errors)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FailableCache()
Method Detail |
---|
protected abstract V create(K key, Errors errors) throws ErrorsException
ErrorsException
public V get(K key, Errors errors) throws ErrorsException
ErrorsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |