public enum EnvFlags extends java.lang.Enum<EnvFlags> implements MaskedFlag
Env
.Enum Constant and Description |
---|
MDB_FIXEDMAP
Mmap at a fixed address (experimental).
|
MDB_MAPASYNC
Use asynchronous msync when
MDB_WRITEMAP is used. |
MDB_NOLOCK
Don't do any locking, caller must manage their own locks.
|
MDB_NOMEMINIT
Don't initialize malloc'd memory before writing to datafile.
|
MDB_NOMETASYNC
Don't fsync metapage after commit.
|
MDB_NORDAHEAD
Don't do readahead (no effect on Windows).
|
MDB_NOSUBDIR
No environment directory.
|
MDB_NOSYNC
Don't fsync after commit.
|
MDB_NOTLS
Tie reader locktable slots to
Txn objects instead of to threads. |
MDB_RDONLY_ENV
Read only.
|
MDB_WRITEMAP
Use writable mmap.
|
Modifier and Type | Method and Description |
---|---|
int |
getMask()
Obtains the integer value for this enum which can be included in a mask.
|
static EnvFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnvFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isSet, mask
public static final EnvFlags MDB_FIXEDMAP
public static final EnvFlags MDB_NOSUBDIR
public static final EnvFlags MDB_NOSYNC
public static final EnvFlags MDB_RDONLY_ENV
public static final EnvFlags MDB_NOMETASYNC
public static final EnvFlags MDB_WRITEMAP
public static final EnvFlags MDB_MAPASYNC
MDB_WRITEMAP
is used.public static final EnvFlags MDB_NOTLS
Txn
objects instead of to threads.public static final EnvFlags MDB_NOLOCK
public static final EnvFlags MDB_NORDAHEAD
public static final EnvFlags MDB_NOMEMINIT
public static EnvFlags[] values()
for (EnvFlags c : EnvFlags.values()) System.out.println(c);
public static EnvFlags valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMask()
MaskedFlag
getMask
in interface MaskedFlag
Copyright © 2016–2018 The LmdbJava Open Source Project. All rights reserved.