public final class PageSourcePool extends Object implements Dumpable, Sizeable
Constructor and Description |
---|
PageSourcePool()
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearPages(ClassLoader cl)
remove all Page from Pool using this classloader
|
void |
clearUnused(ConfigImpl config)
clear unused pages from page pool
|
boolean |
exists(Object key)
returns if page object exists
|
int |
getMaxSize() |
PageSource |
getPageSource(Object key,
boolean updateAccesTime)
return pages matching to key
|
boolean |
isEmpty() |
Object[] |
keys() |
boolean |
remove(Object key)
removes a page from the page pool
|
void |
setPage(Object key,
PageSource ps)
sts a page object to the page pool
|
int |
size() |
long |
sizeOf()
return the size of the object
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
public PageSourcePool()
public PageSource getPageSource(Object key, boolean updateAccesTime)
key
- key for the pageupdateAccesTime
- define if do update access timepublic void setPage(Object key, PageSource ps)
key
- key reference to store page objectps
- pagesource to storepublic boolean exists(Object key)
key
- key reference to a page objectpublic boolean remove(Object key)
key
- key reference to page objectpublic int size()
public boolean isEmpty()
public void clearUnused(ConfigImpl config)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public void clearPages(ClassLoader cl)
cl
- public void clear()
public int getMaxSize()
Copyright © 2015 Lucee