DbEnv::rep_set_request |
#include <db_cxx.h>int DbEnv::rep_set_request(u_int32_t min, u_int32_t max);
int DbEnv::rep_get_request(u_int32_t *minp, u_int32_t *maxp);
The DbEnv::rep_set_request method sets the minimum and maximum number of missing log records that a client waits before requesting retransmission. Specifically, if a log record is missing, Berkeley DB will wait for min more records to arrive before requesting retransmission of the missing record. Berkeley DB will wait double that amount before requesting the same missing record again, and so on, up to a maximum wait of max records.
By default the minimum is 4 and the maximum is 128, and applications rarely need to use values other than the defaults.
The DbEnv::rep_set_request method configures a database environment, not only operations performed using the specified DbEnv handle.
The DbEnv::rep_set_request method may be called at any time during the life of the application.
The DbEnv::rep_set_request 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.
The DbEnv::rep_set_request method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:
The DbEnv::rep_get_request method returns the minimum and maximum number of missing log records a client waits before requesting retransmission.
The DbEnv::rep_get_request method may be called at any time during the life of the application.
The DbEnv::rep_get_request 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.
Copyright (c) 1996,2007 Oracle. All rights reserved.