|
Berkeley DB Java Edition version 4.1.6 |
|||||||||
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.
Constructor Summary | |
---|---|
PreloadConfig()
Default configuration used if null is passed to Database.preload . |
Method Summary | |
---|---|
PreloadConfig |
clone()
Returns a copy of this configuration object. |
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. |
PreloadConfig |
setLoadLNs(boolean loadLNs)
Configure the preload load LNs option. |
PreloadConfig |
setMaxBytes(long maxBytes)
Configure the maximum number of bytes to preload. |
PreloadConfig |
setMaxMillisecs(long maxMillisecs)
Configure the maximum number of milliseconds to execute preload. |
String |
toString()
Returns the values for each configuration attribute. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PreloadConfig()
Database.preload
.
Method Detail |
---|
public PreloadConfig 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 PreloadConfig 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 PreloadConfig 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()
public PreloadConfig clone()
clone
in class Object
public String toString()
toString
in class Object
|
Berkeley DB Java Edition version 4.1.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |