Package org.apache.solr.common.util
Class ObjectCache
java.lang.Object
org.apache.solr.common.util.ObjectCache
- All Implemented Interfaces:
Closeable,AutoCloseable,SolrCloseable
Simple object cache with a type-safe accessor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
-
Constructor Details
-
ObjectCache
public ObjectCache()
-
-
Method Details
-
put
-
get
-
remove
-
clear
public void clear() -
get
-
computeIfAbsent
-
computeIfAbsent
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceSolrCloseable
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-