Class ClearableDocumentLayerCache
- java.lang.Object
-
- com.levigo.jadice.server.core.util.housekeeping.ClearableDocumentLayerCache
-
- All Implemented Interfaces:
com.levigo.jadice.document.DocumentLayerCache
public class ClearableDocumentLayerCache extends Object implements com.levigo.jadice.document.DocumentLayerCache
ADocumentLayerCache
which can be cleared so that noDocumentLayer
s will be cached forever. This helps to avoid memory leaks.
-
-
Constructor Summary
Constructors Constructor Description ClearableDocumentLayerCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
com.levigo.jadice.document.DocumentLayer
getDocumentLayer(String name, int priority)
int
getSize()
void
putDocumentLayer(com.levigo.jadice.document.DocumentLayer layer)
-
-
-
Method Detail
-
getDocumentLayer
public com.levigo.jadice.document.DocumentLayer getDocumentLayer(String name, int priority)
- Specified by:
getDocumentLayer
in interfacecom.levigo.jadice.document.DocumentLayerCache
-
putDocumentLayer
public void putDocumentLayer(com.levigo.jadice.document.DocumentLayer layer)
- Specified by:
putDocumentLayer
in interfacecom.levigo.jadice.document.DocumentLayerCache
-
clear
public void clear()
-
getSize
public int getSize()
- Returns:
- Number of non-default
DocumentLayer
s currently cached
-
-