|
||||||||||
| 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()
|
File |
getFileStoreFolder()
|
int |
getInmemoryCacheSize()
|
Bytes |
getMaxSizePerSession()
|
boolean |
isAsynchronous()
|
void |
setAsynchronous(boolean async)
Sets a flag whether to wrap the configured IDataStore with
AsynchronousDataStore. |
void |
setAsynchronousQueueCapacity(int queueCapacity)
Sets the capacity of the queue used to store the pages which will be stored asynchronously |
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 application scoped second level cache 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 getInmemoryCacheSize()
getInmemoryCacheSize in interface IStoreSettingspublic void setInmemoryCacheSize(int inmemoryCacheSize)
IStoreSettings
setInmemoryCacheSize in interface IStoreSettingsinmemoryCacheSize - the maximum number of page instances which will be held in the application scoped
cachepublic Bytes getMaxSizePerSession()
getMaxSizePerSession in interface IStoreSettingsDiskDataStore will start
saving the pages at the beginning of file.public void setMaxSizePerSession(Bytes maxSizePerSession)
IStoreSettingsFile 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 IStoreSettingsmaxSizePerSession - the maximum size of the file where page instances are stored per session. In
bytes.public File getFileStoreFolder()
getFileStoreFolder in interface IStoreSettingsDiskDataStore will store the files with page
instances per sessionpublic void setFileStoreFolder(File fileStoreFolder)
IStoreSettingsDiskDataStore will store the files with page instances per
session
setFileStoreFolder in interface IStoreSettingsfileStoreFolder - the new locationpublic int getAsynchronousQueueCapacity()
getAsynchronousQueueCapacity in interface IStoreSettingsAsynchronousDataStorepublic void setAsynchronousQueueCapacity(int queueCapacity)
IStoreSettings
setAsynchronousQueueCapacity in interface IStoreSettingsqueueCapacity - the capacity of the queueAsynchronousDataStorepublic void setAsynchronous(boolean async)
IStoreSettingsIDataStore with
AsynchronousDataStore. By doing this the HTTP worker thread will not wait for the
actual write of the page's bytes into the wrapped IDataStore.
setAsynchronous in interface IStoreSettingsasync - true to make it asynchronous, false - otherwisepublic boolean isAsynchronous()
isAsynchronous in interface IStoreSettingstrue if the storing of page's bytes is asynchronous
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||