#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.
The DbMpoolFile::get_priority()
method returns a reference to the
cache priority for the file referenced by the
DbMpoolFile handle in
priorityp.