Debian Codegraph @

docs/api_reference/CXX/repget_timeout.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>DbEnv::rep_get_timeout()</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="rep.html" title="Chapter 11.  Replication Methods" />
11 <link rel="prev" href="repget_request.html" title="DbEnv::rep_get_request()" />
12 <link rel="next" href="repmessage.html" title="DbEnv::rep_process_message()" />
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">DbEnv::rep_get_timeout()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="repget_request.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 11. 
26 Replication Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="repmessage.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="repget_timeout"></a>DbEnv::rep_get_timeout()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::rep_get_timeout(int which, u_int32_t *timeoutp);</pre>
45 <p>
46 The <code class="methodname">DbEnv::rep_get_timeout()</code> method returns the timeout value for
47 the specified <span class="bold"><strong>which</strong></span> parameter. Timeout values can be
48 managed using the <a class="xref" href="repset_timeout.html" title="DbEnv::rep_set_timeout()">DbEnv::rep_set_timeout()</a> method.
49 </p>
50 <p>
51 The <code class="methodname">DbEnv::rep_get_timeout()</code> method may be called at any time during
52 the life of the application.
53 </p>
54 <p>
55 The <code class="methodname">DbEnv::rep_get_timeout()</code> <span>
56
57 <span>
58 method either returns a non-zero error value or throws an
59 exception that encapsulates a non-zero error value on
60 failure, and returns 0 on success.
61 </span>
62 </span>
63 </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h3 class="title"><a id="idp9513264"></a>Parameters</h3>
69 </div>
70 </div>
71 </div>
72 <div class="sect3" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h4 class="title"><a id="idp9512360"></a>which</h4>
77 </div>
78 </div>
79 </div>
80 <p>
81 The <span class="bold"><strong>which</strong></span> parameter is the timeout
82 for which the value is being returned.
83 See the <a class="xref" href="repset_timeout.html" title="DbEnv::rep_set_timeout()">DbEnv::rep_set_timeout()</a>
84 method for a list of timeouts that you can
85 provide to this parameter.
86 </p>
87 </div>
88 <div class="sect3" lang="en" xml:lang="en">
89 <div class="titlepage">
90 <div>
91 <div>
92 <h4 class="title"><a id="idp9507432"></a>timeoutp</h4>
93 </div>
94 </div>
95 </div>
96 <p>
97 The <span class="bold"><strong>timeoutp</strong></span> parameter references
98 memory into which the timeout value of the specified <span class="bold"><strong>which</strong></span> parameter is copied.
99 </p>
100 <p>
101 The returned timeout value is in microseconds.
102 </p>
103 </div>
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="idp9504288"></a>Errors</h3>
110 </div>
111 </div>
112 </div>
113 <p>
114 The <code class="methodname">DbEnv::rep_get_timeout()</code> <span>
115
116 <span>
117 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
118 exception, encapsulating one of the following non-zero errors, or return one
119 of the following non-zero errors:
120 </span>
121 </span>
122 </p>
123 <div class="sect3" lang="en" xml:lang="en">
124 <div class="titlepage">
125 <div>
126 <div>
127 <h4 class="title"><a id="idp9522728"></a>EINVAL</h4>
128 </div>
129 </div>
130 </div>
131 <p>
132 An invalid flag value or parameter was specified.
133 </p>
134 </div>
135 </div>
136 <div class="sect2" lang="en" xml:lang="en">
137 <div class="titlepage">
138 <div>
139 <div>
140 <h3 class="title"><a id="idp9520752"></a>Class</h3>
141 </div>
142 </div>
143 </div>
144 <p>
145 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>
146 </p>
147 </div>
148 <div class="sect2" lang="en" xml:lang="en">
149 <div class="titlepage">
150 <div>
151 <div>
152 <h3 class="title"><a id="idp9516680"></a>See Also</h3>
153 </div>
154 </div>
155 </div>
156 <p>
157 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>,
158 <a class="xref" href="repset_timeout.html" title="DbEnv::rep_set_timeout()">DbEnv::rep_set_timeout()</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="repget_request.html">Prev</a> </td>
167 <td width="20%" align="center">
168 <a accesskey="u" href="rep.html">Up</a>
169 </td>
170 <td width="40%" align="right"> <a accesskey="n" href="repmessage.html">Next</a></td>
171 </tr>
172 <tr>
173 <td width="40%" align="left" valign="top">DbEnv::rep_get_request() </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"> DbEnv::rep_process_message()</td>
178 </tr>
179 </table>
180 </div>
181 </body>
182 </html>