| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>DbMpoolFile::get_priority()</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" /> |
| 10 | <link rel="up" href="memp.html" title="Chapter 9. The DbMpoolFile Handle" /> |
| 11 | <link rel="prev" href="mempget_pgcookie.html" title="DbMpoolFile::get_pgcookie()" /> |
| 12 | <link rel="next" href="mempset_clear_len.html" title="DbMpoolFile::set_clear_len()" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">DbMpoolFile::get_priority()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="mempget_pgcookie.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 9. |
| 26 | The DbMpoolFile Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="mempset_clear_len.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="mempget_priority"></a>DbMpoolFile::get_priority()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db_cxx.h> |
| 42 | |
| 43 | int |
| 44 | DbMpoolFile::get_priority(DB_CACHE_PRIORITY *priorityp);</pre> |
| 45 | <p> |
| 46 | |
| 47 | The <code class="methodname">DbMpoolFile::get_priority()</code> method returns the cache priority for |
| 48 | the file referenced by the <a class="link" href="memp.html" title="Chapter 9. The DbMpoolFile Handle">DbMpoolFile</a> |
| 49 | handle. The priority of a page biases the replacement algorithm to be |
| 50 | more or less likely to discard a page when space is needed in the |
| 51 | cache. This value is set using the |
| 52 | <a class="xref" href="mempset_priority.html" title="DbMpoolFile::set_priority()">DbMpoolFile::set_priority()</a> |
| 53 | method. |
| 54 | </p> |
| 55 | <p> |
| 56 | The <code class="methodname">DbMpoolFile::get_priority()</code> method may be called at any time |
| 57 | during the life of the application. |
| 58 | </p> |
| 59 | <p> |
| 60 | The <code class="methodname">DbMpoolFile::get_priority()</code> <span> |
| 61 | |
| 62 | <span> |
| 63 | method either returns a non-zero error value or throws an |
| 64 | exception that encapsulates a non-zero error value on |
| 65 | failure, and returns 0 on success. |
| 66 | </span> |
| 67 | </span> |
| 68 | </p> |
| 69 | <div class="sect2" lang="en" xml:lang="en"> |
| 70 | <div class="titlepage"> |
| 71 | <div> |
| 72 | <div> |
| 73 | <h3 class="title"><a id="idp9019688"></a>Parameters</h3> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | <div class="sect3" lang="en" xml:lang="en"> |
| 78 | <div class="titlepage"> |
| 79 | <div> |
| 80 | <div> |
| 81 | <h4 class="title"><a id="idp9019040"></a>priorityp</h4> |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | <p> |
| 86 | The <code class="methodname">DbMpoolFile::get_priority()</code> method returns a reference to the |
| 87 | cache priority for the file referenced by the |
| 88 | <a class="link" href="memp.html" title="Chapter 9. The DbMpoolFile Handle">DbMpoolFile</a> handle in |
| 89 | <span class="bold"><strong>priorityp</strong></span>. |
| 90 | </p> |
| 91 | </div> |
| 92 | </div> |
| 93 | <div class="sect2" lang="en" xml:lang="en"> |
| 94 | <div class="titlepage"> |
| 95 | <div> |
| 96 | <div> |
| 97 | <h3 class="title"><a id="idp9022688"></a>Class</h3> |
| 98 | </div> |
| 99 | </div> |
| 100 | </div> |
| 101 | <p> |
| 102 | <a class="link" href="env.html" title="Chapter 5. The DbEnv Handle">DbEnv</a>, <a class="link" href="memp.html" title="Chapter 9. The DbMpoolFile Handle">DbMpoolFile</a> |
| 103 | </p> |
| 104 | </div> |
| 105 | <div class="sect2" lang="en" xml:lang="en"> |
| 106 | <div class="titlepage"> |
| 107 | <div> |
| 108 | <div> |
| 109 | <h3 class="title"><a id="idp9021432"></a>See Also</h3> |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |
| 113 | <p> |
| 114 | <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>, |
| 115 | <a class="xref" href="mempset_priority.html" title="DbMpoolFile::set_priority()">DbMpoolFile::set_priority()</a> |
| 116 | </p> |
| 117 | </div> |
| 118 | </div> |
| 119 | <div class="navfooter"> |
| 120 | <hr /> |
| 121 | <table width="100%" summary="Navigation footer"> |
| 122 | <tr> |
| 123 | <td width="40%" align="left"><a accesskey="p" href="mempget_pgcookie.html">Prev</a> </td> |
| 124 | <td width="20%" align="center"> |
| 125 | <a accesskey="u" href="memp.html">Up</a> |
| 126 | </td> |
| 127 | <td width="40%" align="right"> <a accesskey="n" href="mempset_clear_len.html">Next</a></td> |
| 128 | </tr> |
| 129 | <tr> |
| 130 | <td width="40%" align="left" valign="top">DbMpoolFile::get_pgcookie() </td> |
| 131 | <td width="20%" align="center"> |
| 132 | <a accesskey="h" href="index.html">Home</a> |
| 133 | </td> |
| 134 | <td width="40%" align="right" valign="top"> DbMpoolFile::set_clear_len()</td> |
| 135 | </tr> |
| 136 | </table> |
| 137 | </div> |
| 138 | </body> |
| 139 | </html> |