DbEnv::set_event_notify API Ref

#include <db_cxx.h>

int DbEnv::set_event_notify(void (*db_event_fcn)(DB_ENV *dbenv, u_int32_t event, void *event_info));


Description: DbEnv::set_event_notify

The DbEnv::set_event_notify method configures a callback function which is called to notify the process of specific Berkeley DB events.

The DbEnv::set_event_notify method configures operations performed using the specified DbEnv handle, not all operations performed on the underlying database environment.

The DbEnv::set_event_notify method may be called at any time during the life of the application.

The DbEnv::set_event_notify method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters
db_event_fcn

Berkeley DB is not re-entrant. Callback functions should not attempt to make library calls (for example, to release locks or close open handles). Re-entering Berkeley DB is not guaranteed to work correctly, and the results are undefined.



Class DbEnv
See Also Database Environments and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.