Library Version 12.1.6.0

DbMpoolFile::get_priority()
Prev | Chapter 9. The DbMpoolFile Handle | Next

## DbMpoolFile::get_priority()

    #include <db_cxx.h>

    int
    DbMpoolFile::get_priority(DB_CACHE_PRIORITY *priorityp);

The `DbMpoolFile::get_priority()` method returns the cache priority for the file referenced by the DbMpoolFile handle. The priority of a page biases the replacement algorithm to be more or less likely to discard a page when space is needed in the cache. This value is set using the DbMpoolFile::set_priority() method.

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

The `DbMpoolFile::get_priority()` 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

#### priorityp

The `DbMpoolFile::get_priority()` method returns a reference to the cache priority for the file referenced by the DbMpoolFile handle in priorityp.

### Class

DbEnv, DbMpoolFile

### See Also

Memory Pools and Related Methods, DbMpoolFile::set_priority()

Prev | Up | Next
DbMpoolFile::get_pgcookie() | Home | DbMpoolFile::set_clear_len()