DbEnv::rep_get_timeout()
Prev | Chapter 11. Replication Methods | Next

## DbEnv::rep_get_timeout()

    #include <db_cxx.h>

    int
    DbEnv::rep_get_timeout(int which, u_int32_t *timeoutp);

The `DbEnv::rep_get_timeout()` method returns the timeout value for the specified which parameter. Timeout values can be managed using the DbEnv::rep_set_timeout() method.

The `DbEnv::rep_get_timeout()` method may be called at any time during the life of the application.

The `DbEnv::rep_get_timeout()` 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

#### which

The which parameter is the timeout for which the value is being returned. See the DbEnv::rep_set_timeout() method for a list of timeouts that you can provide to this parameter.

#### timeoutp

The timeoutp parameter references memory into which the timeout value of the specified which parameter is copied.

The returned timeout value is in microseconds.

### Errors

The `DbEnv::rep_get_timeout()` method may fail and throw a DbException exception, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:

#### EINVAL

An invalid flag value or parameter was specified.

### Class

DbEnv

### See Also

Replication and Related Methods, DbEnv::rep_set_timeout()

Prev | Up | Next
DbEnv::rep_get_request() | Home | DbEnv::rep_process_message()