|
Berkeley DB Java Edition version 3.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.PreloadConfig
public class PreloadConfig
Specifies the attributes of an application invoked preload operation.
Field Summary | |
---|---|
static PreloadConfig |
DEFAULT
Default configuration used if null is passed to Environment.checkpoint . |
Constructor Summary | |
---|---|
PreloadConfig()
An instance created using the default constructor is initialized with the system's default settings. |
Method Summary | |
---|---|
boolean |
getLoadLNs()
Return the configuration of the preload load LNs option. |
long |
getMaxBytes()
Return the number of bytes in the cache to stop the preload at.. |
long |
getMaxMillisecs()
Return the number of millisecs to stop the preload after. |
void |
setLoadLNs(boolean loadLNs)
Configure the preload load LNs option. |
void |
setMaxBytes(long maxBytes)
Configure the maximum number of bytes to preload. |
void |
setMaxMillisecs(long maxMillisecs)
Configure the maximum number of milliseconds to execute preload. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PreloadConfig DEFAULT
Environment.checkpoint
.
Constructor Detail |
---|
public PreloadConfig()
Method Detail |
---|
public void setMaxBytes(long maxBytes)
The default is 0 for this class.
maxBytes
- If the maxBytes parameter is non-zero, a preload will stop when the cache
contains this number of bytes.public long getMaxBytes()
This method may be called at any time during the life of the application.
public void setMaxMillisecs(long maxMillisecs)
The default is 0 for this class.
maxMillisecs
- If the maxMillisecs parameter is non-zero, a preload will stop when this
amount of time has passed.public long getMaxMillisecs()
This method may be called at any time during the life of the application.
public void setLoadLNs(boolean loadLNs)
The default is false for this class.
loadLNs
- If set to true, the preload will load Leaf Nodes (LNs) containing the
data values.public boolean getLoadLNs()
|
Berkeley DB Java Edition version 3.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |