|
|
|
Berkeley DB version 4.4.20 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.CompactConfig
Configuration for Database.compact(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.CompactConfig)
operations.
Field Summary | |
static CompactConfig |
DEFAULT
Default configuration used if null is passed to methods that create a cursor. |
Constructor Summary | |
CompactConfig()
Construct a default configuration object for compact operations. |
Method Summary | |
int |
getFillPercent()
Return the the desired fill percentage. |
boolean |
getFreeListOnly()
Return true if the whether to skip page compaction. |
boolean |
getFreeSpace()
Return true if the whether to return pages to the filesystem. |
int |
getTimeout()
Return the the lock timeout set for implicit transactions, in microseconds. |
void |
setFillPercent(int fillpercent)
Set the desired fill percentage. |
void |
setFreeListOnly(boolean freeListOnly)
Configure whether to skip page compaction, only returning pages to the filesystem that are already free and at the end of the file. |
void |
setFreeSpace(boolean freeSpace)
Return pages to the filesystem if possible. |
void |
setTimeout(int timeout)
Set the lock timeout for implicit transactions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final CompactConfig DEFAULT
Constructor Detail |
public CompactConfig()
Method Detail |
public void setFillPercent(int fillpercent)
fillpercent
- The desired fill percentage.public int getFillPercent()
This method may be called at any time during the life of the application.
public void setFreeListOnly(boolean freeListOnly)
freeListOnly
- Whether to skip page compactionpublic boolean getFreeListOnly()
This method may be called at any time during the life of the application.
public void setFreeSpace(boolean freeSpace)
freeSpace
- Whether to return pages to the filesystempublic boolean getFreeSpace()
This method may be called at any time during the life of the application.
public void setTimeout(int timeout)
Database.compact(com.sleepycat.db.Transaction, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.DatabaseEntry, com.sleepycat.db.CompactConfig)
, the lock timeout set for implicit
transactions, in microseconds.
timeout
- the lock timeout set for implicit transactions, in microseconds.public int getTimeout()
This method may be called at any time during the life of the application.
|
Berkeley DB version 4.4.20 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |