public class ObjectCache extends MapBackedCache<String,Object> implements SolrCloseable
map
Constructor and Description |
---|
ObjectCache() |
Modifier and Type | Method and Description |
---|---|
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) |
computeIfAbsent
public void clear()
public <T> T computeIfAbsent(String key, Class<T> clazz, Function<String,? extends T> mappingFunction)
public boolean isClosed()
isClosed
in interface SolrCloseable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.