public class ObjectCache extends MapBackedCache<String,Object> implements SolrCloseable
map| 构造器和说明 |
|---|
ObjectCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
void |
close() |
<T> T |
computeIfAbsent(String key,
Class<T> clazz,
Function<String,? extends T> mappingFunction) |
Object |
get(String key) |
<T> T |
get(String key,
Class<T> clazz) |
boolean |
isClosed() |
Object |
put(String key,
Object val) |
Object |
remove(String key) |
asMap, computeIfAbsentpublic void clear()
public <T> T computeIfAbsent(String key, Class<T> clazz, Function<String,? extends T> mappingFunction)
public boolean isClosed()
isClosed 在接口中 SolrCloseablepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.