public class StoreSettings extends Object
IPageStore
,
IDataStore
and IPageManager
.
For more information about page storages read Page Storage - Wiki page
Constructor and Description |
---|
StoreSettings(Application application)
Construct.
|
Modifier and Type | Method and Description |
---|---|
int |
getAsynchronousQueueCapacity() |
File |
getFileStoreFolder() |
int |
getInmemoryCacheSize() |
Bytes |
getMaxSizePerSession() |
boolean |
isAsynchronous() |
StoreSettings |
setAsynchronous(boolean async)
Sets a flag whether to wrap the configured
IDataStore with
AsynchronousDataStore . |
StoreSettings |
setAsynchronousQueueCapacity(int queueCapacity)
Sets the capacity of the queue used to store the pages which will be stored asynchronously
|
StoreSettings |
setFileStoreFolder(File fileStoreFolder)
Sets the folder where
DiskDataStore will store the files with page instances per
session |
StoreSettings |
setInmemoryCacheSize(int inmemoryCacheSize)
Sets the maximum number of page instances which will be stored in the application scoped
second level cache for faster retrieval
|
StoreSettings |
setMaxSizePerSession(Bytes maxSizePerSession)
Sets the maximum size of the
File where page instances per session are stored. |
public StoreSettings(Application application)
application
- public int getInmemoryCacheSize()
public StoreSettings setInmemoryCacheSize(int inmemoryCacheSize)
inmemoryCacheSize
- the maximum number of page instances which will be held in the application scoped
cachethis
object for chainingpublic Bytes getMaxSizePerSession()
DiskDataStore
will start saving the
pages at the beginning of file.public StoreSettings 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.this
object for chainingpublic File getFileStoreFolder()
DiskDataStore
will store the files with page
instances per sessionpublic StoreSettings setFileStoreFolder(File fileStoreFolder)
DiskDataStore
will store the files with page instances per
sessionfileStoreFolder
- the new locationthis
object for chainingpublic int getAsynchronousQueueCapacity()
AsynchronousDataStore
public StoreSettings setAsynchronousQueueCapacity(int queueCapacity)
queueCapacity
- the capacity of the queuethis
object for chainingAsynchronousDataStore
public StoreSettings 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
- otherwisethis
object for chainingpublic boolean isAsynchronous()
true
if the storing of page's bytes is asynchronousCopyright © 2006–2022 Apache Software Foundation. All rights reserved.