Debian Codegraph @

docs/api_reference/CXX/dbcset_priority.html

raw symbols SCIP
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>Dbc::set_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="dbc.html" title="Chapter 3.  The Dbc Handle" />
11 <link rel="prev" href="dbcput.html" title="Dbc::put()" />
12 <link rel="next" href="dbt.html" title="Chapter 4.  The Dbt Handle" />
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">Dbc::set_priority()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbcput.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 3. 
26 The Dbc Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbt.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="dbcset_priority"></a>Dbc::set_priority()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 Dbc::set_priority(DB_CACHE_PRIORITY priority); </pre>
45 <p>
46 Set the cache priority for pages referenced by the
47 <a class="link" href="dbc.html" title="Chapter 3.  The Dbc Handle">Dbc</a> handle.
48 </p>
49 <p>
50 The priority of a page biases the replacement algorithm to be more or
51 less likely to discard a page when space is needed in the buffer pool.
52 The bias is temporary, and pages will eventually be discarded if they
53 are not referenced again. The <code class="methodname">Dbc::set_priority()</code> method is
54 only advisory, and does not guarantee pages will be treated in a
55 specific way.
56 </p>
57 <p>
58 The <code class="methodname">Dbc::set_priority()</code> method may be called at any time during
59 the life of the application.
60 </p>
61 <p>
62 The <code class="methodname">Dbc::set_priority()</code> <span>
63
64 <span>
65 method either returns a non-zero error value or throws an
66 exception that encapsulates a non-zero error value on
67 failure, and returns 0 on success.
68 </span>
69 </span>
70 </p>
71 <div class="sect2" lang="en" xml:lang="en">
72 <div class="titlepage">
73 <div>
74 <div>
75 <h3 class="title"><a id="idp6348248"></a>Parameters</h3>
76 </div>
77 </div>
78 </div>
79 <div class="sect3" lang="en" xml:lang="en">
80 <div class="titlepage">
81 <div>
82 <div>
83 <h4 class="title"><a id="idp6309576"></a>priority</h4>
84 </div>
85 </div>
86 </div>
87 <p>
88 The <span class="bold"><strong>priority</strong></span> parameter must be set to
89 one of the following values:
90 </p>
91 <div class="itemizedlist">
92 <ul type="disc">
93 <li>
94 <p><a id="dbcset_priority_DB_PRIORITY_VERY_LOW"></a>
95 <code class="literal">DB_PRIORITY_VERY_LOW</code>
96 </p>
97 <p>
98 The lowest priority: pages are the most likely to be discarded.
99 </p>
100 </li>
101 <li>
102 <p><a id="dbcset_priority_DB_PRIORITY_LOW"></a>
103 <code class="literal">DB_PRIORITY_LOW</code>
104 </p>
105 <p>
106 The next lowest priority.
107 </p>
108 </li>
109 <li>
110 <p><a id="dbcset_priority_DB_PRIORITY_DEFAULT"></a>
111 <code class="literal">DB_PRIORITY_DEFAULT</code>
112 </p>
113 <p>
114 The default priority.
115 </p>
116 </li>
117 <li>
118 <p><a id="dbcset_priority_DB_PRIORITY_HIGH"></a>
119 <code class="literal">DB_PRIORITY_HIGH</code>
120 </p>
121 <p>
122 The next highest priority.
123 </p>
124 </li>
125 <li>
126 <p><a id="dbcset_priority_DB_PRIORITY_VERY_HIGH"></a>
127 <code class="literal">DB_PRIORITY_VERY_HIGH</code>
128 </p>
129 <p>
130 The highest priority: pages are the least likely to be discarded.
131 </p>
132 </li>
133 </ul>
134 </div>
135 </div>
136 </div>
137 <div class="sect2" lang="en" xml:lang="en">
138 <div class="titlepage">
139 <div>
140 <div>
141 <h3 class="title"><a id="idp6366480"></a>Class</h3>
142 </div>
143 </div>
144 </div>
145 <p>
146 <a class="link" href="dbc.html" title="Chapter 3.  The Dbc Handle">Dbc</a>
147 </p>
148 </div>
149 <div class="sect2" lang="en" xml:lang="en">
150 <div class="titlepage">
151 <div>
152 <div>
153 <h3 class="title"><a id="idp6367560"></a>See Also</h3>
154 </div>
155 </div>
156 </div>
157 <p>
158 <a class="xref" href="dbc.html#dbclist" title="Database Cursors and Related Methods">Database Cursors and Related Methods</a>
159 </p>
160 </div>
161 </div>
162 <div class="navfooter">
163 <hr />
164 <table width="100%" summary="Navigation footer">
165 <tr>
166 <td width="40%" align="left"><a accesskey="p" href="dbcput.html">Prev</a> </td>
167 <td width="20%" align="center">
168 <a accesskey="u" href="dbc.html">Up</a>
169 </td>
170 <td width="40%" align="right"> <a accesskey="n" href="dbt.html">Next</a></td>
171 </tr>
172 <tr>
173 <td width="40%" align="left" valign="top">Dbc::put() </td>
174 <td width="20%" align="center">
175 <a accesskey="h" href="index.html">Home</a>
176 </td>
177 <td width="40%" align="right" valign="top"> Chapter 4. 
178 The Dbt Handle
179 </td>
180 </tr>
181 </table>
182 </div>
183 </body>
184 </html>