|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.settings.def.StoreSettings
public class StoreSettings
The implementation of IStoreSettings
Constructor Summary | |
---|---|
StoreSettings(Application application)
Construct. |
Method Summary | |
---|---|
int |
getAsynchronousQueueCapacity()
|
int |
getFileChannelPoolCapacity()
|
File |
getFileStoreFolder()
|
int |
getInmemoryCacheSize()
|
Bytes |
getMaxSizePerSession()
|
void |
setAsynchronousQueueCapacity(int queueCapacity)
Sets the capacity of the queue used to store the pages which will be stored asynchronously |
void |
setFileChannelPoolCapacity(int capacity)
Sets the number of maximum opened file channels by DiskDataStore |
void |
setFileStoreFolder(File fileStoreFolder)
Sets the folder where DiskDataStore will store the files with page instances per
session |
void |
setInmemoryCacheSize(int inmemoryCacheSize)
Sets the maximum number of page instances which will be stored in the http session for faster retrieval |
void |
setMaxSizePerSession(Bytes maxSizePerSession)
Sets the maximum size of the File where page instances per session are stored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreSettings(Application application)
application
- Method Detail |
---|
public int getFileChannelPoolCapacity()
getFileChannelPoolCapacity
in interface IStoreSettings
DiskDataStore
.public void setFileChannelPoolCapacity(int capacity)
IStoreSettings
DiskDataStore
setFileChannelPoolCapacity
in interface IStoreSettings
capacity
- the new maximum number of opened file channelspublic int getInmemoryCacheSize()
getInmemoryCacheSize
in interface IStoreSettings
public void setInmemoryCacheSize(int inmemoryCacheSize)
IStoreSettings
setInmemoryCacheSize
in interface IStoreSettings
inmemoryCacheSize
- the maximum number of page instances which will be held in the http sessionpublic Bytes getMaxSizePerSession()
getMaxSizePerSession
in interface IStoreSettings
DiskDataStore
will start
saving the pages at the beginning of file.public void setMaxSizePerSession(Bytes maxSizePerSession)
IStoreSettings
File
where page instances per session are stored. After
reaching this size the DiskDataStore
will start overriding the oldest pages at the
beginning of the file.
setMaxSizePerSession
in interface IStoreSettings
maxSizePerSession
- the maximum size of the file where page instances are stored per session. In
bytes.public File getFileStoreFolder()
getFileStoreFolder
in interface IStoreSettings
DiskDataStore
will store the files with page
instances per sessionpublic void setFileStoreFolder(File fileStoreFolder)
IStoreSettings
DiskDataStore
will store the files with page instances per
session
setFileStoreFolder
in interface IStoreSettings
fileStoreFolder
- the new locationpublic int getAsynchronousQueueCapacity()
getAsynchronousQueueCapacity
in interface IStoreSettings
AsynchronousDataStore
public void setAsynchronousQueueCapacity(int queueCapacity)
IStoreSettings
setAsynchronousQueueCapacity
in interface IStoreSettings
queueCapacity
- the capacity of the queueAsynchronousDataStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |