|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.session.StateCache
public class StateCache
It is composed by a data struture limited by a maximun size (maxSize). Map data struture is composed by elements of type IPage (all the possible requests generated in the request processing).
| Constructor Summary | |
|---|---|
StateCache()
|
|
| Method Summary | |
|---|---|
java.lang.String |
addPage(java.lang.String key)
Adds a new page identifier to the map pageIds. |
java.lang.String |
cleanBuffer()
If the map pageIds has reached its maximun size
maxSize, the oldest page identifier in the map is deleted. |
int |
getMaxSize()
|
java.util.List |
getPageIds()
|
void |
init()
pageIds map initialization |
void |
setMaxSize(int maxSize)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StateCache()
| Method Detail |
|---|
public void init()
public java.lang.String addPage(java.lang.String key)
pageIds.
addPage in interface IStateCachepageIds has reached its maximun size
maxSize, the oldest page identifier is deleted.
Otherwise, null will be returned.public java.lang.String cleanBuffer()
pageIds has reached its maximun size
maxSize, the oldest page identifier in the map is deleted.
pageIds. Null in
otherwise.public java.lang.String toString()
toString in class java.lang.Objectpublic int getMaxSize()
public void setMaxSize(int maxSize)
maxSize - The maxSize to set.public java.util.List getPageIds()
getPageIds in interface IStateCache
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||