|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStoreSettings
An interface for settings related to the the storages where page instances are persisted -
IPageStore
, IDataStore
and IPageManager
.
For more information about page storages read Page Storage - Wiki page
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 capacity)
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. |
Method Detail |
---|
int getInmemoryCacheSize()
void setInmemoryCacheSize(int inmemoryCacheSize)
inmemoryCacheSize
- the maximum number of page instances which will be held in the application scoped
cacheBytes getMaxSizePerSession()
DiskDataStore
will start
saving the pages at the beginning of file.void setMaxSizePerSession(Bytes maxSizePerSession)
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.
maxSizePerSession
- the maximum size of the file where page instances are stored per session. In
bytes.File getFileStoreFolder()
DiskDataStore
will store the files with page
instances per sessionvoid setFileStoreFolder(File fileStoreFolder)
DiskDataStore
will store the files with page instances per
session
fileStoreFolder
- the new locationint getAsynchronousQueueCapacity()
AsynchronousDataStore
void setAsynchronousQueueCapacity(int capacity)
capacity
- the capacity of the queueAsynchronousDataStore
void setAsynchronous(boolean async)
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
.
async
- true
to make it asynchronous, false
- otherwiseboolean isAsynchronous()
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 |