| Modifier and Type | Method and Description |
|---|---|
Env<T> |
open(java.io.File path,
EnvFlags... flags)
Opens the environment with 0664 mode.
|
Env<T> |
open(java.io.File path,
int mode,
EnvFlags... flags)
Opens the environment.
|
Env.Builder<T> |
setMapSize(long mapSize)
Sets the map size.
|
Env.Builder<T> |
setMaxDbs(int dbs)
Sets the maximum number of databases (ie
Dbis permitted. |
Env.Builder<T> |
setMaxReaders(int readers)
Sets the maximum number of databases permitted.
|
public Env<T> open(java.io.File path, int mode, EnvFlags... flags)
path - file system destinationmode - Unix permissions to set on created files and semaphoresflags - the flags for this new environmentpublic Env<T> open(java.io.File path, EnvFlags... flags)
path - file system destinationflags - the flags for this new environmentpublic Env.Builder<T> setMapSize(long mapSize)
mapSize - new limit in bytespublic Env.Builder<T> setMaxDbs(int dbs)
Dbis permitted.dbs - new limitpublic Env.Builder<T> setMaxReaders(int readers)
readers - new limitCopyright © 2016–2018 The LmdbJava Open Source Project. All rights reserved.