Package net.sf.jasperreports.engine.fill
Class JRAbstractLRUVirtualizer.Cache
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRAbstractLRUVirtualizer.Cache
-
- Enclosing class:
- JRAbstractLRUVirtualizer
protected class JRAbstractLRUVirtualizer.Cache extends Object
This class keeps track of how many objects are currently in memory, and when there are too many, it pushes the last touched one to disk.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(String id)
List<JRVirtualizable>
evictionCandidates()
JRVirtualizable
get(String id)
protected JRVirtualizable
getMapValue(JRAbstractLRUVirtualizer.CacheReference val)
Iterator<String>
idIterator()
protected void
purge()
JRVirtualizable
put(String id, JRVirtualizable o)
JRVirtualizable
remove(String id)
protected JRAbstractLRUVirtualizer.CacheReference
toMapValue(JRVirtualizable val)
-
-
-
Method Detail
-
getMapValue
protected JRVirtualizable getMapValue(JRAbstractLRUVirtualizer.CacheReference val)
-
toMapValue
protected JRAbstractLRUVirtualizer.CacheReference toMapValue(JRVirtualizable val)
-
purge
protected void purge()
-
contains
public boolean contains(String id)
-
get
public JRVirtualizable get(String id)
-
put
public JRVirtualizable put(String id, JRVirtualizable o)
-
evictionCandidates
public List<JRVirtualizable> evictionCandidates()
-
remove
public JRVirtualizable remove(String id)
-
-