|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CC
Compiler Configuration. There are some static final boolean fields, which describe features MapDB was compiled with.
MapDB can be compiled with/without some features. For example fine logging is useful for debuging, but should not be present in production version. Java does not have preprocessor so we use Dead code elimination to achieve it. Typical usage:
if(CC.PARANOID && arg.calculateSize()!=33){ //calculateSize may take long time
throw new IllegalArgumentException("wrong size");
}
| Field Summary | |
|---|---|
static int |
ASYNC_RECID_PREALLOC_QUEUE_SIZE
|
static int |
ASYNC_WRITE_FLUSH_DELAY
|
static int |
ASYNC_WRITE_QUEUE_SIZE
|
static int |
CONCURRENCY
Concurrency level. |
static String |
DEFAULT_CACHE
|
static int |
DEFAULT_CACHE_SIZE
|
static int |
DEFAULT_FREE_SPACE_RECLAIM_Q
|
static boolean |
FAIR_LOCKS
controls if locks used in MapDB are fair |
static boolean |
LOG_STORE
Compile-in detailed log messages from store. |
static boolean |
PARANOID
Compile with more assertions and verifications. |
static int |
VOLUME_CHUNK_SHIFT
|
| Field Detail |
|---|
static final boolean PARANOID
static final boolean LOG_STORE
static final int ASYNC_WRITE_FLUSH_DELAY
static final int ASYNC_WRITE_QUEUE_SIZE
static final int ASYNC_RECID_PREALLOC_QUEUE_SIZE
static final int CONCURRENCY
static final int DEFAULT_CACHE_SIZE
static final String DEFAULT_CACHE
static final int DEFAULT_FREE_SPACE_RECLAIM_Q
static final boolean FAIR_LOCKS
static final int VOLUME_CHUNK_SHIFT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||