java.lang.Object
org.lmdbjava.Env.Builder<T>
- Type Parameters:
T- buffer type
Builder for configuring and opening Env.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionOpens the environment.Opens the environment with 0664 mode.setMapSize(long mapSize) Sets the map size.setMaxDbs(int dbs) Sets the maximum number of databases (ieDbis permitted.setMaxReaders(int readers) Sets the maximum number of databases permitted.
-
Field Details
-
MAX_READERS_DEFAULT
public static final int MAX_READERS_DEFAULT- See Also:
-
-
Method Details
-
open
Opens the environment.- Parameters:
path- file system destinationmode- Unix permissions to set on created files and semaphoresflags- the flags for this new environment- Returns:
- an environment ready for use
-
open
Opens the environment with 0664 mode.- Parameters:
path- file system destinationflags- the flags for this new environment- Returns:
- an environment ready for use
-
setMapSize
Sets the map size.- Parameters:
mapSize- new limit in bytes- Returns:
- the builder
-
setMaxDbs
Sets the maximum number of databases (ieDbis permitted.- Parameters:
dbs- new limit- Returns:
- the builder
-
setMaxReaders
Sets the maximum number of databases permitted.- Parameters:
readers- new limit- Returns:
- the builder
-