public class ClearableDocumentLayerCache extends Object implements com.levigo.jadice.document.DocumentLayerCache
A DocumentLayerCache
which can be cleared so that no DocumentLayer
s will
be cached forever. This helps to avoid memory leaks.
Constructor and Description |
---|
ClearableDocumentLayerCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
com.levigo.jadice.document.DocumentLayer |
getDocumentLayer(String name,
int priority) |
int |
getSize() |
void |
putDocumentLayer(com.levigo.jadice.document.DocumentLayer layer) |
public com.levigo.jadice.document.DocumentLayer getDocumentLayer(String name, int priority)
getDocumentLayer
in interface com.levigo.jadice.document.DocumentLayerCache
public void putDocumentLayer(com.levigo.jadice.document.DocumentLayer layer)
putDocumentLayer
in interface com.levigo.jadice.document.DocumentLayerCache
public void clear()
public int getSize()
DocumentLayer
s currently cachedCopyright © 2017 levigo holding gmbh. All rights reserved.