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 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898
|
<!--
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>qpid::messaging::Session 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="a00574.html">qpid</a> </li>
<li class="navelem"><a class="el" href="a00591.html">messaging</a> </li>
<li class="navelem"><a class="el" href="a00325.html">Session</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-types">Protected Types</a> |
<a href="#pro-attribs">Protected Attributes</a> </div>
<div class="headertitle">
<div class="title">qpid::messaging::Session Class Reference<div class="ingroups"><a class="el" href="a00596.html">Qpid C++ Client API</a></div></div> </div>
</div>
<div class="contents">
<!-- doxytag: class="qpid::messaging::Session" --><!-- doxytag: inherits="Handle< SessionImpl >" -->
<p>A session represents a distinct 'conversation' which can involve sending and receiving messages to and from different addresses.
<a href="a00325.html#details">More...</a></p>
<p><code>#include <<a class="el" href="a00477_source.html">qpid/messaging/Session.h</a>></code></p>
<p><a href="a00873.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="a00325.html#a61f31bd8a2fda066520f19b61e3fe70d">Session</a> (SessionImpl *<a class="el" href="a00139.html#aa4b861c288ed3546405a0e334a2c7ae9">impl</a>=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a06d6ab4129c5e146231c236f10d93deb">Session</a> (const <a class="el" href="a00325.html">Session</a> &)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a7fe6be9125cc1d2e69f0bb07bed7a44f">~Session</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00325.html">Session</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a1b3b91940e11d3e984584a1e9cb4eed2">operator=</a> (const <a class="el" href="a00325.html">Session</a> &)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a61ea560cf02b626074766673f0ec3631">close</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Closes a session and all associated senders and receivers. <a href="#a61ea560cf02b626074766673f0ec3631"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#ad1135088120d995954e782dd5c8889c7">commit</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Commits the sessions transaction. <a href="#ad1135088120d995954e782dd5c8889c7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#aeb08e52b43398b93e6a0eb1fb62d9801">rollback</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#ac45dd3e4950a9d08e0be26c21af307d5">acknowledge</a> (bool sync=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Acknowledges all outstanding messages that have been received by the application on this session. <a href="#ac45dd3e4950a9d08e0be26c21af307d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a191c4cf261e01b6d8bfe3d938b17c24c">acknowledge</a> (<a class="el" href="a00205.html">Message</a> &, bool sync=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Acknowledges the specified message. <a href="#a191c4cf261e01b6d8bfe3d938b17c24c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a597def862bb71816ab6bc2c28f5a481b">acknowledgeUpTo</a> (<a class="el" href="a00205.html">Message</a> &, bool sync=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Acknowledges all message up to the specified message. <a href="#a597def862bb71816ab6bc2c28f5a481b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a6b5a28d683d68628fd2d436cc5982f11">reject</a> (<a class="el" href="a00205.html">Message</a> &)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Rejects the specified message. <a href="#a6b5a28d683d68628fd2d436cc5982f11"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a305fa96f24660aa8aceea4c26a2db259">release</a> (<a class="el" href="a00205.html">Message</a> &)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Releases the specified message. <a href="#a305fa96f24660aa8aceea4c26a2db259"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a6b6831b8e74419015a61607a96592987">sync</a> (bool block=true)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Request synchronisation with the server. <a href="#a6b6831b8e74419015a61607a96592987"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00556.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#ac396c77d1eecab3390261adeb9f73f32">getReceivable</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the total number of messages received and waiting to be fetched by all Receivers belonging to this session. <a href="#ac396c77d1eecab3390261adeb9f73f32"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00556.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a1fa7ca27a12d180ec60a657d1b663724">getUnsettledAcks</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a count of the number of messages received this session that have been acknowledged, but for which that acknowledgement has not yet been confirmed as processed by the server. <a href="#a1fa7ca27a12d180ec60a657d1b663724"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#af633ded76d86d312c4114efa8480d3df">nextReceiver</a> (<a class="el" href="a00271.html">Receiver</a> &, <a class="el" href="a00104.html">Duration</a> timeout=<a class="el" href="a00104.html#a873e249777ffd59f9ebb263cd0c15dbe">Duration::FOREVER</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the receiver for the next available message. <a href="#af633ded76d86d312c4114efa8480d3df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00271.html">Receiver</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#af11910bf6cc23664ecd7d8c94208f7b1">nextReceiver</a> (<a class="el" href="a00104.html">Duration</a> timeout=<a class="el" href="a00104.html#a873e249777ffd59f9ebb263cd0c15dbe">Duration::FOREVER</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the receiver for the next available message. <a href="#af11910bf6cc23664ecd7d8c94208f7b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00319.html">Sender</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a80aafbf67cc91d075c3d4ef06c7d7566">createSender</a> (const <a class="el" href="a00003.html">Address</a> &address)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new sender through which messages can be sent to the specified address. <a href="#a80aafbf67cc91d075c3d4ef06c7d7566"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00319.html">Sender</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a5172ced9f0d77e64a8bb0c6f7b0be068">createSender</a> (const <a class="el" href="a00345.html">std::string</a> &address)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new sender through which messages can be sent to the specified address. <a href="#a5172ced9f0d77e64a8bb0c6f7b0be068"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00271.html">Receiver</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#aeac86a66c7be0af30e7c86fac8d94a4f">createReceiver</a> (const <a class="el" href="a00003.html">Address</a> &address)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new receiver through which messages can be received from the specified address. <a href="#aeac86a66c7be0af30e7c86fac8d94a4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00271.html">Receiver</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#acfcd15132c48517fb8137290e20695e1">createReceiver</a> (const <a class="el" href="a00345.html">std::string</a> &address)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new receiver through which messages can be received from the specified address. <a href="#acfcd15132c48517fb8137290e20695e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00319.html">Sender</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a40fcd998822669e95c0e3acde78fc669">getSender</a> (const <a class="el" href="a00345.html">std::string</a> &name) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the sender with the specified name. <a href="#a40fcd998822669e95c0e3acde78fc669"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00271.html">Receiver</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#ad8b97d55f8733d3c66d3a771b8b45514">getReceiver</a> (const <a class="el" href="a00345.html">std::string</a> &name) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the receiver with the specified name. <a href="#ad8b97d55f8733d3c66d3a771b8b45514"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00059.html">Connection</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#aac159c9e742c38174af3a3f092922adc">getConnection</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a handle to the connection this session is associated with. <a href="#aac159c9e742c38174af3a3f092922adc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#abac267837164db11fa0d4b3041d66114">hasError</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00325.html#a30c234c1d30fb653b7d793ecddf0325a">checkError</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">If the session has been rendered invalid by some exception, this method will result in that exception being thrown on calling this method. <a href="#a30c234c1d30fb653b7d793ecddf0325a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPID_MESSAGING_INLINE_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a96a040ee9deb2b6534f6ac03fe60ffa4">isValid</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPID_MESSAGING_INLINE_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a1f4f3033223421f914db98fbb7ac1704">isNull</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPID_MESSAGING_INLINE_EXTERN </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a35cfc26f8be13a312dd9de7cf475a962">operator bool</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Conversion to bool supports idiom if (handle) { handle->... <a href="#a35cfc26f8be13a312dd9de7cf475a962"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPID_MESSAGING_INLINE_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a0bf2de9ff2609eb03d4a350ef5179156">operator!</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. <a href="#a0bf2de9ff2609eb03d4a350ef5179156"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a9eb61a86144e01a2683da2ad36137c54">swap</a> (<a class="el" href="a00139.html">Handle</a>< T > &h)</td></tr>
<tr><td colspan="2"><h2><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef T </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#a51b69551a689a063cd575ae3f81c9775">Impl</a></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00139.html#a51b69551a689a063cd575ae3f81c9775">Impl</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00139.html#aa4b861c288ed3546405a0e334a2c7ae9">impl</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A session represents a distinct 'conversation' which can involve sending and receiving messages to and from different addresses. </p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a51b69551a689a063cd575ae3f81c9775"></a><!-- doxytag: member="qpid::messaging::Session::Impl" ref="a51b69551a689a063cd575ae3f81c9775" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef T <a class="el" href="a00139.html#a51b69551a689a063cd575ae3f81c9775">qpid::messaging::Handle::Impl</a><code> [protected, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="a00439_source.html#l00057">57</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
</div>
</div>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a61f31bd8a2fda066520f19b61e3fe70d"></a><!-- doxytag: member="qpid::messaging::Session::Session" ref="a61f31bd8a2fda066520f19b61e3fe70d" args="(SessionImpl *impl=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">qpid::messaging::Session::Session </td>
<td>(</td>
<td class="paramtype">SessionImpl * </td>
<td class="paramname"><em>impl</em> = <code>0</code></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a06d6ab4129c5e146231c236f10d93deb"></a><!-- doxytag: member="qpid::messaging::Session::Session" ref="a06d6ab4129c5e146231c236f10d93deb" args="(const Session &)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">qpid::messaging::Session::Session </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00325.html">Session</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a7fe6be9125cc1d2e69f0bb07bed7a44f"></a><!-- doxytag: member="qpid::messaging::Session::~Session" ref="a7fe6be9125cc1d2e69f0bb07bed7a44f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">qpid::messaging::Session::~Session </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="ac45dd3e4950a9d08e0be26c21af307d5"></a><!-- doxytag: member="qpid::messaging::Session::acknowledge" ref="ac45dd3e4950a9d08e0be26c21af307d5" args="(bool sync=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::acknowledge </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>sync</em> = <code>false</code></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Acknowledges all outstanding messages that have been received by the application on this session. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">sync</td><td>if true, blocks until the acknowledgement has been processed by the server </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a191c4cf261e01b6d8bfe3d938b17c24c"></a><!-- doxytag: member="qpid::messaging::Session::acknowledge" ref="a191c4cf261e01b6d8bfe3d938b17c24c" args="(Message &, bool sync=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::acknowledge </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00205.html">Message</a> & </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>sync</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Acknowledges the specified message. </p>
</div>
</div>
<a class="anchor" id="a597def862bb71816ab6bc2c28f5a481b"></a><!-- doxytag: member="qpid::messaging::Session::acknowledgeUpTo" ref="a597def862bb71816ab6bc2c28f5a481b" args="(Message &, bool sync=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::acknowledgeUpTo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00205.html">Message</a> & </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>sync</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Acknowledges all message up to the specified message. </p>
</div>
</div>
<a class="anchor" id="a30c234c1d30fb653b7d793ecddf0325a"></a><!-- doxytag: member="qpid::messaging::Session::checkError" ref="a30c234c1d30fb653b7d793ecddf0325a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::checkError </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>If the session has been rendered invalid by some exception, this method will result in that exception being thrown on calling this method. </p>
</div>
</div>
<a class="anchor" id="a61ea560cf02b626074766673f0ec3631"></a><!-- doxytag: member="qpid::messaging::Session::close" ref="a61ea560cf02b626074766673f0ec3631" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::close </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Closes a session and all associated senders and receivers. </p>
<p>An opened session should be closed before the last handle to it goes out of scope. All a connections sessions can be closed by a call to <a class="el" href="a00059.html#a5b6d7758f86e036e21f25d3971c5cab8" title="Closes a connection and all sessions associated with it.">Connection::close()</a>. </p>
</div>
</div>
<a class="anchor" id="ad1135088120d995954e782dd5c8889c7"></a><!-- doxytag: member="qpid::messaging::Session::commit" ref="ad1135088120d995954e782dd5c8889c7" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::commit </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Commits the sessions transaction. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00357.html" title="Thrown on Session::commit() if reconnection results in the transaction being automatically aborted...">TransactionAborted</a></td><td>if the original session is lost forcing an automatic rollback. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aeac86a66c7be0af30e7c86fac8d94a4f"></a><!-- doxytag: member="qpid::messaging::Session::createReceiver" ref="aeac86a66c7be0af30e7c86fac8d94a4f" args="(const Address &address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00271.html">Receiver</a> qpid::messaging::Session::createReceiver </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00003.html">Address</a> & </td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new receiver through which messages can be received from the specified address. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00279.html" title="Thrown when a syntactically correct address cannot be resolved or used.">ResolutionError</a></td><td>if there is an error in resolving the address </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="acfcd15132c48517fb8137290e20695e1"></a><!-- doxytag: member="qpid::messaging::Session::createReceiver" ref="acfcd15132c48517fb8137290e20695e1" args="(const std::string &address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00271.html">Receiver</a> qpid::messaging::Session::createReceiver </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00345.html">std::string</a> & </td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new receiver through which messages can be received from the specified address. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00279.html" title="Thrown when a syntactically correct address cannot be resolved or used.">ResolutionError</a></td><td>if there is an error in resolving the address</td></tr>
<tr><td class="paramname"><a class="el" href="a00196.html" title="Thrown when an address string with invalid syntax is used.">MalformedAddress</a></td><td>if the syntax of address is not valid </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a80aafbf67cc91d075c3d4ef06c7d7566"></a><!-- doxytag: member="qpid::messaging::Session::createSender" ref="a80aafbf67cc91d075c3d4ef06c7d7566" args="(const Address &address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00319.html">Sender</a> qpid::messaging::Session::createSender </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00003.html">Address</a> & </td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new sender through which messages can be sent to the specified address. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00279.html" title="Thrown when a syntactically correct address cannot be resolved or used.">ResolutionError</a></td><td>if there is an error in resolving the address </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a5172ced9f0d77e64a8bb0c6f7b0be068"></a><!-- doxytag: member="qpid::messaging::Session::createSender" ref="a5172ced9f0d77e64a8bb0c6f7b0be068" args="(const std::string &address)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00319.html">Sender</a> qpid::messaging::Session::createSender </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00345.html">std::string</a> & </td>
<td class="paramname"><em>address</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a new sender through which messages can be sent to the specified address. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00279.html" title="Thrown when a syntactically correct address cannot be resolved or used.">ResolutionError</a></td><td>if there is an error in resolving the address</td></tr>
<tr><td class="paramname"><a class="el" href="a00196.html" title="Thrown when an address string with invalid syntax is used.">MalformedAddress</a></td><td>if the syntax of address is not valid </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aac159c9e742c38174af3a3f092922adc"></a><!-- doxytag: member="qpid::messaging::Session::getConnection" ref="aac159c9e742c38174af3a3f092922adc" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00059.html">Connection</a> qpid::messaging::Session::getConnection </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a handle to the connection this session is associated with. </p>
</div>
</div>
<a class="anchor" id="ac396c77d1eecab3390261adeb9f73f32"></a><!-- doxytag: member="qpid::messaging::Session::getReceivable" ref="ac396c77d1eecab3390261adeb9f73f32" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00556.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> qpid::messaging::Session::getReceivable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the total number of messages received and waiting to be fetched by all Receivers belonging to this session. </p>
<p>This is the total number of available messages across all receivers on this session. </p>
</div>
</div>
<a class="anchor" id="ad8b97d55f8733d3c66d3a771b8b45514"></a><!-- doxytag: member="qpid::messaging::Session::getReceiver" ref="ad8b97d55f8733d3c66d3a771b8b45514" args="(const std::string &name) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00271.html">Receiver</a> qpid::messaging::Session::getReceiver </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00345.html">std::string</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the receiver with the specified name. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00184.html" title="Thrown to indicate a failed lookup of some local object.">KeyError</a></td><td>if there is none for that name. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a40fcd998822669e95c0e3acde78fc669"></a><!-- doxytag: member="qpid::messaging::Session::getSender" ref="a40fcd998822669e95c0e3acde78fc669" args="(const std::string &name) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00319.html">Sender</a> qpid::messaging::Session::getSender </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00345.html">std::string</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the sender with the specified name. </p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="a00184.html" title="Thrown to indicate a failed lookup of some local object.">KeyError</a></td><td>if there is none for that name. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1fa7ca27a12d180ec60a657d1b663724"></a><!-- doxytag: member="qpid::messaging::Session::getUnsettledAcks" ref="a1fa7ca27a12d180ec60a657d1b663724" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00556.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> qpid::messaging::Session::getUnsettledAcks </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a count of the number of messages received this session that have been acknowledged, but for which that acknowledgement has not yet been confirmed as processed by the server. </p>
</div>
</div>
<a class="anchor" id="abac267837164db11fa0d4b3041d66114"></a><!-- doxytag: member="qpid::messaging::Session::hasError" ref="abac267837164db11fa0d4b3041d66114" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool qpid::messaging::Session::hasError </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the session has been rendered invalid by some exception, false if it is valid for use. </dd></dl>
</div>
</div>
<a class="anchor" id="a1f4f3033223421f914db98fbb7ac1704"></a><!-- doxytag: member="qpid::messaging::Session::isNull" ref="a1f4f3033223421f914db98fbb7ac1704" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QPID_MESSAGING_INLINE_EXTERN bool qpid::messaging::Handle::isNull </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [inline, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if handle is null. It is an error to call any function on a null handle. </dd></dl>
<p>Definition at line <a class="el" href="a00439_source.html#l00046">46</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
<p>References <a class="el" href="a00439_source.html#l00064">qpid::messaging::Handle::impl</a>.</p>
</div>
</div>
<a class="anchor" id="a96a040ee9deb2b6534f6ac03fe60ffa4"></a><!-- doxytag: member="qpid::messaging::Session::isValid" ref="a96a040ee9deb2b6534f6ac03fe60ffa4" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QPID_MESSAGING_INLINE_EXTERN bool qpid::messaging::Handle::isValid </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [inline, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>true if handle is valid, i.e. not null. </dd></dl>
<p>Definition at line <a class="el" href="a00439_source.html#l00043">43</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
<p>References <a class="el" href="a00439_source.html#l00064">qpid::messaging::Handle::impl</a>.</p>
</div>
</div>
<a class="anchor" id="af633ded76d86d312c4114efa8480d3df"></a><!-- doxytag: member="qpid::messaging::Session::nextReceiver" ref="af633ded76d86d312c4114efa8480d3df" args="(Receiver &, Duration timeout=Duration::FOREVER)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool qpid::messaging::Session::nextReceiver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00271.html">Receiver</a> & </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00104.html">Duration</a> </td>
<td class="paramname"><em>timeout</em> = <code><a class="el" href="a00104.html#a873e249777ffd59f9ebb263cd0c15dbe">Duration::FOREVER</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Retrieves the receiver for the next available message. </p>
<p>If there are no available messages at present the call will block for up to the specified timeout waiting for one to arrive. Returns true if a message was available at the point of return, in which case the passed in receiver reference will be set to the receiver for that message or false if no message was available. </p>
</div>
</div>
<a class="anchor" id="af11910bf6cc23664ecd7d8c94208f7b1"></a><!-- doxytag: member="qpid::messaging::Session::nextReceiver" ref="af11910bf6cc23664ecd7d8c94208f7b1" args="(Duration timeout=Duration::FOREVER)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00271.html">Receiver</a> qpid::messaging::Session::nextReceiver </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00104.html">Duration</a> </td>
<td class="paramname"><em>timeout</em> = <code><a class="el" href="a00104.html#a873e249777ffd59f9ebb263cd0c15dbe">Duration::FOREVER</a></code></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the receiver for the next available message. </p>
<p>If there are no available messages at present the call will block for up to the specified timeout waiting for one to arrive.</p>
<dl><dt><b>Exceptions:</b></dt><dd>
<table class="exception">
<tr><td class="paramname">Receiver::NoMessageAvailable</td><td>if no message became available in time. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a35cfc26f8be13a312dd9de7cf475a962"></a><!-- doxytag: member="qpid::messaging::Session::operator bool" ref="a35cfc26f8be13a312dd9de7cf475a962" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QPID_MESSAGING_INLINE_EXTERN qpid::messaging::Handle::operator bool </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [inline, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Conversion to bool supports idiom if (handle) { handle->... </p>
<p>} </p>
<p>Definition at line <a class="el" href="a00439_source.html#l00049">49</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
<p>References <a class="el" href="a00439_source.html#l00064">qpid::messaging::Handle::impl</a>.</p>
</div>
</div>
<a class="anchor" id="a0bf2de9ff2609eb03d4a350ef5179156"></a><!-- doxytag: member="qpid::messaging::Session::operator!" ref="a0bf2de9ff2609eb03d4a350ef5179156" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QPID_MESSAGING_INLINE_EXTERN bool qpid::messaging::Handle::operator! </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [inline, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }. </p>
<p>Definition at line <a class="el" href="a00439_source.html#l00052">52</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
<p>References <a class="el" href="a00439_source.html#l00064">qpid::messaging::Handle::impl</a>.</p>
</div>
</div>
<a class="anchor" id="a1b3b91940e11d3e984584a1e9cb4eed2"></a><!-- doxytag: member="qpid::messaging::Session::operator=" ref="a1b3b91940e11d3e984584a1e9cb4eed2" args="(const Session &)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00325.html">Session</a>& qpid::messaging::Session::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00325.html">Session</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a6b5a28d683d68628fd2d436cc5982f11"></a><!-- doxytag: member="qpid::messaging::Session::reject" ref="a6b5a28d683d68628fd2d436cc5982f11" args="(Message &)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::reject </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00205.html">Message</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Rejects the specified message. </p>
<p>The broker does not redeliver a message that has been rejected. Once a message has been acknowledged, it can no longer be rejected. </p>
</div>
</div>
<a class="anchor" id="a305fa96f24660aa8aceea4c26a2db259"></a><!-- doxytag: member="qpid::messaging::Session::release" ref="a305fa96f24660aa8aceea4c26a2db259" args="(Message &)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::release </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00205.html">Message</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Releases the specified message. </p>
<p>The broker may redeliver the message. Once a message has been acknowledged, it can no longer be released. </p>
</div>
</div>
<a class="anchor" id="aeb08e52b43398b93e6a0eb1fb62d9801"></a><!-- doxytag: member="qpid::messaging::Session::rollback" ref="aeb08e52b43398b93e6a0eb1fb62d9801" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::rollback </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<a class="anchor" id="a9eb61a86144e01a2683da2ad36137c54"></a><!-- doxytag: member="qpid::messaging::Session::swap" ref="a9eb61a86144e01a2683da2ad36137c54" args="(Handle< T > &h)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Handle::swap </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00139.html">Handle</a>< T > & </td>
<td class="paramname"><em>h</em></td><td>)</td>
<td><code> [inline, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="a00439_source.html#l00054">54</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
<p>References <a class="el" href="a00439_source.html#l00064">qpid::messaging::Handle::impl</a>.</p>
</div>
</div>
<a class="anchor" id="a6b6831b8e74419015a61607a96592987"></a><!-- doxytag: member="qpid::messaging::Session::sync" ref="a6b6831b8e74419015a61607a96592987" args="(bool block=true)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void qpid::messaging::Session::sync </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>block</em> = <code>true</code></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Request synchronisation with the server. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">block</td><td>if true, this call will block until the server confirms completion of all pending operations; if false the call will request notification from the server but will return before receiving it. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aa4b861c288ed3546405a0e334a2c7ae9"></a><!-- doxytag: member="qpid::messaging::Session::impl" ref="aa4b861c288ed3546405a0e334a2c7ae9" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00139.html#a51b69551a689a063cd575ae3f81c9775">Impl</a>* <a class="el" href="a00139.html#aa4b861c288ed3546405a0e334a2c7ae9">qpid::messaging::Handle::impl</a><code> [protected, inherited]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="a00439_source.html#l00064">64</a> of file <a class="el" href="a00439_source.html">Handle.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>qpid/messaging/<a class="el" href="a00477_source.html">Session.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>
|