Additional parameters are described by the parameter name String constants in this class. These additional parameters will not be needed by most applications. This category of properties can be specified for the EnvironmentConfig object through a Properties object read by EnvironmentConfig(Properties), or individually through EnvironmentConfig.setConfigParam().
For example, an application can change the default btree node size with:
envConfig.setConfigParam(EnvironmentConfig.NODE_MAX_ENTRIES, "256");
Environment configuration follows this order of precedence:
An EnvironmentConfig can be used to specify both mutable and immutable environment properties. Immutable properties may be specified when the first Environment handle (instance) is opened for a given physical environment. When more handles are opened for the same environment, the following rules apply:
After an Environment has been constructed, its mutable properties may be changed using {@link Environment#setMutableConfig}. See {@link EnvironmentMutableConfig} for a list of mutable properties; all otherproperties are immutable. Whether a property is mutable or immutable is also described along with the parameter name String constants in this class.
Several environment and transaction configuration properties are time durations. For these properties, a time unit is specified along with an integer duration value.
When specific setter and getter methods exist for a time duration property, these methods have a {@link TimeUnit} argument. Examples are{@link #setLockTimeout(long,TimeUnit)} and {@link #getLockTimeout(TimeUnit)}. Note that the {@link TimeUnit} argument maybe null only when the duration value is zero; there is no default unit that is used when null is specified.
When a time duration is specified as a string value, the following format is used.
{@code[ ]}
The {@code
The following {@code
IEEE abbreviation | TimeUnit name | Definition |
---|---|---|
{@code ns} | {@code NANOSECONDS} | one billionth (10-9) of a second |
{@code us} | {@code MICROSECONDS} | one millionth (10-6) of a second |
{@code ms} | {@code MILLISECONDS} | one thousandth (10-3) of a second |
{@code s} | {@code SECONDS} | 1 second |
{@code min} | 60 seconds | |
{@code h} | 3600 seconds |
Examples are:
3 seconds 3 s 500 ms 1000000 (microseconds is implied)
Note that when the {@code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|