Berkeley DB: DbEnv.appexit
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btr ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++

# DbEnv.appexit

`

###

    import com.sleepycat.db.*;

    public void appexit()
        throws DbException;

# Description

The DbEnv.appexit method closes the initialized Berkeley DB subsystems, freeing any allocated resources and closing any underlying subsystems.

In multi-threaded applications, only a single thread may call DbEnv.appexit.

The DbEnv.appexit method throws an exception that encapsulates an errno on failure.

# Errors

If a fatal error occurs in Berkeley DB, the DbEnv.appexit method may fail and throw a DbRunRecoveryException, at which point all subsequent database calls will also fail in the same way.

The DbEnv.appexit method may fail and throw an exception for any of the errors specified for the following Berkeley DB and C library functions: free(3), DbLockTab.close, DbLog.close, DbMpool.close, memset(3), strlen(3), and DbTxnMgr.close.

# Class

DbEnv

# See Also

DbEnv.appinit, DbEnv.appexit, DbEnv.version, dbenv_get_data_dir, dbenv_get_errcall, dbenv_get_error_model, dbenv_get_error_stream, dbenv_get_errpfx, dbenv_get_flags, dbenv_get_home, DbEnv.get_lg_info, dbenv_get_lg_max, dbenv_get_lk_conflicts, dbenv_get_lk_detect, DbEnv.get_lk_info, dbenv_get_lk_modes, dbenv_get_log_dir, dbenv_get_lorder, DbEnv.get_mp_info, dbenv_get_mp_mmapsize, dbenv_get_mp_size, dbenv_get_tmp_dir, DbEnv.get_tx_info, dbenv_get_tx_max, dbenv_get_tx_recover and dbenv_get_verbose.`