1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582
|
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>qmf::engine::ResilientConnection Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="90%" align="center">
<tr>
<td align="left">
<a title="Apache Qpid Project Page" href="http://qpid.apache.org">Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET</a>
</td>
<td align="right">
<a title="Apache Qpid Documentation" href="http://qpid.apache.org/documentation.html">Apache Qpid Documentation</a>
</td>
</tr>
</table>
<!-- Generated by Doxygen 1.7.5 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="a00571.html">qmf</a> </li>
<li class="navelem"><a class="el" href="a00572.html">engine</a> </li>
<li class="navelem"><a class="el" href="a00277.html">ResilientConnection</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">qmf::engine::ResilientConnection Class Reference</div> </div>
</div>
<div class="contents">
<!-- doxytag: class="qmf::engine::ResilientConnection" -->
<p><a class="el" href="a00277.html" title="ResilientConnection represents a Qpid connection that is resilient.">ResilientConnection</a> represents a Qpid connection that is resilient.
<a href="a00277.html#details">More...</a></p>
<p><code>#include <<a class="el" href="a00428_source.html">qmf/engine/ResilientConnection.h</a>></code></p>
<p><a href="a00639.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a4f72b27cbd0051762f5ccceddac32750">ResilientConnection</a> (const <a class="el" href="a00063.html">ConnectionSettings</a> &settings)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new resilient connection. <a href="#a4f72b27cbd0051762f5ccceddac32750"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a67a330549aa763e411634733a36c1436">~ResilientConnection</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#ad2e2ad25ac20b18de7b1d69043500728">isConnected</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the connected status of the resilient connection. <a href="#ad2e2ad25ac20b18de7b1d69043500728"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a37bd7af4e3fafd8f0bbf1e15bdfcdf45">getEvent</a> (<a class="el" href="a00278.html">ResilientConnectionEvent</a> &event)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the next event (if present) from the connection. <a href="#a37bd7af4e3fafd8f0bbf1e15bdfcdf45"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#ad90bd2c5323770ba3be6da32905b8aee">popEvent</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Discard the event on the front of the queue. <a href="#ad90bd2c5323770ba3be6da32905b8aee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a88d4ca842466daa8d0666a1c235ab57e">createSession</a> (const char *name, void *sessionContext, <a class="el" href="a00332.html">SessionHandle</a> &handle)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new AMQP session. <a href="#a88d4ca842466daa8d0666a1c235ab57e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#acb92cd4ec627554e70a35d706cc418d8">destroySession</a> (<a class="el" href="a00332.html">SessionHandle</a> handle)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy a created session. <a href="#acb92cd4ec627554e70a35d706cc418d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a44b9a89c00b48b48b699e316f94d868a">sendMessage</a> (<a class="el" href="a00332.html">SessionHandle</a> handle, <a class="el" href="a00207.html">Message</a> &message)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Send a message into the AMQP broker via a session. <a href="#a44b9a89c00b48b48b699e316f94d868a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#ac43182c6ce214344ca95734326e8bb20">declareQueue</a> (<a class="el" href="a00332.html">SessionHandle</a> handle, char *queue)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Declare an exclusive, auto-delete queue for a session. <a href="#ac43182c6ce214344ca95734326e8bb20"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a97ff0ef9c47f55ed0f167c574e951b4a">deleteQueue</a> (<a class="el" href="a00332.html">SessionHandle</a> handle, char *queue)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a queue. <a href="#a97ff0ef9c47f55ed0f167c574e951b4a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#aa4ae18f367b0375094d5e081211e5c02">bind</a> (<a class="el" href="a00332.html">SessionHandle</a> handle, char *exchange, char *queue, char *key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Bind a queue to an exchange. <a href="#aa4ae18f367b0375094d5e081211e5c02"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#ab4ae894168d4818c92d8a0b5b88e3c72">unbind</a> (<a class="el" href="a00332.html">SessionHandle</a> handle, char *exchange, char *queue, char *key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove a binding. <a href="#ab4ae894168d4818c92d8a0b5b88e3c72"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a5308526ae75a273ccf52fa6dd0916896">setNotifyFd</a> (int fd)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Establish a file descriptor for event notification. <a href="#a5308526ae75a273ccf52fa6dd0916896"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00277.html#a9d0fb811692fde821d24ba33c019bd51">notify</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Send a byte into the notify file descriptor. <a href="#a9d0fb811692fde821d24ba33c019bd51"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="a00277.html" title="ResilientConnection represents a Qpid connection that is resilient.">ResilientConnection</a> represents a Qpid connection that is resilient. </p>
<p>Upon creation, <a class="el" href="a00277.html" title="ResilientConnection represents a Qpid connection that is resilient.">ResilientConnection</a> attempts to establish a connection to the messaging broker. If it fails, it will continue to retry at an interval that increases over time (to a maximum interval). If an extablished connection is dropped, a reconnect will be attempted. </p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a4f72b27cbd0051762f5ccceddac32750"></a><!-- doxytag: member="qmf::engine::ResilientConnection::ResilientConnection" ref="a4f72b27cbd0051762f5ccceddac32750" args="(const ConnectionSettings &settings)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">qmf::engine::ResilientConnection::ResilientConnection </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00063.html">ConnectionSettings</a> & </td>
<td class="paramname"><em>settings</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new resilient connection. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">settings</td><td>Settings that define how the connection is to be made. </td></tr>
<tr><td class="paramname">delayMin</td><td>Minimum delay (in seconds) between retries. </td></tr>
<tr><td class="paramname">delayMax</td><td>Maximum delay (in seconds) between retries. </td></tr>
<tr><td class="paramname">delayFactor</td><td>Factor to multiply retry delay by after each failure. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a67a330549aa763e411634733a36c1436"></a><!-- doxytag: member="qmf::engine::ResilientConnection::~ResilientConnection" ref="a67a330549aa763e411634733a36c1436" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">qmf::engine::ResilientConnection::~ResilientConnection </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa4ae18f367b0375094d5e081211e5c02"></a><!-- doxytag: member="qmf::engine::ResilientConnection::bind" ref="aa4ae18f367b0375094d5e081211e5c02" args="(SessionHandle handle, char *exchange, char *queue, char *key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::bind </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> </td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>exchange</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>queue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Bind a queue to an exchange. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>The session handle of the session to use for binding. </td></tr>
<tr><td class="paramname">exchange</td><td>The name of the exchange for binding. </td></tr>
<tr><td class="paramname">queue</td><td>The name of the queue for binding. </td></tr>
<tr><td class="paramname">key</td><td>The binding key. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a88d4ca842466daa8d0666a1c235ab57e"></a><!-- doxytag: member="qmf::engine::ResilientConnection::createSession" ref="a88d4ca842466daa8d0666a1c235ab57e" args="(const char *name, void *sessionContext, SessionHandle &handle)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool qmf::engine::ResilientConnection::createSession </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>sessionContext</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> & </td>
<td class="paramname"><em>handle</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new AMQP session. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Unique name for the session. </td></tr>
<tr><td class="paramname">sessionContext</td><td>Optional user-context value that will be provided in events pertaining to this session. </td></tr>
<tr><td class="paramname">handle</td><td>Output handle to be stored and used in subsequent calls pertaining to this session. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true iff the session was successfully created. </dd></dl>
</div>
</div>
<a class="anchor" id="ac43182c6ce214344ca95734326e8bb20"></a><!-- doxytag: member="qmf::engine::ResilientConnection::declareQueue" ref="ac43182c6ce214344ca95734326e8bb20" args="(SessionHandle handle, char *queue)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::declareQueue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> </td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>queue</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Declare an exclusive, auto-delete queue for a session. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>The session handle for the owner of the queue. </td></tr>
<tr><td class="paramname">queue</td><td>The name of the queue. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a97ff0ef9c47f55ed0f167c574e951b4a"></a><!-- doxytag: member="qmf::engine::ResilientConnection::deleteQueue" ref="a97ff0ef9c47f55ed0f167c574e951b4a" args="(SessionHandle handle, char *queue)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::deleteQueue </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> </td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>queue</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Delete a queue. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>The session handle for the owner of the queue. </td></tr>
<tr><td class="paramname">queue</td><td>The name of the queue. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="acb92cd4ec627554e70a35d706cc418d8"></a><!-- doxytag: member="qmf::engine::ResilientConnection::destroySession" ref="acb92cd4ec627554e70a35d706cc418d8" args="(SessionHandle handle)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::destroySession </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> </td>
<td class="paramname"><em>handle</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destroy a created session. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td><a class="el" href="a00332.html">SessionHandle</a> returned by createSession. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a37bd7af4e3fafd8f0bbf1e15bdfcdf45"></a><!-- doxytag: member="qmf::engine::ResilientConnection::getEvent" ref="a37bd7af4e3fafd8f0bbf1e15bdfcdf45" args="(ResilientConnectionEvent &event)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool qmf::engine::ResilientConnection::getEvent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00278.html">ResilientConnectionEvent</a> & </td>
<td class="paramname"><em>event</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the next event (if present) from the connection. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">event</td><td>Returned event if one is available. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if event is valid, false if there are no more events to handle. </dd></dl>
</div>
</div>
<a class="anchor" id="ad2e2ad25ac20b18de7b1d69043500728"></a><!-- doxytag: member="qmf::engine::ResilientConnection::isConnected" ref="ad2e2ad25ac20b18de7b1d69043500728" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool qmf::engine::ResilientConnection::isConnected </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the connected status of the resilient connection. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true iff the connection is established. </dd></dl>
</div>
</div>
<a class="anchor" id="a9d0fb811692fde821d24ba33c019bd51"></a><!-- doxytag: member="qmf::engine::ResilientConnection::notify" ref="a9d0fb811692fde821d24ba33c019bd51" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::notify </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Send a byte into the notify file descriptor. </p>
<p>This can be used to wake up the event processing portion of the engine from either the wrapped implementation or the engine itself. </p>
</div>
</div>
<a class="anchor" id="ad90bd2c5323770ba3be6da32905b8aee"></a><!-- doxytag: member="qmf::engine::ResilientConnection::popEvent" ref="ad90bd2c5323770ba3be6da32905b8aee" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::popEvent </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Discard the event on the front of the queue. </p>
<p>This should be invoked after processing the event from getEvent. </p>
</div>
</div>
<a class="anchor" id="a44b9a89c00b48b48b699e316f94d868a"></a><!-- doxytag: member="qmf::engine::ResilientConnection::sendMessage" ref="a44b9a89c00b48b48b699e316f94d868a" args="(SessionHandle handle, Message &message)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::sendMessage </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> </td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00207.html">Message</a> & </td>
<td class="paramname"><em>message</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Send a message into the AMQP broker via a session. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>The session handle of the session to transmit through. </td></tr>
<tr><td class="paramname">message</td><td>The QMF message to transmit. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5308526ae75a273ccf52fa6dd0916896"></a><!-- doxytag: member="qmf::engine::ResilientConnection::setNotifyFd" ref="a5308526ae75a273ccf52fa6dd0916896" args="(int fd)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::setNotifyFd </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>fd</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Establish a file descriptor for event notification. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">fd</td><td>A file descriptor into which the connection shall write a character each time an event is enqueued. This fd may be in a pair, the other fd of which is used in a select loop to control execution. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab4ae894168d4818c92d8a0b5b88e3c72"></a><!-- doxytag: member="qmf::engine::ResilientConnection::unbind" ref="ab4ae894168d4818c92d8a0b5b88e3c72" args="(SessionHandle handle, char *exchange, char *queue, char *key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qmf::engine::ResilientConnection::unbind </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00332.html">SessionHandle</a> </td>
<td class="paramname"><em>handle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>exchange</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>queue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove a binding. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">handle</td><td>The session handle of the session to use for un-binding. </td></tr>
<tr><td class="paramname">exchange</td><td>The name of the exchange. </td></tr>
<tr><td class="paramname">queue</td><td>The name of the queue. </td></tr>
<tr><td class="paramname">key</td><td>The binding key. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>qmf/engine/<a class="el" href="a00428_source.html">ResilientConnection.h</a></li>
</ul>
</div>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<hr size="1">
<address style="text-align: left;"><small>
Qpid C++ API Reference</small></address>
<address style="text-align: right;">
<small>
Generated on Thu May 10 2012 for Qpid C++ Client API by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.7.5</small>
</address>
</body>
</html>
|