|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IStoreSettings
public void setInmemoryCacheSize(int inmemoryCacheSize)
IStoreSettings
setInmemoryCacheSize
in interface IStoreSettings
inmemoryCacheSize
- the maximum number of page instances which will be held in the application scoped
cachepublic 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
public void setAsynchronous(boolean async)
IStoreSettings
IDataStore
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 IStoreSettings
async
- true
to make it asynchronous, false
- otherwisepublic boolean isAsynchronous()
isAsynchronous
in interface IStoreSettings
true
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 |