/usr/share/proton-0.14.0/docs/api-py/proton.utils-pysrc.html is in python-qpid-proton-doc 0.14.0-5.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 | <?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>proton.utils</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="proton-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
<a href="proton-module.html">Package proton</a> ::
Module utils
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
<tr><td align="right"><span class="options"
>[<a href="frames.html" target="_top">frames</a
>] | <a href="proton.utils-pysrc.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<h1 class="epydoc">Source Code for <a href="proton.utils-module.html">Module proton.utils</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-comment"># Licensed to the Apache Software Foundation (ASF) under one</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-comment"># or more contributor license agreements. See the NOTICE file</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-comment"># distributed with this work for additional information</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-comment"># regarding copyright ownership. The ASF licenses this file</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-comment"># to you under the Apache License, Version 2.0 (the</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-comment"># "License"); you may not use this file except in compliance</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-comment"># with the License. You may obtain a copy of the License at</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt> <tt class="py-line"><tt class="py-comment"># http://www.apache.org/licenses/LICENSE-2.0</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt> <tt class="py-line"><tt class="py-comment"># Unless required by applicable law or agreed to in writing,</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt> <tt class="py-line"><tt class="py-comment"># software distributed under the License is distributed on an</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt> <tt class="py-line"><tt class="py-comment"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt> <tt class="py-line"><tt class="py-comment"># KIND, either express or implied. See the License for the</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt> <tt class="py-line"><tt class="py-comment"># specific language governing permissions and limitations</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt> <tt class="py-line"><tt class="py-comment"># under the License.</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt> <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">collections</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">,</tt> <tt class="py-name">time</tt><tt class="py-op">,</tt> <tt class="py-name">threading</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt> <tt class="py-line"> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package proton=proton-module.html"><a title="proton" class="py-name" href="#" onclick="return doclink('link-0', 'proton', 'link-0');">proton</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">ConnectionException</tt><tt class="py-op">,</tt> <tt id="link-1" class="py-name" targets="Class proton.Delivery=proton.Delivery-class.html"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-1', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">,</tt> <tt id="link-2" class="py-name" targets="Class proton.Endpoint=proton.Endpoint-class.html"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-2', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">,</tt> <tt id="link-3" class="py-name" targets="Class proton.Handler=proton.Handler-class.html"><a title="proton.Handler" class="py-name" href="#" onclick="return doclink('link-3', 'Handler', 'link-3');">Handler</a></tt><tt class="py-op">,</tt> <tt id="link-4" class="py-name" targets="Class proton.Link=proton.Link-class.html"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-4', 'Link', 'link-4');">Link</a></tt><tt class="py-op">,</tt> <tt class="py-name">LinkException</tt><tt class="py-op">,</tt> <tt id="link-5" class="py-name" targets="Class proton.Message=proton.Message-class.html"><a title="proton.Message" class="py-name" href="#" onclick="return doclink('link-5', 'Message', 'link-5');">Message</a></tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name"><a title="proton" class="py-name" href="#" onclick="return doclink('link-6', 'proton', 'link-0');">proton</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Class proton.ProtonException=proton.ProtonException-class.html"><a title="proton.ProtonException" class="py-name" href="#" onclick="return doclink('link-7', 'ProtonException', 'link-7');">ProtonException</a></tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name" targets="Class proton.Timeout=proton.Timeout-class.html"><a title="proton.Timeout" class="py-name" href="#" onclick="return doclink('link-8', 'Timeout', 'link-8');">Timeout</a></tt><tt class="py-op">,</tt> <tt id="link-9" class="py-name" targets="Class proton.Url=proton.Url-class.html"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-9', 'Url', 'link-9');">Url</a></tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-10" class="py-name"><a title="proton" class="py-name" href="#" onclick="return doclink('link-10', 'proton', 'link-0');">proton</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Variable proton.Event.reactor=proton.Event-class.html#reactor,Module proton.reactor=proton.reactor-module.html"><a title="proton.Event.reactor
proton.reactor" class="py-name" href="#" onclick="return doclink('link-11', 'reactor', 'link-11');">reactor</a></tt> <tt class="py-keyword">import</tt> <tt id="link-12" class="py-name" targets="Class proton.reactor.Container=proton.reactor.Container-class.html"><a title="proton.reactor.Container" class="py-name" href="#" onclick="return doclink('link-12', 'Container', 'link-12');">Container</a></tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-13" class="py-name"><a title="proton" class="py-name" href="#" onclick="return doclink('link-13', 'proton', 'link-0');">proton</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method proton.Handler.handlers()=proton.Handler-class.html#handlers,Module proton.handlers=proton.handlers-module.html"><a title="proton.Handler.handlers
proton.handlers" class="py-name" href="#" onclick="return doclink('link-14', 'handlers', 'link-14');">handlers</a></tt> <tt class="py-keyword">import</tt> <tt id="link-15" class="py-name" targets="Class proton.handlers.MessagingHandler=proton.handlers.MessagingHandler-class.html"><a title="proton.handlers.MessagingHandler" class="py-name" href="#" onclick="return doclink('link-15', 'MessagingHandler', 'link-15');">MessagingHandler</a></tt><tt class="py-op">,</tt> <tt id="link-16" class="py-name" targets="Class proton.handlers.IncomingMessageHandler=proton.handlers.IncomingMessageHandler-class.html"><a title="proton.handlers.IncomingMessageHandler" class="py-name" href="#" onclick="return doclink('link-16', 'IncomingMessageHandler', 'link-16');">IncomingMessageHandler</a></tt> </tt>
<a name="BlockingLink"></a><div id="BlockingLink-def"><a name="L25"></a><tt class="py-lineno"> 25</tt> <tt class="py-line"> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt> <tt class="py-line"> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="BlockingLink-toggle" onclick="return toggle('BlockingLink');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.BlockingLink-class.html">BlockingLink</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingLink-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BlockingLink-expanded"><a name="BlockingLink.__init__"></a><div id="BlockingLink.__init__-def"><a name="L28"></a><tt class="py-lineno"> 28</tt> <a class="py-toggle" href="#" id="BlockingLink.__init__-toggle" onclick="return toggle('BlockingLink.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingLink-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingLink.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingLink.__init__-expanded"><a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Variable proton.Connection.connection=proton.Connection-class.html#connection,Variable proton.Delivery.connection=proton.Delivery-class.html#connection,Variable proton.Event.connection=proton.Event-class.html#connection,Variable proton.Link.connection=proton.Link-class.html#connection,Variable proton.Session.connection=proton.Session-class.html#connection,Variable proton.Transport.connection=proton.Transport-class.html#connection,Method proton.reactor.Reactor.connection()=proton.reactor.Reactor-class.html#connection"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-17', 'connection', 'link-17');">connection</a></tt> <tt class="py-op">=</tt> <tt id="link-18" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-18', 'connection', 'link-17');">connection</a></tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Variable proton.Delivery.link=proton.Delivery-class.html#link,Variable proton.Event.link=proton.Event-class.html#link"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-19', 'link', 'link-19');">link</a></tt> <tt class="py-op">=</tt> <tt id="link-20" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-20', 'link', 'link-19');">link</a></tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-21', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Method proton.utils.BlockingConnection.wait()=proton.utils.BlockingConnection-class.html#wait"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-22', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-keyword">not</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-23', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Variable proton.Connection.state=proton.Connection-class.html#state,Variable proton.Link.state=proton.Link-class.html#state,Variable proton.Session.state=proton.Session-class.html#state"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-24', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-25" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-25', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-26" class="py-name" targets="Variable proton.Endpoint.REMOTE_UNINIT=proton.Endpoint-class.html#REMOTE_UNINIT"><a title="proton.Endpoint.REMOTE_UNINIT" class="py-name" href="#" onclick="return doclink('link-26', 'REMOTE_UNINIT', 'link-26');">REMOTE_UNINIT</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt> <tt class="py-line"> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Opening link %s"</tt> <tt class="py-op">%</tt> <tt id="link-27" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-27', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Variable proton.Link.name=proton.Link-class.html#name,Variable proton.Messenger.name=proton.Messenger-class.html#name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-28', 'name', 'link-28');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_checkClosed</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L34"></a><tt class="py-lineno"> 34</tt> <tt class="py-line"> </tt>
<a name="BlockingLink._waitForClose"></a><div id="BlockingLink._waitForClose-def"><a name="L35"></a><tt class="py-lineno"> 35</tt> <a class="py-toggle" href="#" id="BlockingLink._waitForClose-toggle" onclick="return toggle('BlockingLink._waitForClose');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingLink-class.html#_waitForClose">_waitForClose</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingLink._waitForClose-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingLink._waitForClose-expanded"><a name="L36"></a><tt class="py-lineno"> 36</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-29', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-30', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-31', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-32', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-33" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-33', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Variable proton.Endpoint.REMOTE_CLOSED=proton.Endpoint-class.html#REMOTE_CLOSED"><a title="proton.Endpoint.REMOTE_CLOSED" class="py-name" href="#" onclick="return doclink('link-34', 'REMOTE_CLOSED', 'link-34');">REMOTE_CLOSED</a></tt><tt class="py-op">,</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt> <tt class="py-line"> <tt id="link-35" class="py-name" targets="Variable proton.Messenger.timeout=proton.Messenger-class.html#timeout,Variable proton.Terminus.timeout=proton.Terminus-class.html#timeout,Variable proton.reactor.Reactor.timeout=proton.reactor.Reactor-class.html#timeout"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-35', 'timeout', 'link-35');">timeout</a></tt><tt class="py-op">=</tt><tt id="link-36" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-36', 'timeout', 'link-35');">timeout</a></tt><tt class="py-op">,</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt> <tt class="py-line"> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Opening link %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-37', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-38', 'name', 'link-28');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt id="link-39" class="py-name"><a title="proton.Timeout" class="py-name" href="#" onclick="return doclink('link-39', 'Timeout', 'link-8');">Timeout</a></tt> <tt class="py-keyword">as</tt> <tt class="py-name">e</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_checkClosed</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L42"></a><tt class="py-lineno"> 42</tt> <tt class="py-line"> </tt>
<a name="BlockingLink._checkClosed"></a><div id="BlockingLink._checkClosed-def"><a name="L43"></a><tt class="py-lineno"> 43</tt> <a class="py-toggle" href="#" id="BlockingLink._checkClosed-toggle" onclick="return toggle('BlockingLink._checkClosed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingLink-class.html#_checkClosed">_checkClosed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingLink._checkClosed-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingLink._checkClosed-expanded"><a name="L44"></a><tt class="py-lineno"> 44</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-40', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-41', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-42" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-42', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="proton.Endpoint.REMOTE_CLOSED" class="py-name" href="#" onclick="return doclink('link-43', 'REMOTE_CLOSED', 'link-34');">REMOTE_CLOSED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-44', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Method proton.Connection.close()=proton.Connection-class.html#close,Method proton.Link.close()=proton.Link-class.html#close,Method proton.Session.close()=proton.Session-class.html#close,Method proton.reactor.Acceptor.close()=proton.reactor.Acceptor-class.html#close,Method proton.reactor.EventInjector.close()=proton.reactor.EventInjector-class.html#close,Method proton.utils.BlockingConnection.close()=proton.utils.BlockingConnection-class.html#close,Method proton.utils.BlockingLink.close()=proton.utils.BlockingLink-class.html#close"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-45', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-46" class="py-name" targets="Class proton.utils.LinkDetached=proton.utils.LinkDetached-class.html"><a title="proton.utils.LinkDetached" class="py-name" href="#" onclick="return doclink('link-46', 'LinkDetached', 'link-46');">LinkDetached</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-47', 'link', 'link-19');">link</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L47"></a><tt class="py-lineno"> 47</tt> <tt class="py-line"> </tt>
<a name="BlockingLink.close"></a><div id="BlockingLink.close-def"><a name="L48"></a><tt class="py-lineno"> 48</tt> <a class="py-toggle" href="#" id="BlockingLink.close-toggle" onclick="return toggle('BlockingLink.close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingLink-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingLink.close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingLink.close-expanded"><a name="L49"></a><tt class="py-lineno"> 49</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-48', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-49', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-50', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-51', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-keyword">not</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-52', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-53', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-54" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-54', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Variable proton.Endpoint.REMOTE_ACTIVE=proton.Endpoint-class.html#REMOTE_ACTIVE"><a title="proton.Endpoint.REMOTE_ACTIVE" class="py-name" href="#" onclick="return doclink('link-55', 'REMOTE_ACTIVE', 'link-55');">REMOTE_ACTIVE</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt> <tt class="py-line"> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Closing link %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-56', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-57', 'name', 'link-28');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L52"></a><tt class="py-lineno"> 52</tt> <tt class="py-line"> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt> <tt class="py-line"> <tt class="py-comment"># Access to other link attributes.</tt> </tt>
<a name="BlockingLink.__getattr__"></a><div id="BlockingLink.__getattr__-def"><a name="L54"></a><tt class="py-lineno"> 54</tt> <a class="py-toggle" href="#" id="BlockingLink.__getattr__-toggle" onclick="return toggle('BlockingLink.__getattr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingLink-class.html#__getattr__">__getattr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-58', 'link', 'link-19');">link</a></tt><tt class="py-op">,</tt> <tt id="link-59" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-59', 'name', 'link-28');">name</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L55"></a><tt class="py-lineno"> 55</tt> <tt class="py-line"> </tt>
<a name="SendException"></a><div id="SendException-def"><a name="L56"></a><tt class="py-lineno"> 56</tt> <a class="py-toggle" href="#" id="SendException-toggle" onclick="return toggle('SendException');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.SendException-class.html">SendException</a><tt class="py-op">(</tt><tt class="py-base-class">ProtonException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SendException-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SendException-expanded"><a name="L57"></a><tt class="py-lineno"> 57</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt> <tt class="py-line"><tt class="py-docstring"> Exception used to indicate an exceptional state/condition on a send request</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="SendException.__init__"></a><div id="SendException.__init__-def"><a name="L60"></a><tt class="py-lineno"> 60</tt> <a class="py-toggle" href="#" id="SendException.__init__-toggle" onclick="return toggle('SendException.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.SendException-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">state</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SendException.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SendException.__init__-expanded"><a name="L61"></a><tt class="py-lineno"> 61</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-60" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-60', 'state', 'link-24');">state</a></tt> <tt class="py-op">=</tt> <tt id="link-61" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-61', 'state', 'link-24');">state</a></tt> </tt>
</div></div><a name="L62"></a><tt class="py-lineno"> 62</tt> <tt class="py-line"> </tt>
<a name="_is_settled"></a><div id="_is_settled-def"><a name="L63"></a><tt class="py-lineno"> 63</tt> <a class="py-toggle" href="#" id="_is_settled-toggle" onclick="return toggle('_is_settled');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils-module.html#_is_settled">_is_settled</a><tt class="py-op">(</tt><tt class="py-param">delivery</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_is_settled-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_is_settled-expanded"><a name="L64"></a><tt class="py-lineno"> 64</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-62" class="py-name" targets="Variable proton.Event.delivery=proton.Event-class.html#delivery,Method proton.Link.delivery()=proton.Link-class.html#delivery"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-62', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name" targets="Variable proton.Delivery.settled=proton.Delivery-class.html#settled"><a title="proton.Delivery.settled" class="py-name" href="#" onclick="return doclink('link-63', 'settled', 'link-63');">settled</a></tt> <tt class="py-keyword">or</tt> <tt id="link-64" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-64', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-65', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-66" class="py-name" targets="Variable proton.Link.snd_settle_mode=proton.Link-class.html#snd_settle_mode"><a title="proton.Link.snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-66', 'snd_settle_mode', 'link-66');">snd_settle_mode</a></tt> <tt class="py-op">==</tt> <tt id="link-67" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-67', 'Link', 'link-4');">Link</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name" targets="Variable proton.Link.SND_SETTLED=proton.Link-class.html#SND_SETTLED"><a title="proton.Link.SND_SETTLED" class="py-name" href="#" onclick="return doclink('link-68', 'SND_SETTLED', 'link-68');">SND_SETTLED</a></tt> </tt>
</div><a name="L65"></a><tt class="py-lineno"> 65</tt> <tt class="py-line"> </tt>
<a name="BlockingSender"></a><div id="BlockingSender-def"><a name="L66"></a><tt class="py-lineno"> 66</tt> <a class="py-toggle" href="#" id="BlockingSender-toggle" onclick="return toggle('BlockingSender');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.BlockingSender-class.html">BlockingSender</a><tt class="py-op">(</tt><tt class="py-base-class">BlockingLink</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingSender-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BlockingSender-expanded"><a name="BlockingSender.__init__"></a><div id="BlockingSender.__init__-def"><a name="L67"></a><tt class="py-lineno"> 67</tt> <a class="py-toggle" href="#" id="BlockingSender.__init__-toggle" onclick="return toggle('BlockingSender.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingSender-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">,</tt> <tt class="py-param">sender</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingSender.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingSender.__init__-expanded"><a name="L68"></a><tt class="py-lineno"> 68</tt> <tt class="py-line"> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-69" class="py-name" targets="Class proton.utils.BlockingSender=proton.utils.BlockingSender-class.html"><a title="proton.utils.BlockingSender" class="py-name" href="#" onclick="return doclink('link-69', 'BlockingSender', 'link-69');">BlockingSender</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name" targets="Method proton.Array.__init__()=proton.Array-class.html#__init__,Method proton.Collector.__init__()=proton.Collector-class.html#__init__,Method proton.Condition.__init__()=proton.Condition-class.html#__init__,Method proton.Connection.__init__()=proton.Connection-class.html#__init__,Method proton.Data.__init__()=proton.Data-class.html#__init__,Method proton.Delivery.__init__()=proton.Delivery-class.html#__init__,Method proton.Described.__init__()=proton.Described-class.html#__init__,Method proton.Disposition.__init__()=proton.Disposition-class.html#__init__,Method proton.Event.__init__()=proton.Event-class.html#__init__,Method proton.EventType.__init__()=proton.EventType-class.html#__init__,Method proton.Link.__init__()=proton.Link-class.html#__init__,Method proton.Message.__init__()=proton.Message-class.html#__init__,Method proton.Messenger.__init__()=proton.Messenger-class.html#__init__,Method proton.SASL.__init__()=proton.SASL-class.html#__init__,Method proton.SSLDomain.__init__()=proton.SSLDomain-class.html#__init__,Method proton.SSLSessionDetails.__init__()=proton.SSLSessionDetails-class.html#__init__,Method proton.Session.__init__()=proton.Session-class.html#__init__,Method proton.Terminus.__init__()=proton.Terminus-class.html#__init__,Method proton.Transport.__init__()=proton.Transport-class.html#__init__,Method proton.Url.PartDescriptor.__init__()=proton.Url.PartDescriptor-class.html#__init__,Method proton.Url.__init__()=proton.Url-class.html#__init__,Method proton.handlers.CFlowController.__init__()=proton.handlers.CFlowController-class.html#__init__,Method proton.handlers.CHandshaker.__init__()=proton.handlers.CHandshaker-class.html#__init__,Method proton.handlers.EndpointStateHandler.__init__()=proton.handlers.EndpointStateHandler-class.html#__init__,Method proton.handlers.IOHandler.__init__()=proton.handlers.IOHandler-class.html#__init__,Method proton.handlers.IncomingMessageHandler.__init__()=proton.handlers.IncomingMessageHandler-class.html#__init__,Method proton.handlers.MessagingHandler.__init__()=proton.handlers.MessagingHandler-class.html#__init__,Method proton.handlers.OutgoingMessageHandler.__init__()=proton.handlers.OutgoingMessageHandler-class.html#__init__,Method proton.handlers.PythonIO.__init__()=proton.handlers.PythonIO-class.html#__init__,Method proton.handlers.TransactionalClientHandler.__init__()=proton.handlers.TransactionalClientHandler-class.html#__init__,Method proton.reactor.Acceptor.__init__()=proton.reactor.Acceptor-class.html#__init__,Method proton.reactor.ApplicationEvent.__init__()=proton.reactor.ApplicationEvent-class.html#__init__,Method proton.reactor.Backoff.__init__()=proton.reactor.Backoff-class.html#__init__,Method proton.reactor.Connector.__init__()=proton.reactor.Connector-class.html#__init__,Method proton.reactor.Container.__init__()=proton.reactor.Container-class.html#__init__,Method proton.reactor.DynamicNodeProperties.__init__()=proton.reactor.DynamicNodeProperties-class.html#__init__,Method proton.reactor.EventInjector.__init__()=proton.reactor.EventInjector-class.html#__init__,Method proton.reactor.Filter.__init__()=proton.reactor.Filter-class.html#__init__,Method proton.reactor.GlobalOverrides.__init__()=proton.reactor.GlobalOverrides-class.html#__init__,Method proton.reactor.Reactor.__init__()=proton.reactor.Reactor-class.html#__init__,Method proton.reactor.SSLConfig.__init__()=proton.reactor.SSLConfig-class.html#__init__,Method proton.reactor.Selector.__init__()=proton.reactor.Selector-class.html#__init__,Method proton.reactor.SessionPerConnection.__init__()=proton.reactor.SessionPerConnection-class.html#__init__,Method proton.reactor.Task.__init__()=proton.reactor.Task-class.html#__init__,Method proton.reactor.Transaction.__init__()=proton.reactor.Transaction-class.html#__init__,Method proton.reactor.Urls.__init__()=proton.reactor.Urls-class.html#__init__,Method proton.utils.AtomicCount.__init__()=proton.utils.AtomicCount-class.html#__init__,Method proton.utils.BlockingConnection.__init__()=proton.utils.BlockingConnection-class.html#__init__,Method proton.utils.BlockingLink.__init__()=proton.utils.BlockingLink-class.html#__init__,Method proton.utils.BlockingReceiver.__init__()=proton.utils.BlockingReceiver-class.html#__init__,Method proton.utils.BlockingSender.__init__()=proton.utils.BlockingSender-class.html#__init__,Method proton.utils.ConnectionClosed.__init__()=proton.utils.ConnectionClosed-class.html#__init__,Method proton.utils.Fetcher.__init__()=proton.utils.Fetcher-class.html#__init__,Method proton.utils.LinkDetached.__init__()=proton.utils.LinkDetached-class.html#__init__,Method proton.utils.SendException.__init__()=proton.utils.SendException-class.html#__init__,Method proton.utils.SyncRequestResponse.__init__()=proton.utils.SyncRequestResponse-class.html#__init__,Method proton.wrapper.Wrapper.__init__()=proton.wrapper.Wrapper-class.html#__init__"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-70', '__init__', 'link-70');">__init__</a></tt><tt class="py-op">(</tt><tt id="link-71" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-71', 'connection', 'link-17');">connection</a></tt><tt class="py-op">,</tt> <tt id="link-72" class="py-name" targets="Variable proton.Event.sender=proton.Event-class.html#sender,Method proton.Session.sender()=proton.Session-class.html#sender"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-72', 'sender', 'link-72');">sender</a></tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-73', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-74" class="py-name" targets="Variable proton.Link.target=proton.Link-class.html#target"><a title="proton.Link.target" class="py-name" href="#" onclick="return doclink('link-74', 'target', 'link-74');">target</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-75', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="proton.Link.target" class="py-name" href="#" onclick="return doclink('link-76', 'target', 'link-74');">target</a></tt><tt class="py-op">.</tt><tt id="link-77" class="py-name" targets="Variable proton.Message.address=proton.Message-class.html#address,Variable proton.Terminus.address=proton.Terminus-class.html#address"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-77', 'address', 'link-77');">address</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-78" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-78', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="proton.Link.target" class="py-name" href="#" onclick="return doclink('link-79', 'target', 'link-74');">target</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-80', 'address', 'link-77');">address</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-81" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-81', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-82" class="py-name" targets="Variable proton.Link.remote_target=proton.Link-class.html#remote_target"><a title="proton.Link.remote_target" class="py-name" href="#" onclick="return doclink('link-82', 'remote_target', 'link-82');">remote_target</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-83', 'address', 'link-77');">address</a></tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt> <tt class="py-line"> <tt class="py-comment">#this may be followed by a detach, which may contain an error condition, so wait a little...</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_waitForClose</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt> <tt class="py-line"> <tt class="py-comment">#...but close ourselves if peer does not</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-84', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-85', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">LinkException</tt><tt class="py-op">(</tt><tt class="py-string">"Failed to open sender %s, target does not match"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-86', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-87', 'name', 'link-28');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L75"></a><tt class="py-lineno"> 75</tt> <tt class="py-line"> </tt>
<a name="BlockingSender.send"></a><div id="BlockingSender.send-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="BlockingSender.send-toggle" onclick="return toggle('BlockingSender.send');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingSender-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">msg</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">error_states</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingSender.send-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingSender.send-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt> <tt class="py-line"> <tt id="link-88" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-88', 'delivery', 'link-62');">delivery</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-89" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-89', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-90" class="py-name" targets="Method proton.Message.send()=proton.Message-class.html#send,Method proton.Messenger.send()=proton.Messenger-class.html#send,Method proton.Sender.send()=proton.Sender-class.html#send,Method proton.reactor.Transaction.send()=proton.reactor.Transaction-class.html#send,Method proton.utils.BlockingSender.send()=proton.utils.BlockingSender-class.html#send"><a title="proton.Message.send
proton.Messenger.send
proton.Sender.send
proton.reactor.Transaction.send
proton.utils.BlockingSender.send" class="py-name" href="#" onclick="return doclink('link-90', 'send', 'link-90');">send</a></tt><tt class="py-op">(</tt><tt class="py-name">msg</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-91', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-92', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-name">_is_settled</tt><tt class="py-op">(</tt><tt id="link-93" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-93', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Sending on sender %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-94', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-95', 'name', 'link-28');">name</a></tt><tt class="py-op">,</tt> <tt id="link-96" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-96', 'timeout', 'link-35');">timeout</a></tt><tt class="py-op">=</tt><tt id="link-97" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-97', 'timeout', 'link-35');">timeout</a></tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-98" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-98', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-99" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-99', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="proton.Link.snd_settle_mode" class="py-name" href="#" onclick="return doclink('link-100', 'snd_settle_mode', 'link-66');">snd_settle_mode</a></tt> <tt class="py-op">!=</tt> <tt id="link-101" class="py-name"><a title="proton.Link" class="py-name" href="#" onclick="return doclink('link-101', 'Link', 'link-4');">Link</a></tt><tt class="py-op">.</tt><tt id="link-102" class="py-name"><a title="proton.Link.SND_SETTLED" class="py-name" href="#" onclick="return doclink('link-102', 'SND_SETTLED', 'link-68');">SND_SETTLED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt> <tt class="py-line"> <tt id="link-103" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-103', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-104" class="py-name" targets="Method proton.Delivery.settle()=proton.Delivery-class.html#settle,Method proton.Messenger.settle()=proton.Messenger-class.html#settle,Method proton.handlers.Acking.settle()=proton.handlers.Acking-class.html#settle,Method proton.utils.BlockingReceiver.settle()=proton.utils.BlockingReceiver-class.html#settle,Method proton.utils.Fetcher.settle()=proton.utils.Fetcher-class.html#settle"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-104', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt> <tt class="py-line"> <tt class="py-name">bad</tt> <tt class="py-op">=</tt> <tt class="py-name">error_states</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">bad</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt> <tt class="py-line"> <tt class="py-name">bad</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt id="link-105" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-105', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-106" class="py-name" targets="Variable proton.Delivery.REJECTED=proton.Delivery-class.html#REJECTED,Variable proton.Disposition.REJECTED=proton.Disposition-class.html#REJECTED,Variable proton.REJECTED=proton-module.html#REJECTED"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-106', 'REJECTED', 'link-106');">REJECTED</a></tt><tt class="py-op">,</tt> <tt id="link-107" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-107', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-108" class="py-name" targets="Variable proton.Delivery.RELEASED=proton.Delivery-class.html#RELEASED,Variable proton.Disposition.RELEASED=proton.Disposition-class.html#RELEASED,Variable proton.RELEASED=proton-module.html#RELEASED"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-108', 'RELEASED', 'link-108');">RELEASED</a></tt><tt class="py-op">]</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-109" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-109', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-110" class="py-name" targets="Variable proton.Delivery.remote_state=proton.Delivery-class.html#remote_state"><a title="proton.Delivery.remote_state" class="py-name" href="#" onclick="return doclink('link-110', 'remote_state', 'link-110');">remote_state</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">bad</tt><tt class="py-op">:</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-111" class="py-name" targets="Class proton.utils.SendException=proton.utils.SendException-class.html"><a title="proton.utils.SendException" class="py-name" href="#" onclick="return doclink('link-111', 'SendException', 'link-111');">SendException</a></tt><tt class="py-op">(</tt><tt id="link-112" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-112', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="proton.Delivery.remote_state" class="py-name" href="#" onclick="return doclink('link-113', 'remote_state', 'link-110');">remote_state</a></tt><tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-114" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-114', 'delivery', 'link-62');">delivery</a></tt> </tt>
</div></div><a name="L87"></a><tt class="py-lineno"> 87</tt> <tt class="py-line"> </tt>
<a name="Fetcher"></a><div id="Fetcher-def"><a name="L88"></a><tt class="py-lineno"> 88</tt> <a class="py-toggle" href="#" id="Fetcher-toggle" onclick="return toggle('Fetcher');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html">Fetcher</a><tt class="py-op">(</tt><tt class="py-base-class">MessagingHandler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Fetcher-expanded"><a name="Fetcher.__init__"></a><div id="Fetcher.__init__-def"><a name="L89"></a><tt class="py-lineno"> 89</tt> <a class="py-toggle" href="#" id="Fetcher.__init__-toggle" onclick="return toggle('Fetcher.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">,</tt> <tt class="py-param">prefetch</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.__init__-expanded"><a name="L90"></a><tt class="py-lineno"> 90</tt> <tt class="py-line"> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-115" class="py-name" targets="Class proton.utils.Fetcher=proton.utils.Fetcher-class.html"><a title="proton.utils.Fetcher" class="py-name" href="#" onclick="return doclink('link-115', 'Fetcher', 'link-115');">Fetcher</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-116', '__init__', 'link-70');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">prefetch</tt><tt class="py-op">=</tt><tt class="py-name">prefetch</tt><tt class="py-op">,</tt> <tt class="py-name">auto_accept</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-117', 'connection', 'link-17');">connection</a></tt> <tt class="py-op">=</tt> <tt id="link-118" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-118', 'connection', 'link-17');">connection</a></tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name" targets="Variable proton.Messenger.incoming=proton.Messenger-class.html#incoming"><a title="proton.Messenger.incoming" class="py-name" href="#" onclick="return doclink('link-119', 'incoming', 'link-119');">incoming</a></tt> <tt class="py-op">=</tt> <tt class="py-name">collections</tt><tt class="py-op">.</tt><tt class="py-name">deque</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-120" class="py-name" targets="Variable proton.Link.unsettled=proton.Link-class.html#unsettled"><a title="proton.Link.unsettled" class="py-name" href="#" onclick="return doclink('link-120', 'unsettled', 'link-120');">unsettled</a></tt> <tt class="py-op">=</tt> <tt class="py-name">collections</tt><tt class="py-op">.</tt><tt class="py-name">deque</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L94"></a><tt class="py-lineno"> 94</tt> <tt class="py-line"> </tt>
<a name="Fetcher.on_message"></a><div id="Fetcher.on_message-def"><a name="L95"></a><tt class="py-lineno"> 95</tt> <a class="py-toggle" href="#" id="Fetcher.on_message-toggle" onclick="return toggle('Fetcher.on_message');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#on_message">on_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.on_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.on_message-expanded"><a name="L96"></a><tt class="py-lineno"> 96</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="proton.Messenger.incoming" class="py-name" href="#" onclick="return doclink('link-121', 'incoming', 'link-119');">incoming</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">message</tt><tt class="py-op">,</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-122" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-122', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-123', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-124" class="py-name" targets="Variable proton.Connection.container=proton.Connection-class.html#container"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-124', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-125" class="py-name" targets="Method proton.reactor.Reactor.yield_()=proton.reactor.Reactor-class.html#yield_"><a title="proton.reactor.Reactor.yield_" class="py-name" href="#" onclick="return doclink('link-125', 'yield_', 'link-125');">yield_</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-comment"># Wake up the wait() loop to handle the message.</tt> </tt>
</div><a name="L98"></a><tt class="py-lineno"> 98</tt> <tt class="py-line"> </tt>
<a name="Fetcher.on_link_error"></a><div id="Fetcher.on_link_error-def"><a name="L99"></a><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="Fetcher.on_link_error-toggle" onclick="return toggle('Fetcher.on_link_error');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#on_link_error">on_link_error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.on_link_error-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.on_link_error-expanded"><a name="L100"></a><tt class="py-lineno">100</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-126', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-127', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-128" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-128', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-129" class="py-name" targets="Variable proton.Endpoint.LOCAL_ACTIVE=proton.Endpoint-class.html#LOCAL_ACTIVE"><a title="proton.Endpoint.LOCAL_ACTIVE" class="py-name" href="#" onclick="return doclink('link-129', 'LOCAL_ACTIVE', 'link-129');">LOCAL_ACTIVE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt> <tt class="py-line"> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-130', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-131" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-131', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-132" class="py-name"><a title="proton.utils.LinkDetached" class="py-name" href="#" onclick="return doclink('link-132', 'LinkDetached', 'link-46');">LinkDetached</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-133" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-133', 'link', 'link-19');">link</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L103"></a><tt class="py-lineno">103</tt> <tt class="py-line"> </tt>
<a name="Fetcher.on_connection_error"></a><div id="Fetcher.on_connection_error-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="Fetcher.on_connection_error-toggle" onclick="return toggle('Fetcher.on_connection_error');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#on_connection_error">on_connection_error</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.on_connection_error-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.on_connection_error-expanded"><a name="L105"></a><tt class="py-lineno">105</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-134" class="py-name" targets="Class proton.utils.ConnectionClosed=proton.utils.ConnectionClosed-class.html"><a title="proton.utils.ConnectionClosed" class="py-name" href="#" onclick="return doclink('link-134', 'ConnectionClosed', 'link-134');">ConnectionClosed</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-135" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-135', 'connection', 'link-17');">connection</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L106"></a><tt class="py-lineno">106</tt> <tt class="py-line"> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="Fetcher.has_message"></a><div id="Fetcher.has_message-def"><a name="L108"></a><tt class="py-lineno">108</tt> <a class="py-toggle" href="#" id="Fetcher.has_message-toggle" onclick="return toggle('Fetcher.has_message');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#has_message">has_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.has_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.has_message-expanded"><a name="L109"></a><tt class="py-lineno">109</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-136" class="py-name"><a title="proton.Messenger.incoming" class="py-name" href="#" onclick="return doclink('link-136', 'incoming', 'link-119');">incoming</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L110"></a><tt class="py-lineno">110</tt> <tt class="py-line"> </tt>
<a name="Fetcher.pop"></a><div id="Fetcher.pop-def"><a name="L111"></a><tt class="py-lineno">111</tt> <a class="py-toggle" href="#" id="Fetcher.pop-toggle" onclick="return toggle('Fetcher.pop');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#pop">pop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.pop-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.pop-expanded"><a name="L112"></a><tt class="py-lineno">112</tt> <tt class="py-line"> <tt class="py-name">message</tt><tt class="py-op">,</tt> <tt id="link-137" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-137', 'delivery', 'link-62');">delivery</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-138" class="py-name"><a title="proton.Messenger.incoming" class="py-name" href="#" onclick="return doclink('link-138', 'incoming', 'link-119');">incoming</a></tt><tt class="py-op">.</tt><tt class="py-name">popleft</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-139" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-139', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-140" class="py-name"><a title="proton.Delivery.settled" class="py-name" href="#" onclick="return doclink('link-140', 'settled', 'link-63');">settled</a></tt><tt class="py-op">:</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-141" class="py-name"><a title="proton.Link.unsettled" class="py-name" href="#" onclick="return doclink('link-141', 'unsettled', 'link-120');">unsettled</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-142" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-142', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">message</tt> </tt>
</div><a name="L116"></a><tt class="py-lineno">116</tt> <tt class="py-line"> </tt>
<a name="Fetcher.settle"></a><div id="Fetcher.settle-def"><a name="L117"></a><tt class="py-lineno">117</tt> <a class="py-toggle" href="#" id="Fetcher.settle-toggle" onclick="return toggle('Fetcher.settle');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.Fetcher-class.html#settle">settle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">state</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Fetcher.settle-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Fetcher.settle-expanded"><a name="L118"></a><tt class="py-lineno">118</tt> <tt class="py-line"> <tt id="link-143" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-143', 'delivery', 'link-62');">delivery</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-144" class="py-name"><a title="proton.Link.unsettled" class="py-name" href="#" onclick="return doclink('link-144', 'unsettled', 'link-120');">unsettled</a></tt><tt class="py-op">.</tt><tt class="py-name">popleft</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-145" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-145', 'state', 'link-24');">state</a></tt><tt class="py-op">:</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt> <tt class="py-line"> <tt id="link-146" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-146', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-147" class="py-name" targets="Method proton.Delivery.update()=proton.Delivery-class.html#update,Method proton.reactor.Reactor.update()=proton.reactor.Reactor-class.html#update,Method proton.reactor.Transaction.update()=proton.reactor.Transaction-class.html#update"><a title="proton.Delivery.update
proton.reactor.Reactor.update
proton.reactor.Transaction.update" class="py-name" href="#" onclick="return doclink('link-147', 'update', 'link-147');">update</a></tt><tt class="py-op">(</tt><tt id="link-148" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-148', 'state', 'link-24');">state</a></tt><tt class="py-op">)</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt> <tt class="py-line"> <tt id="link-149" class="py-name"><a title="proton.Event.delivery
proton.Link.delivery" class="py-name" href="#" onclick="return doclink('link-149', 'delivery', 'link-62');">delivery</a></tt><tt class="py-op">.</tt><tt id="link-150" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-150', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L122"></a><tt class="py-lineno">122</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver"></a><div id="BlockingReceiver-def"><a name="L123"></a><tt class="py-lineno">123</tt> <tt class="py-line"> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="BlockingReceiver-toggle" onclick="return toggle('BlockingReceiver');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html">BlockingReceiver</a><tt class="py-op">(</tt><tt class="py-base-class">BlockingLink</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BlockingReceiver-expanded"><a name="BlockingReceiver.__init__"></a><div id="BlockingReceiver.__init__-def"><a name="L125"></a><tt class="py-lineno">125</tt> <a class="py-toggle" href="#" id="BlockingReceiver.__init__-toggle" onclick="return toggle('BlockingReceiver.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">,</tt> <tt class="py-param">receiver</tt><tt class="py-op">,</tt> <tt class="py-param">fetcher</tt><tt class="py-op">,</tt> <tt class="py-param">credit</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.__init__-expanded"><a name="L126"></a><tt class="py-lineno">126</tt> <tt class="py-line"> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-151" class="py-name" targets="Class proton.utils.BlockingReceiver=proton.utils.BlockingReceiver-class.html"><a title="proton.utils.BlockingReceiver" class="py-name" href="#" onclick="return doclink('link-151', 'BlockingReceiver', 'link-151');">BlockingReceiver</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-152" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-152', '__init__', 'link-70');">__init__</a></tt><tt class="py-op">(</tt><tt id="link-153" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-153', 'connection', 'link-17');">connection</a></tt><tt class="py-op">,</tt> <tt id="link-154" class="py-name" targets="Variable proton.Event.receiver=proton.Event-class.html#receiver,Method proton.Session.receiver()=proton.Session-class.html#receiver"><a title="proton.Event.receiver
proton.Session.receiver" class="py-name" href="#" onclick="return doclink('link-154', 'receiver', 'link-154');">receiver</a></tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-155" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-155', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-156" class="py-name" targets="Variable proton.Link.source=proton.Link-class.html#source"><a title="proton.Link.source" class="py-name" href="#" onclick="return doclink('link-156', 'source', 'link-156');">source</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-157" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-157', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-158" class="py-name"><a title="proton.Link.source" class="py-name" href="#" onclick="return doclink('link-158', 'source', 'link-156');">source</a></tt><tt class="py-op">.</tt><tt id="link-159" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-159', 'address', 'link-77');">address</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-160" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-160', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-161" class="py-name"><a title="proton.Link.source" class="py-name" href="#" onclick="return doclink('link-161', 'source', 'link-156');">source</a></tt><tt class="py-op">.</tt><tt id="link-162" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-162', 'address', 'link-77');">address</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-163" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-163', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-164" class="py-name" targets="Variable proton.Link.remote_source=proton.Link-class.html#remote_source"><a title="proton.Link.remote_source" class="py-name" href="#" onclick="return doclink('link-164', 'remote_source', 'link-164');">remote_source</a></tt><tt class="py-op">.</tt><tt id="link-165" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-165', 'address', 'link-77');">address</a></tt><tt class="py-op">:</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt> <tt class="py-line"> <tt class="py-comment">#this may be followed by a detach, which may contain an error condition, so wait a little...</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_waitForClose</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt> <tt class="py-line"> <tt class="py-comment">#...but close ourselves if peer does not</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-166" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-166', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-167" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-167', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">LinkException</tt><tt class="py-op">(</tt><tt class="py-string">"Failed to open receiver %s, source does not match"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-168" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-168', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-169" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-169', 'name', 'link-28');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-170" class="py-name" targets="Variable proton.Link.credit=proton.Link-class.html#credit"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-170', 'credit', 'link-170');">credit</a></tt><tt class="py-op">:</tt> <tt id="link-171" class="py-name"><a title="proton.Event.receiver
proton.Session.receiver" class="py-name" href="#" onclick="return doclink('link-171', 'receiver', 'link-154');">receiver</a></tt><tt class="py-op">.</tt><tt id="link-172" class="py-name" targets="Method proton.Receiver.flow()=proton.Receiver-class.html#flow"><a title="proton.Receiver.flow" class="py-name" href="#" onclick="return doclink('link-172', 'flow', 'link-172');">flow</a></tt><tt class="py-op">(</tt><tt id="link-173" class="py-name"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-173', 'credit', 'link-170');">credit</a></tt><tt class="py-op">)</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt> <tt class="py-op">=</tt> <tt class="py-name">fetcher</tt> </tt>
</div><a name="L135"></a><tt class="py-lineno">135</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver.__del__"></a><div id="BlockingReceiver.__del__-def"><a name="L136"></a><tt class="py-lineno">136</tt> <a class="py-toggle" href="#" id="BlockingReceiver.__del__-toggle" onclick="return toggle('BlockingReceiver.__del__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#__del__">__del__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.__del__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.__del__-expanded"><a name="L137"></a><tt class="py-lineno">137</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-174" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-174', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-175" class="py-name" targets="Variable proton.Endpoint.handler=proton.Endpoint-class.html#handler,Variable proton.reactor.Reactor.handler=proton.reactor.Reactor-class.html#handler"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-175', 'handler', 'link-175');">handler</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L139"></a><tt class="py-lineno">139</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver.receive"></a><div id="BlockingReceiver.receive-def"><a name="L140"></a><tt class="py-lineno">140</tt> <a class="py-toggle" href="#" id="BlockingReceiver.receive-toggle" onclick="return toggle('BlockingReceiver.receive');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#receive">receive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.receive-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.receive-expanded"><a name="L141"></a><tt class="py-lineno">141</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt><tt class="py-op">:</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">Exception</tt><tt class="py-op">(</tt><tt class="py-string">"Can't call receive on this receiver as a handler was provided"</tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-176" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-176', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-177" class="py-name"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-177', 'credit', 'link-170');">credit</a></tt><tt class="py-op">:</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-178" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-178', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-179" class="py-name"><a title="proton.Receiver.flow" class="py-name" href="#" onclick="return doclink('link-179', 'flow', 'link-172');">flow</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-180" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-180', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-181" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-181', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt><tt class="py-op">.</tt><tt id="link-182" class="py-name" targets="Variable proton.utils.Fetcher.has_message=proton.utils.Fetcher-class.html#has_message"><a title="proton.utils.Fetcher.has_message" class="py-name" href="#" onclick="return doclink('link-182', 'has_message', 'link-182');">has_message</a></tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Receiving on receiver %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-183" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-183', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-184" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-184', 'name', 'link-28');">name</a></tt><tt class="py-op">,</tt> <tt id="link-185" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-185', 'timeout', 'link-35');">timeout</a></tt><tt class="py-op">=</tt><tt id="link-186" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-186', 'timeout', 'link-35');">timeout</a></tt><tt class="py-op">)</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt><tt class="py-op">.</tt><tt id="link-187" class="py-name" targets="Method proton.Collector.pop()=proton.Collector-class.html#pop,Method proton.Transport.pop()=proton.Transport-class.html#pop,Method proton.utils.Fetcher.pop()=proton.utils.Fetcher-class.html#pop"><a title="proton.Collector.pop
proton.Transport.pop
proton.utils.Fetcher.pop" class="py-name" href="#" onclick="return doclink('link-187', 'pop', 'link-187');">pop</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L147"></a><tt class="py-lineno">147</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver.accept"></a><div id="BlockingReceiver.accept-def"><a name="L148"></a><tt class="py-lineno">148</tt> <a class="py-toggle" href="#" id="BlockingReceiver.accept-toggle" onclick="return toggle('BlockingReceiver.accept');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#accept">accept</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.accept-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.accept-expanded"><a name="L149"></a><tt class="py-lineno">149</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-188" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-188', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt id="link-189" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-189', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-190" class="py-name" targets="Variable proton.ACCEPTED=proton-module.html#ACCEPTED,Variable proton.Delivery.ACCEPTED=proton.Delivery-class.html#ACCEPTED,Variable proton.Disposition.ACCEPTED=proton.Disposition-class.html#ACCEPTED"><a title="proton.ACCEPTED
proton.Delivery.ACCEPTED
proton.Disposition.ACCEPTED" class="py-name" href="#" onclick="return doclink('link-190', 'ACCEPTED', 'link-190');">ACCEPTED</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L150"></a><tt class="py-lineno">150</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver.reject"></a><div id="BlockingReceiver.reject-def"><a name="L151"></a><tt class="py-lineno">151</tt> <a class="py-toggle" href="#" id="BlockingReceiver.reject-toggle" onclick="return toggle('BlockingReceiver.reject');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#reject">reject</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.reject-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.reject-expanded"><a name="L152"></a><tt class="py-lineno">152</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-191" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-191', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt id="link-192" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-192', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-193" class="py-name"><a title="proton.Delivery.REJECTED
proton.Disposition.REJECTED
proton.REJECTED" class="py-name" href="#" onclick="return doclink('link-193', 'REJECTED', 'link-106');">REJECTED</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L153"></a><tt class="py-lineno">153</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver.release"></a><div id="BlockingReceiver.release-def"><a name="L154"></a><tt class="py-lineno">154</tt> <a class="py-toggle" href="#" id="BlockingReceiver.release-toggle" onclick="return toggle('BlockingReceiver.release');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#release">release</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">delivered</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.release-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.release-expanded"><a name="L155"></a><tt class="py-lineno">155</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">delivered</tt><tt class="py-op">:</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-194" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-194', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt id="link-195" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-195', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-196" class="py-name" targets="Variable proton.Delivery.MODIFIED=proton.Delivery-class.html#MODIFIED,Variable proton.Disposition.MODIFIED=proton.Disposition-class.html#MODIFIED,Variable proton.MODIFIED=proton-module.html#MODIFIED"><a title="proton.Delivery.MODIFIED
proton.Disposition.MODIFIED
proton.MODIFIED" class="py-name" href="#" onclick="return doclink('link-196', 'MODIFIED', 'link-196');">MODIFIED</a></tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-197" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-197', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt id="link-198" class="py-name"><a title="proton.Delivery" class="py-name" href="#" onclick="return doclink('link-198', 'Delivery', 'link-1');">Delivery</a></tt><tt class="py-op">.</tt><tt id="link-199" class="py-name"><a title="proton.Delivery.RELEASED
proton.Disposition.RELEASED
proton.RELEASED" class="py-name" href="#" onclick="return doclink('link-199', 'RELEASED', 'link-108');">RELEASED</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L159"></a><tt class="py-lineno">159</tt> <tt class="py-line"> </tt>
<a name="BlockingReceiver.settle"></a><div id="BlockingReceiver.settle-def"><a name="L160"></a><tt class="py-lineno">160</tt> <a class="py-toggle" href="#" id="BlockingReceiver.settle-toggle" onclick="return toggle('BlockingReceiver.settle');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingReceiver-class.html#settle">settle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">state</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingReceiver.settle-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingReceiver.settle-expanded"><a name="L161"></a><tt class="py-lineno">161</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt><tt class="py-op">:</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">Exception</tt><tt class="py-op">(</tt><tt class="py-string">"Can't call accept/reject etc on this receiver as a handler was provided"</tt><tt class="py-op">)</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fetcher</tt><tt class="py-op">.</tt><tt id="link-200" class="py-name"><a title="proton.Delivery.settle
proton.Messenger.settle
proton.handlers.Acking.settle
proton.utils.BlockingReceiver.settle
proton.utils.Fetcher.settle" class="py-name" href="#" onclick="return doclink('link-200', 'settle', 'link-104');">settle</a></tt><tt class="py-op">(</tt><tt id="link-201" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-201', 'state', 'link-24');">state</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L164"></a><tt class="py-lineno">164</tt> <tt class="py-line"> </tt>
<a name="LinkDetached"></a><div id="LinkDetached-def"><a name="L165"></a><tt class="py-lineno">165</tt> <tt class="py-line"> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt> <a class="py-toggle" href="#" id="LinkDetached-toggle" onclick="return toggle('LinkDetached');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.LinkDetached-class.html">LinkDetached</a><tt class="py-op">(</tt><tt class="py-base-class">LinkException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LinkDetached-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="LinkDetached-expanded"><a name="LinkDetached.__init__"></a><div id="LinkDetached.__init__-def"><a name="L167"></a><tt class="py-lineno">167</tt> <a class="py-toggle" href="#" id="LinkDetached.__init__-toggle" onclick="return toggle('LinkDetached.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.LinkDetached-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">link</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LinkDetached.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="LinkDetached.__init__-expanded"><a name="L168"></a><tt class="py-lineno">168</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-202" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-202', 'link', 'link-19');">link</a></tt> <tt class="py-op">=</tt> <tt id="link-203" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-203', 'link', 'link-19');">link</a></tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-204" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-204', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-205" class="py-name" targets="Variable proton.Link.is_sender=proton.Link-class.html#is_sender"><a title="proton.Link.is_sender" class="py-name" href="#" onclick="return doclink('link-205', 'is_sender', 'link-205');">is_sender</a></tt><tt class="py-op">:</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">"sender %s to %s closed"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-206" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-206', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-207" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-207', 'name', 'link-28');">name</a></tt><tt class="py-op">,</tt> <tt id="link-208" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-208', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-209" class="py-name"><a title="proton.Link.target" class="py-name" href="#" onclick="return doclink('link-209', 'target', 'link-74');">target</a></tt><tt class="py-op">.</tt><tt id="link-210" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-210', 'address', 'link-77');">address</a></tt><tt class="py-op">)</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">"receiver %s from %s closed"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-211" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-211', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-212" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-212', 'name', 'link-28');">name</a></tt><tt class="py-op">,</tt> <tt id="link-213" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-213', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-214" class="py-name"><a title="proton.Link.source" class="py-name" href="#" onclick="return doclink('link-214', 'source', 'link-156');">source</a></tt><tt class="py-op">.</tt><tt id="link-215" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-215', 'address', 'link-77');">address</a></tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-216" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-216', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-217" class="py-name" targets="Variable proton.Endpoint.remote_condition=proton.Endpoint-class.html#remote_condition"><a title="proton.Endpoint.remote_condition" class="py-name" href="#" onclick="return doclink('link-217', 'remote_condition', 'link-217');">remote_condition</a></tt><tt class="py-op">:</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">" due to: %s"</tt> <tt class="py-op">%</tt> <tt id="link-218" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-218', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-219" class="py-name"><a title="proton.Endpoint.remote_condition" class="py-name" href="#" onclick="return doclink('link-219', 'remote_condition', 'link-217');">remote_condition</a></tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-220" class="py-name" targets="Variable proton.Disposition.condition=proton.Disposition-class.html#condition,Variable proton.Transport.condition=proton.Transport-class.html#condition"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-220', 'condition', 'link-220');">condition</a></tt> <tt class="py-op">=</tt> <tt id="link-221" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-221', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-222" class="py-name"><a title="proton.Endpoint.remote_condition" class="py-name" href="#" onclick="return doclink('link-222', 'remote_condition', 'link-217');">remote_condition</a></tt><tt class="py-op">.</tt><tt id="link-223" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-223', 'name', 'link-28');">name</a></tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">" by peer"</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-224" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-224', 'condition', 'link-220');">condition</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt> <tt class="py-line"> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-225" class="py-name"><a title="proton.utils.LinkDetached" class="py-name" href="#" onclick="return doclink('link-225', 'LinkDetached', 'link-46');">LinkDetached</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-226" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-226', '__init__', 'link-70');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L180"></a><tt class="py-lineno">180</tt> <tt class="py-line"> </tt>
<a name="ConnectionClosed"></a><div id="ConnectionClosed-def"><a name="L181"></a><tt class="py-lineno">181</tt> <tt class="py-line"> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt> <a class="py-toggle" href="#" id="ConnectionClosed-toggle" onclick="return toggle('ConnectionClosed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.ConnectionClosed-class.html">ConnectionClosed</a><tt class="py-op">(</tt><tt class="py-base-class">ConnectionException</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ConnectionClosed-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ConnectionClosed-expanded"><a name="ConnectionClosed.__init__"></a><div id="ConnectionClosed.__init__-def"><a name="L183"></a><tt class="py-lineno">183</tt> <a class="py-toggle" href="#" id="ConnectionClosed.__init__-toggle" onclick="return toggle('ConnectionClosed.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.ConnectionClosed-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ConnectionClosed.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ConnectionClosed.__init__-expanded"><a name="L184"></a><tt class="py-lineno">184</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-227" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-227', 'connection', 'link-17');">connection</a></tt> <tt class="py-op">=</tt> <tt id="link-228" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-228', 'connection', 'link-17');">connection</a></tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">"Connection %s closed"</tt> <tt class="py-op">%</tt> <tt id="link-229" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-229', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-230" class="py-name" targets="Variable proton.Connection.hostname=proton.Connection-class.html#hostname"><a title="proton.Connection.hostname" class="py-name" href="#" onclick="return doclink('link-230', 'hostname', 'link-230');">hostname</a></tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-231" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-231', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-232" class="py-name"><a title="proton.Endpoint.remote_condition" class="py-name" href="#" onclick="return doclink('link-232', 'remote_condition', 'link-217');">remote_condition</a></tt><tt class="py-op">:</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">" due to: %s"</tt> <tt class="py-op">%</tt> <tt id="link-233" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-233', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-234" class="py-name"><a title="proton.Endpoint.remote_condition" class="py-name" href="#" onclick="return doclink('link-234', 'remote_condition', 'link-217');">remote_condition</a></tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-235" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-235', 'condition', 'link-220');">condition</a></tt> <tt class="py-op">=</tt> <tt id="link-236" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-236', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-237" class="py-name"><a title="proton.Endpoint.remote_condition" class="py-name" href="#" onclick="return doclink('link-237', 'remote_condition', 'link-217');">remote_condition</a></tt><tt class="py-op">.</tt><tt id="link-238" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-238', 'name', 'link-28');">name</a></tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">" by peer"</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-239" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-239', 'condition', 'link-220');">condition</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt> <tt class="py-line"> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-240" class="py-name"><a title="proton.utils.ConnectionClosed" class="py-name" href="#" onclick="return doclink('link-240', 'ConnectionClosed', 'link-134');">ConnectionClosed</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-241" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-241', '__init__', 'link-70');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L193"></a><tt class="py-lineno">193</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection"></a><div id="BlockingConnection-def"><a name="L194"></a><tt class="py-lineno">194</tt> <tt class="py-line"> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt> <a class="py-toggle" href="#" id="BlockingConnection-toggle" onclick="return toggle('BlockingConnection');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html">BlockingConnection</a><tt class="py-op">(</tt><tt class="py-base-class">Handler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BlockingConnection-expanded"><a name="L196"></a><tt class="py-lineno">196</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt> <tt class="py-line"><tt class="py-docstring"> A synchronous style connection wrapper.</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="BlockingConnection.__init__"></a><div id="BlockingConnection.__init__-def"><a name="L199"></a><tt class="py-lineno">199</tt> <a class="py-toggle" href="#" id="BlockingConnection.__init__-toggle" onclick="return toggle('BlockingConnection.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">url</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">container</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">ssl_domain</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">heartbeat</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.__init__-expanded"><a name="L200"></a><tt class="py-lineno">200</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-242" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-242', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-op">=</tt> <tt id="link-243" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-243', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-keyword">or</tt> <tt class="py-number">60</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-244" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-244', 'container', 'link-124');">container</a></tt> <tt class="py-op">=</tt> <tt id="link-245" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-245', 'container', 'link-124');">container</a></tt> <tt class="py-keyword">or</tt> <tt id="link-246" class="py-name"><a title="proton.reactor.Container" class="py-name" href="#" onclick="return doclink('link-246', 'Container', 'link-12');">Container</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-247" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-247', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-248" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-248', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-249" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-249', 'timeout', 'link-35');">timeout</a></tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-250" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-250', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-251" class="py-name" targets="Method proton.Messenger.start()=proton.Messenger-class.html#start,Method proton.reactor.Reactor.start()=proton.reactor.Reactor-class.html#start"><a title="proton.Messenger.start
proton.reactor.Reactor.start" class="py-name" href="#" onclick="return doclink('link-251', 'start', 'link-251');">start</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">url</tt> <tt class="py-op">=</tt> <tt id="link-252" class="py-name"><a title="proton.Url" class="py-name" href="#" onclick="return doclink('link-252', 'Url', 'link-9');">Url</a></tt><tt class="py-op">(</tt><tt class="py-name">url</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-253" class="py-name" targets="Method proton.Url.defaults()=proton.Url-class.html#defaults"><a title="proton.Url.defaults" class="py-name" href="#" onclick="return doclink('link-253', 'defaults', 'link-253');">defaults</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-254" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-254', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-255" class="py-name" targets="Method proton.reactor.Container.connect()=proton.reactor.Container-class.html#connect"><a title="proton.reactor.Container.connect" class="py-name" href="#" onclick="return doclink('link-255', 'connect', 'link-255');">connect</a></tt><tt class="py-op">(</tt><tt class="py-name">url</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">url</tt><tt class="py-op">,</tt> <tt id="link-256" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-256', 'handler', 'link-175');">handler</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">ssl_domain</tt><tt class="py-op">=</tt><tt class="py-name">ssl_domain</tt><tt class="py-op">,</tt> <tt class="py-name">reconnect</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-name">heartbeat</tt><tt class="py-op">=</tt><tt class="py-name">heartbeat</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">kwargs</tt><tt class="py-op">)</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-257" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-257', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-keyword">not</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">.</tt><tt id="link-258" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-258', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-259" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-259', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-260" class="py-name"><a title="proton.Endpoint.REMOTE_UNINIT" class="py-name" href="#" onclick="return doclink('link-260', 'REMOTE_UNINIT', 'link-26');">REMOTE_UNINIT</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt> <tt class="py-line"> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Opening connection"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L209"></a><tt class="py-lineno">209</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.create_sender"></a><div id="BlockingConnection.create_sender-def"><a name="L210"></a><tt class="py-lineno">210</tt> <a class="py-toggle" href="#" id="BlockingConnection.create_sender-toggle" onclick="return toggle('BlockingConnection.create_sender');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#create_sender">create_sender</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">address</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">options</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.create_sender-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.create_sender-expanded"><a name="L211"></a><tt class="py-lineno">211</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-261" class="py-name"><a title="proton.utils.BlockingSender" class="py-name" href="#" onclick="return doclink('link-261', 'BlockingSender', 'link-69');">BlockingSender</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-262" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-262', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-263" class="py-name" targets="Method proton.reactor.Container.create_sender()=proton.reactor.Container-class.html#create_sender,Method proton.utils.BlockingConnection.create_sender()=proton.utils.BlockingConnection-class.html#create_sender"><a title="proton.reactor.Container.create_sender
proton.utils.BlockingConnection.create_sender" class="py-name" href="#" onclick="return doclink('link-263', 'create_sender', 'link-263');">create_sender</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">,</tt> <tt id="link-264" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-264', 'address', 'link-77');">address</a></tt><tt class="py-op">,</tt> <tt id="link-265" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-265', 'name', 'link-28');">name</a></tt><tt class="py-op">=</tt><tt id="link-266" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-266', 'name', 'link-28');">name</a></tt><tt class="py-op">,</tt> <tt id="link-267" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-267', 'handler', 'link-175');">handler</a></tt><tt class="py-op">=</tt><tt id="link-268" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-268', 'handler', 'link-175');">handler</a></tt><tt class="py-op">,</tt> <tt class="py-name">options</tt><tt class="py-op">=</tt><tt class="py-name">options</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L212"></a><tt class="py-lineno">212</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.create_receiver"></a><div id="BlockingConnection.create_receiver-def"><a name="L213"></a><tt class="py-lineno">213</tt> <a class="py-toggle" href="#" id="BlockingConnection.create_receiver-toggle" onclick="return toggle('BlockingConnection.create_receiver');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#create_receiver">create_receiver</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">address</tt><tt class="py-op">,</tt> <tt class="py-param">credit</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">dynamic</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">handler</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">options</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.create_receiver-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.create_receiver-expanded"><a name="L214"></a><tt class="py-lineno">214</tt> <tt class="py-line"> <tt class="py-name">prefetch</tt> <tt class="py-op">=</tt> <tt id="link-269" class="py-name"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-269', 'credit', 'link-170');">credit</a></tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-270" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-270', 'handler', 'link-175');">handler</a></tt><tt class="py-op">:</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt> <tt class="py-line"> <tt class="py-name">fetcher</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">prefetch</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt> <tt class="py-line"> <tt class="py-name">prefetch</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt> <tt class="py-line"> <tt class="py-name">fetcher</tt> <tt class="py-op">=</tt> <tt id="link-271" class="py-name"><a title="proton.utils.Fetcher" class="py-name" href="#" onclick="return doclink('link-271', 'Fetcher', 'link-115');">Fetcher</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-272" class="py-name"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-272', 'credit', 'link-170');">credit</a></tt><tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-273" class="py-name"><a title="proton.utils.BlockingReceiver" class="py-name" href="#" onclick="return doclink('link-273', 'BlockingReceiver', 'link-151');">BlockingReceiver</a></tt><tt class="py-op">(</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-274" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-274', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-275" class="py-name" targets="Method proton.reactor.Container.create_receiver()=proton.reactor.Container-class.html#create_receiver,Method proton.utils.BlockingConnection.create_receiver()=proton.utils.BlockingConnection-class.html#create_receiver"><a title="proton.reactor.Container.create_receiver
proton.utils.BlockingConnection.create_receiver" class="py-name" href="#" onclick="return doclink('link-275', 'create_receiver', 'link-275');">create_receiver</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">,</tt> <tt id="link-276" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-276', 'address', 'link-77');">address</a></tt><tt class="py-op">,</tt> <tt id="link-277" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-277', 'name', 'link-28');">name</a></tt><tt class="py-op">=</tt><tt id="link-278" class="py-name"><a title="proton.Link.name
proton.Messenger.name" class="py-name" href="#" onclick="return doclink('link-278', 'name', 'link-28');">name</a></tt><tt class="py-op">,</tt> <tt id="link-279" class="py-name" targets="Variable proton.Terminus.dynamic=proton.Terminus-class.html#dynamic"><a title="proton.Terminus.dynamic" class="py-name" href="#" onclick="return doclink('link-279', 'dynamic', 'link-279');">dynamic</a></tt><tt class="py-op">=</tt><tt id="link-280" class="py-name"><a title="proton.Terminus.dynamic" class="py-name" href="#" onclick="return doclink('link-280', 'dynamic', 'link-279');">dynamic</a></tt><tt class="py-op">,</tt> <tt id="link-281" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-281', 'handler', 'link-175');">handler</a></tt><tt class="py-op">=</tt><tt id="link-282" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-282', 'handler', 'link-175');">handler</a></tt> <tt class="py-keyword">or</tt> <tt class="py-name">fetcher</tt><tt class="py-op">,</tt> <tt class="py-name">options</tt><tt class="py-op">=</tt><tt class="py-name">options</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">fetcher</tt><tt class="py-op">,</tt> <tt id="link-283" class="py-name"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-283', 'credit', 'link-170');">credit</a></tt><tt class="py-op">=</tt><tt class="py-name">prefetch</tt><tt class="py-op">)</tt> </tt>
</div><a name="L223"></a><tt class="py-lineno">223</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.close"></a><div id="BlockingConnection.close-def"><a name="L224"></a><tt class="py-lineno">224</tt> <a class="py-toggle" href="#" id="BlockingConnection.close-toggle" onclick="return toggle('BlockingConnection.close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#close">close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.close-expanded"><a name="L225"></a><tt class="py-lineno">225</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">.</tt><tt id="link-284" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-284', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-285" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-285', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt class="py-keyword">lambda</tt><tt class="py-op">:</tt> <tt class="py-keyword">not</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">.</tt><tt id="link-286" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-286', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-287" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-287', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-288" class="py-name"><a title="proton.Endpoint.REMOTE_ACTIVE" class="py-name" href="#" onclick="return doclink('link-288', 'REMOTE_ACTIVE', 'link-55');">REMOTE_ACTIVE</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt> <tt class="py-line"> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Closing connection"</tt><tt class="py-op">)</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-289" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-289', 'container', 'link-124');">container</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L232"></a><tt class="py-lineno">232</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection._is_closed"></a><div id="BlockingConnection._is_closed-def"><a name="L233"></a><tt class="py-lineno">233</tt> <a class="py-toggle" href="#" id="BlockingConnection._is_closed-toggle" onclick="return toggle('BlockingConnection._is_closed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#_is_closed">_is_closed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection._is_closed-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection._is_closed-expanded"><a name="L234"></a><tt class="py-lineno">234</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">.</tt><tt id="link-290" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-290', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt class="py-op">(</tt><tt id="link-291" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-291', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-292" class="py-name" targets="Variable proton.Endpoint.LOCAL_CLOSED=proton.Endpoint-class.html#LOCAL_CLOSED"><a title="proton.Endpoint.LOCAL_CLOSED" class="py-name" href="#" onclick="return doclink('link-292', 'LOCAL_CLOSED', 'link-292');">LOCAL_CLOSED</a></tt> <tt class="py-op">|</tt> <tt id="link-293" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-293', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-294" class="py-name"><a title="proton.Endpoint.REMOTE_CLOSED" class="py-name" href="#" onclick="return doclink('link-294', 'REMOTE_CLOSED', 'link-34');">REMOTE_CLOSED</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L235"></a><tt class="py-lineno">235</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.run"></a><div id="BlockingConnection.run-def"><a name="L236"></a><tt class="py-lineno">236</tt> <a class="py-toggle" href="#" id="BlockingConnection.run-toggle" onclick="return toggle('BlockingConnection.run');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#run">run</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.run-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.run-expanded"><a name="L237"></a><tt class="py-lineno">237</tt> <tt class="py-line"> <tt class="py-docstring">""" Hand control over to the event loop (e.g. if waiting indefinitely for incoming messages) """</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-295" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-295', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-296" class="py-name" targets="Method proton.reactor.Reactor.process()=proton.reactor.Reactor-class.html#process"><a title="proton.reactor.Reactor.process" class="py-name" href="#" onclick="return doclink('link-296', 'process', 'link-296');">process</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L239"></a><tt class="py-lineno">239</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.wait"></a><div id="BlockingConnection.wait-def"><a name="L240"></a><tt class="py-lineno">240</tt> <a class="py-toggle" href="#" id="BlockingConnection.wait-toggle" onclick="return toggle('BlockingConnection.wait');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#wait">wait</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">condition</tt><tt class="py-op">,</tt> <tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-param">msg</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.wait-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.wait-expanded"><a name="L241"></a><tt class="py-lineno">241</tt> <tt class="py-line"> <tt class="py-docstring">"""Call process until condition() is true"""</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-297" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-297', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt> <tt class="py-line"> <tt id="link-298" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-298', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-299" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-299', 'timeout', 'link-35');">timeout</a></tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-300" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-300', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L245"></a><tt class="py-lineno">245</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-keyword">not</tt> <tt id="link-301" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-301', 'condition', 'link-220');">condition</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt><tt class="py-op">:</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-302" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-302', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-303" class="py-name"><a title="proton.reactor.Reactor.process" class="py-name" href="#" onclick="return doclink('link-303', 'process', 'link-296');">process</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt> <tt class="py-line"> <tt class="py-name">container_timeout</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-304" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-304', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-305" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-305', 'timeout', 'link-35');">timeout</a></tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-306" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-306', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-307" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-307', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-op">=</tt> <tt id="link-308" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-308', 'timeout', 'link-35');">timeout</a></tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt> <tt class="py-line"> <tt id="link-309" class="py-name" targets="Variable proton.Messenger.deadline=proton.Messenger-class.html#deadline"><a title="proton.Messenger.deadline" class="py-name" href="#" onclick="return doclink('link-309', 'deadline', 'link-309');">deadline</a></tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt id="link-310" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-310', 'timeout', 'link-35');">timeout</a></tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt> <tt class="py-line"> <tt class="py-keyword">while</tt> <tt class="py-keyword">not</tt> <tt id="link-311" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-311', 'condition', 'link-220');">condition</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt><tt class="py-op">:</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-312" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-312', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-313" class="py-name"><a title="proton.reactor.Reactor.process" class="py-name" href="#" onclick="return doclink('link-313', 'process', 'link-296');">process</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-314" class="py-name"><a title="proton.Messenger.deadline" class="py-name" href="#" onclick="return doclink('link-314', 'deadline', 'link-309');">deadline</a></tt> <tt class="py-op"><</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt> <tt class="py-line"> <tt class="py-name">txt</tt> <tt class="py-op">=</tt> <tt class="py-string">"Connection %s timed out"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">url</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">msg</tt><tt class="py-op">:</tt> <tt class="py-name">txt</tt> <tt class="py-op">+=</tt> <tt class="py-string">": "</tt> <tt class="py-op">+</tt> <tt class="py-name">msg</tt> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-315" class="py-name"><a title="proton.Timeout" class="py-name" href="#" onclick="return doclink('link-315', 'Timeout', 'link-8');">Timeout</a></tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt> <tt class="py-line"> <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-316" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-316', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-317" class="py-name"><a title="proton.Messenger.timeout
proton.Terminus.timeout
proton.reactor.Reactor.timeout" class="py-name" href="#" onclick="return doclink('link-317', 'timeout', 'link-35');">timeout</a></tt> <tt class="py-op">=</tt> <tt class="py-name">container_timeout</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_is_closed</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-318" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-318', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-319" class="py-name" targets="Method proton.Messenger.stop()=proton.Messenger-class.html#stop,Method proton.reactor.Reactor.stop()=proton.reactor.Reactor-class.html#stop"><a title="proton.Messenger.stop
proton.reactor.Reactor.stop" class="py-name" href="#" onclick="return doclink('link-319', 'stop', 'link-319');">stop</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn</tt><tt class="py-op">.</tt><tt id="link-320" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-320', 'handler', 'link-175');">handler</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># break cyclical reference</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_is_closed</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">ConnectionException</tt><tt class="py-op">(</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt> <tt class="py-line"> <tt class="py-string">"Connection %s disconnected: %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">url</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L266"></a><tt class="py-lineno">266</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.on_link_remote_close"></a><div id="BlockingConnection.on_link_remote_close-def"><a name="L267"></a><tt class="py-lineno">267</tt> <a class="py-toggle" href="#" id="BlockingConnection.on_link_remote_close-toggle" onclick="return toggle('BlockingConnection.on_link_remote_close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#on_link_remote_close">on_link_remote_close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.on_link_remote_close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.on_link_remote_close-expanded"><a name="L268"></a><tt class="py-lineno">268</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-321" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-321', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-322" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-322', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-323" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-323', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-324" class="py-name"><a title="proton.Endpoint.LOCAL_ACTIVE" class="py-name" href="#" onclick="return doclink('link-324', 'LOCAL_ACTIVE', 'link-129');">LOCAL_ACTIVE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt> <tt class="py-line"> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-325" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-325', 'link', 'link-19');">link</a></tt><tt class="py-op">.</tt><tt id="link-326" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-326', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-327" class="py-name"><a title="proton.utils.LinkDetached" class="py-name" href="#" onclick="return doclink('link-327', 'LinkDetached', 'link-46');">LinkDetached</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-328" class="py-name"><a title="proton.Delivery.link
proton.Event.link" class="py-name" href="#" onclick="return doclink('link-328', 'link', 'link-19');">link</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L271"></a><tt class="py-lineno">271</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.on_connection_remote_close"></a><div id="BlockingConnection.on_connection_remote_close-def"><a name="L272"></a><tt class="py-lineno">272</tt> <a class="py-toggle" href="#" id="BlockingConnection.on_connection_remote_close-toggle" onclick="return toggle('BlockingConnection.on_connection_remote_close');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#on_connection_remote_close">on_connection_remote_close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.on_connection_remote_close-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.on_connection_remote_close-expanded"><a name="L273"></a><tt class="py-lineno">273</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-329" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-329', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-330" class="py-name"><a title="proton.Connection.state
proton.Link.state
proton.Session.state" class="py-name" href="#" onclick="return doclink('link-330', 'state', 'link-24');">state</a></tt> <tt class="py-op">&</tt> <tt id="link-331" class="py-name"><a title="proton.Endpoint" class="py-name" href="#" onclick="return doclink('link-331', 'Endpoint', 'link-2');">Endpoint</a></tt><tt class="py-op">.</tt><tt id="link-332" class="py-name"><a title="proton.Endpoint.LOCAL_ACTIVE" class="py-name" href="#" onclick="return doclink('link-332', 'LOCAL_ACTIVE', 'link-129');">LOCAL_ACTIVE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt> <tt class="py-line"> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-333" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-333', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-334" class="py-name"><a title="proton.Connection.close
proton.Link.close
proton.Session.close
proton.reactor.Acceptor.close
proton.reactor.EventInjector.close
proton.utils.BlockingConnection.close
proton.utils.BlockingLink.close" class="py-name" href="#" onclick="return doclink('link-334', 'close', 'link-45');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-335" class="py-name"><a title="proton.utils.ConnectionClosed" class="py-name" href="#" onclick="return doclink('link-335', 'ConnectionClosed', 'link-134');">ConnectionClosed</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-336" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-336', 'connection', 'link-17');">connection</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L276"></a><tt class="py-lineno">276</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.on_transport_tail_closed"></a><div id="BlockingConnection.on_transport_tail_closed-def"><a name="L277"></a><tt class="py-lineno">277</tt> <a class="py-toggle" href="#" id="BlockingConnection.on_transport_tail_closed-toggle" onclick="return toggle('BlockingConnection.on_transport_tail_closed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#on_transport_tail_closed">on_transport_tail_closed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.on_transport_tail_closed-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.on_transport_tail_closed-expanded"><a name="L278"></a><tt class="py-lineno">278</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-337" class="py-name" targets="Method proton.handlers.EndpointStateHandler.on_transport_closed()=proton.handlers.EndpointStateHandler-class.html#on_transport_closed,Method proton.reactor.Connector.on_transport_closed()=proton.reactor.Connector-class.html#on_transport_closed,Method proton.utils.BlockingConnection.on_transport_closed()=proton.utils.BlockingConnection-class.html#on_transport_closed"><a title="proton.handlers.EndpointStateHandler.on_transport_closed
proton.reactor.Connector.on_transport_closed
proton.utils.BlockingConnection.on_transport_closed" class="py-name" href="#" onclick="return doclink('link-337', 'on_transport_closed', 'link-337');">on_transport_closed</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">)</tt> </tt>
</div><a name="L279"></a><tt class="py-lineno">279</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.on_transport_head_closed"></a><div id="BlockingConnection.on_transport_head_closed-def"><a name="L280"></a><tt class="py-lineno">280</tt> <a class="py-toggle" href="#" id="BlockingConnection.on_transport_head_closed-toggle" onclick="return toggle('BlockingConnection.on_transport_head_closed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#on_transport_head_closed">on_transport_head_closed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.on_transport_head_closed-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.on_transport_head_closed-expanded"><a name="L281"></a><tt class="py-lineno">281</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-338" class="py-name"><a title="proton.handlers.EndpointStateHandler.on_transport_closed
proton.reactor.Connector.on_transport_closed
proton.utils.BlockingConnection.on_transport_closed" class="py-name" href="#" onclick="return doclink('link-338', 'on_transport_closed', 'link-337');">on_transport_closed</a></tt><tt class="py-op">(</tt><tt class="py-name">event</tt><tt class="py-op">)</tt> </tt>
</div><a name="L282"></a><tt class="py-lineno">282</tt> <tt class="py-line"> </tt>
<a name="BlockingConnection.on_transport_closed"></a><div id="BlockingConnection.on_transport_closed-def"><a name="L283"></a><tt class="py-lineno">283</tt> <a class="py-toggle" href="#" id="BlockingConnection.on_transport_closed-toggle" onclick="return toggle('BlockingConnection.on_transport_closed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.BlockingConnection-class.html#on_transport_closed">on_transport_closed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BlockingConnection.on_transport_closed-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BlockingConnection.on_transport_closed-expanded"><a name="L284"></a><tt class="py-lineno">284</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">disconnected</tt> <tt class="py-op">=</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt id="link-339" class="py-name" targets="Variable proton.Connection.transport=proton.Connection-class.html#transport,Variable proton.Delivery.transport=proton.Delivery-class.html#transport,Variable proton.Endpoint.transport=proton.Endpoint-class.html#transport,Variable proton.Event.transport=proton.Event-class.html#transport"><a title="proton.Connection.transport
proton.Delivery.transport
proton.Endpoint.transport
proton.Event.transport" class="py-name" href="#" onclick="return doclink('link-339', 'transport', 'link-339');">transport</a></tt><tt class="py-op">.</tt><tt id="link-340" class="py-name"><a title="proton.Disposition.condition
proton.Transport.condition" class="py-name" href="#" onclick="return doclink('link-340', 'condition', 'link-220');">condition</a></tt> <tt class="py-keyword">or</tt> <tt class="py-string">"unknown"</tt> </tt>
</div></div><a name="L285"></a><tt class="py-lineno">285</tt> <tt class="py-line"> </tt>
<a name="AtomicCount"></a><div id="AtomicCount-def"><a name="L286"></a><tt class="py-lineno">286</tt> <a class="py-toggle" href="#" id="AtomicCount-toggle" onclick="return toggle('AtomicCount');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.AtomicCount-class.html">AtomicCount</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AtomicCount-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="AtomicCount-expanded"><a name="AtomicCount.__init__"></a><div id="AtomicCount.__init__-def"><a name="L287"></a><tt class="py-lineno">287</tt> <a class="py-toggle" href="#" id="AtomicCount.__init__-toggle" onclick="return toggle('AtomicCount.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.AtomicCount-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">start</tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-param">step</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AtomicCount.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AtomicCount.__init__-expanded"><a name="L288"></a><tt class="py-lineno">288</tt> <tt class="py-line"> <tt class="py-docstring">"""Thread-safe atomic counter. Start at start, increment by step."""</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">count</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">step</tt> <tt class="py-op">=</tt> <tt id="link-341" class="py-name"><a title="proton.Messenger.start
proton.reactor.Reactor.start" class="py-name" href="#" onclick="return doclink('link-341', 'start', 'link-251');">start</a></tt><tt class="py-op">,</tt> <tt class="py-name">step</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lock</tt> <tt class="py-op">=</tt> <tt class="py-name">threading</tt><tt class="py-op">.</tt><tt class="py-name">Lock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L291"></a><tt class="py-lineno">291</tt> <tt class="py-line"> </tt>
<a name="AtomicCount.next"></a><div id="AtomicCount.next-def"><a name="L292"></a><tt class="py-lineno">292</tt> <a class="py-toggle" href="#" id="AtomicCount.next-toggle" onclick="return toggle('AtomicCount.next');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.AtomicCount-class.html#next">next</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AtomicCount.next-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="AtomicCount.next-expanded"><a name="L293"></a><tt class="py-lineno">293</tt> <tt class="py-line"> <tt class="py-docstring">"""Get the next value"""</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lock</tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">count</tt> <tt class="py-op">+=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">step</tt><tt class="py-op">;</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt> <tt class="py-line"> <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">count</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lock</tt><tt class="py-op">.</tt><tt id="link-342" class="py-name" targets="Method proton.handlers.Acking.release()=proton.handlers.Acking-class.html#release,Method proton.utils.BlockingReceiver.release()=proton.utils.BlockingReceiver-class.html#release"><a title="proton.handlers.Acking.release
proton.utils.BlockingReceiver.release" class="py-name" href="#" onclick="return doclink('link-342', 'release', 'link-342');">release</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div></div><a name="L299"></a><tt class="py-lineno">299</tt> <tt class="py-line"> </tt>
<a name="SyncRequestResponse"></a><div id="SyncRequestResponse-def"><a name="L300"></a><tt class="py-lineno">300</tt> <a class="py-toggle" href="#" id="SyncRequestResponse-toggle" onclick="return toggle('SyncRequestResponse');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="proton.utils.SyncRequestResponse-class.html">SyncRequestResponse</a><tt class="py-op">(</tt><tt class="py-base-class">IncomingMessageHandler</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SyncRequestResponse-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SyncRequestResponse-expanded"><a name="L301"></a><tt class="py-lineno">301</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt> <tt class="py-line"><tt class="py-docstring"> Implementation of the synchronous request-responce (aka RPC) pattern.</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt> <tt class="py-line"><tt class="py-docstring"> @ivar address: Address for all requests, may be None.</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt> <tt class="py-line"><tt class="py-docstring"> @ivar connection: Connection for requests and responses.</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L306"></a><tt class="py-lineno">306</tt> <tt class="py-line"> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt> <tt class="py-line"> <tt id="link-343" class="py-name" targets="Variable proton.Message.correlation_id=proton.Message-class.html#correlation_id,Variable proton.utils.SyncRequestResponse.correlation_id=proton.utils.SyncRequestResponse-class.html#correlation_id"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-343', 'correlation_id', 'link-343');">correlation_id</a></tt> <tt class="py-op">=</tt> <tt id="link-344" class="py-name" targets="Class proton.utils.AtomicCount=proton.utils.AtomicCount-class.html"><a title="proton.utils.AtomicCount" class="py-name" href="#" onclick="return doclink('link-344', 'AtomicCount', 'link-344');">AtomicCount</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt> <tt class="py-line"> </tt>
<a name="SyncRequestResponse.__init__"></a><div id="SyncRequestResponse.__init__-def"><a name="L309"></a><tt class="py-lineno">309</tt> <a class="py-toggle" href="#" id="SyncRequestResponse.__init__-toggle" onclick="return toggle('SyncRequestResponse.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.SyncRequestResponse-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">connection</tt><tt class="py-op">,</tt> <tt class="py-param">address</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SyncRequestResponse.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SyncRequestResponse.__init__-expanded"><a name="L310"></a><tt class="py-lineno">310</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt> <tt class="py-line"><tt class="py-docstring"> Send requests and receive responses. A single instance can send many requests</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt> <tt class="py-line"><tt class="py-docstring"> to the same or different addresses.</tt> </tt>
<a name="L313"></a><tt class="py-lineno">313</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt> <tt class="py-line"><tt class="py-docstring"> @param connection: A L{BlockingConnection}</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt> <tt class="py-line"><tt class="py-docstring"> @param address: Address for all requests.</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt> <tt class="py-line"><tt class="py-docstring"> If not specified, each request must have the address property set.</tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt> <tt class="py-line"><tt class="py-docstring"> Sucessive messages may have different addresses.</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt> <tt class="py-line"> <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-345" class="py-name" targets="Class proton.utils.SyncRequestResponse=proton.utils.SyncRequestResponse-class.html"><a title="proton.utils.SyncRequestResponse" class="py-name" href="#" onclick="return doclink('link-345', 'SyncRequestResponse', 'link-345');">SyncRequestResponse</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-346" class="py-name"><a title="proton.Array.__init__
proton.Collector.__init__
proton.Condition.__init__
proton.Connection.__init__
proton.Data.__init__
proton.Delivery.__init__
proton.Described.__init__
proton.Disposition.__init__
proton.Event.__init__
proton.EventType.__init__
proton.Link.__init__
proton.Message.__init__
proton.Messenger.__init__
proton.SASL.__init__
proton.SSLDomain.__init__
proton.SSLSessionDetails.__init__
proton.Session.__init__
proton.Terminus.__init__
proton.Transport.__init__
proton.Url.PartDescriptor.__init__
proton.Url.__init__
proton.handlers.CFlowController.__init__
proton.handlers.CHandshaker.__init__
proton.handlers.EndpointStateHandler.__init__
proton.handlers.IOHandler.__init__
proton.handlers.IncomingMessageHandler.__init__
proton.handlers.MessagingHandler.__init__
proton.handlers.OutgoingMessageHandler.__init__
proton.handlers.PythonIO.__init__
proton.handlers.TransactionalClientHandler.__init__
proton.reactor.Acceptor.__init__
proton.reactor.ApplicationEvent.__init__
proton.reactor.Backoff.__init__
proton.reactor.Connector.__init__
proton.reactor.Container.__init__
proton.reactor.DynamicNodeProperties.__init__
proton.reactor.EventInjector.__init__
proton.reactor.Filter.__init__
proton.reactor.GlobalOverrides.__init__
proton.reactor.Reactor.__init__
proton.reactor.SSLConfig.__init__
proton.reactor.Selector.__init__
proton.reactor.SessionPerConnection.__init__
proton.reactor.Task.__init__
proton.reactor.Transaction.__init__
proton.reactor.Urls.__init__
proton.utils.AtomicCount.__init__
proton.utils.BlockingConnection.__init__
proton.utils.BlockingLink.__init__
proton.utils.BlockingReceiver.__init__
proton.utils.BlockingSender.__init__
proton.utils.ConnectionClosed.__init__
proton.utils.Fetcher.__init__
proton.utils.LinkDetached.__init__
proton.utils.SendException.__init__
proton.utils.SyncRequestResponse.__init__
proton.wrapper.Wrapper.__init__" class="py-name" href="#" onclick="return doclink('link-346', '__init__', 'link-70');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-347" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-347', 'connection', 'link-17');">connection</a></tt> <tt class="py-op">=</tt> <tt id="link-348" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-348', 'connection', 'link-17');">connection</a></tt> </tt>
<a name="L321"></a><tt class="py-lineno">321</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-349" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-349', 'address', 'link-77');">address</a></tt> <tt class="py-op">=</tt> <tt id="link-350" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-350', 'address', 'link-77');">address</a></tt> </tt>
<a name="L322"></a><tt class="py-lineno">322</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-351" class="py-name"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-351', 'sender', 'link-72');">sender</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-352" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-352', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-353" class="py-name"><a title="proton.reactor.Container.create_sender
proton.utils.BlockingConnection.create_sender" class="py-name" href="#" onclick="return doclink('link-353', 'create_sender', 'link-263');">create_sender</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-354" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-354', 'address', 'link-77');">address</a></tt><tt class="py-op">)</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt> <tt class="py-line"> <tt class="py-comment"># dynamic=true generates a unique address dynamically for this receiver.</tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt> <tt class="py-line"> <tt class="py-comment"># credit=1 because we want to receive 1 response message initially.</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-355" class="py-name"><a title="proton.Event.receiver
proton.Session.receiver" class="py-name" href="#" onclick="return doclink('link-355', 'receiver', 'link-154');">receiver</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-356" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-356', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-357" class="py-name"><a title="proton.reactor.Container.create_receiver
proton.utils.BlockingConnection.create_receiver" class="py-name" href="#" onclick="return doclink('link-357', 'create_receiver', 'link-275');">create_receiver</a></tt><tt class="py-op">(</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt id="link-358" class="py-name"><a title="proton.Terminus.dynamic" class="py-name" href="#" onclick="return doclink('link-358', 'dynamic', 'link-279');">dynamic</a></tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt id="link-359" class="py-name"><a title="proton.Link.credit" class="py-name" href="#" onclick="return doclink('link-359', 'credit', 'link-170');">credit</a></tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt id="link-360" class="py-name"><a title="proton.Endpoint.handler
proton.reactor.Reactor.handler" class="py-name" href="#" onclick="return doclink('link-360', 'handler', 'link-175');">handler</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L326"></a><tt class="py-lineno">326</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L327"></a><tt class="py-lineno">327</tt> <tt class="py-line"> </tt>
<a name="SyncRequestResponse.call"></a><div id="SyncRequestResponse.call-def"><a name="L328"></a><tt class="py-lineno">328</tt> <a class="py-toggle" href="#" id="SyncRequestResponse.call-toggle" onclick="return toggle('SyncRequestResponse.call');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.SyncRequestResponse-class.html#call">call</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">request</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SyncRequestResponse.call-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SyncRequestResponse.call-expanded"><a name="L329"></a><tt class="py-lineno">329</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt> <tt class="py-line"><tt class="py-docstring"> Send a request message, wait for and return the response message.</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt> <tt class="py-line"><tt class="py-docstring"> @param request: A L{proton.Message}. If L{self.address} is not set the </tt> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt> <tt class="py-line"><tt class="py-docstring"> L{self.address} must be set and will be used.</tt> </tt>
<a name="L334"></a><tt class="py-lineno">334</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-361" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-361', 'address', 'link-77');">address</a></tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">request</tt><tt class="py-op">.</tt><tt id="link-362" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-362', 'address', 'link-77');">address</a></tt><tt class="py-op">:</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt class="py-name">ValueError</tt><tt class="py-op">(</tt><tt class="py-string">"Request message has no address: %s"</tt> <tt class="py-op">%</tt> <tt class="py-name">request</tt><tt class="py-op">)</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt> <tt class="py-line"> <tt class="py-name">request</tt><tt class="py-op">.</tt><tt id="link-363" class="py-name" targets="Variable proton.Message.reply_to=proton.Message-class.html#reply_to,Variable proton.utils.SyncRequestResponse.reply_to=proton.utils.SyncRequestResponse-class.html#reply_to"><a title="proton.Message.reply_to
proton.utils.SyncRequestResponse.reply_to" class="py-name" href="#" onclick="return doclink('link-363', 'reply_to', 'link-363');">reply_to</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-364" class="py-name"><a title="proton.Message.reply_to
proton.utils.SyncRequestResponse.reply_to" class="py-name" href="#" onclick="return doclink('link-364', 'reply_to', 'link-363');">reply_to</a></tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt> <tt class="py-line"> <tt class="py-name">request</tt><tt class="py-op">.</tt><tt id="link-365" class="py-name"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-365', 'correlation_id', 'link-343');">correlation_id</a></tt> <tt class="py-op">=</tt> <tt id="link-366" class="py-name"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-366', 'correlation_id', 'link-343');">correlation_id</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-367" class="py-name"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-367', 'correlation_id', 'link-343');">correlation_id</a></tt><tt class="py-op">.</tt><tt id="link-368" class="py-name" targets="Method proton.Data.next()=proton.Data-class.html#next,Method proton.Link.next()=proton.Link-class.html#next,Method proton.Session.next()=proton.Session-class.html#next,Method proton.reactor.Backoff.next()=proton.reactor.Backoff-class.html#next,Method proton.reactor.Urls.next()=proton.reactor.Urls-class.html#next,Method proton.utils.AtomicCount.next()=proton.utils.AtomicCount-class.html#next"><a title="proton.Data.next
proton.Link.next
proton.Session.next
proton.reactor.Backoff.next
proton.reactor.Urls.next
proton.utils.AtomicCount.next" class="py-name" href="#" onclick="return doclink('link-368', 'next', 'link-368');">next</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-369" class="py-name"><a title="proton.Event.sender
proton.Session.sender" class="py-name" href="#" onclick="return doclink('link-369', 'sender', 'link-72');">sender</a></tt><tt class="py-op">.</tt><tt id="link-370" class="py-name"><a title="proton.Message.send
proton.Messenger.send
proton.Sender.send
proton.reactor.Transaction.send
proton.utils.BlockingSender.send" class="py-name" href="#" onclick="return doclink('link-370', 'send', 'link-90');">send</a></tt><tt class="py-op">(</tt><tt class="py-name">request</tt><tt class="py-op">)</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt> <tt class="py-line"> <tt class="py-keyword">def</tt> <tt class="py-def-name">wakeup</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L341"></a><tt class="py-lineno">341</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt><tt class="py-op">.</tt><tt id="link-371" class="py-name"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-371', 'correlation_id', 'link-343');">correlation_id</a></tt> <tt class="py-op">==</tt> <tt id="link-372" class="py-name"><a title="proton.Message.correlation_id
proton.utils.SyncRequestResponse.correlation_id" class="py-name" href="#" onclick="return doclink('link-372', 'correlation_id', 'link-343');">correlation_id</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L342"></a><tt class="py-lineno">342</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-373" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-373', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-374" class="py-name"><a title="proton.utils.BlockingConnection.wait" class="py-name" href="#" onclick="return doclink('link-374', 'wait', 'link-22');">wait</a></tt><tt class="py-op">(</tt><tt id="link-375" class="py-name" targets="Method proton.reactor.Reactor.wakeup()=proton.reactor.Reactor-class.html#wakeup"><a title="proton.reactor.Reactor.wakeup" class="py-name" href="#" onclick="return doclink('link-375', 'wakeup', 'link-375');">wakeup</a></tt><tt class="py-op">,</tt> <tt class="py-name">msg</tt><tt class="py-op">=</tt><tt class="py-string">"Waiting for response"</tt><tt class="py-op">)</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt> <tt class="py-line"> <tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> <tt class="py-comment"># Ready for next response.</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-376" class="py-name"><a title="proton.Event.receiver
proton.Session.receiver" class="py-name" href="#" onclick="return doclink('link-376', 'receiver', 'link-154');">receiver</a></tt><tt class="py-op">.</tt><tt id="link-377" class="py-name"><a title="proton.Receiver.flow" class="py-name" href="#" onclick="return doclink('link-377', 'flow', 'link-172');">flow</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> <tt class="py-comment"># Set up credit for the next response.</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">response</tt> </tt>
</div><a name="L347"></a><tt class="py-lineno">347</tt> <tt class="py-line"> </tt>
<a name="L348"></a><tt class="py-lineno">348</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
<a name="SyncRequestResponse.reply_to"></a><div id="SyncRequestResponse.reply_to-def"><a name="L349"></a><tt class="py-lineno">349</tt> <a class="py-toggle" href="#" id="SyncRequestResponse.reply_to-toggle" onclick="return toggle('SyncRequestResponse.reply_to');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.SyncRequestResponse-class.html#reply_to">reply_to</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SyncRequestResponse.reply_to-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SyncRequestResponse.reply_to-expanded"><a name="L350"></a><tt class="py-lineno">350</tt> <tt class="py-line"> <tt class="py-docstring">"""Return the dynamic address of our receiver."""</tt> </tt>
<a name="L351"></a><tt class="py-lineno">351</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-378" class="py-name"><a title="proton.Event.receiver
proton.Session.receiver" class="py-name" href="#" onclick="return doclink('link-378', 'receiver', 'link-154');">receiver</a></tt><tt class="py-op">.</tt><tt id="link-379" class="py-name"><a title="proton.Link.remote_source" class="py-name" href="#" onclick="return doclink('link-379', 'remote_source', 'link-164');">remote_source</a></tt><tt class="py-op">.</tt><tt id="link-380" class="py-name"><a title="proton.Message.address
proton.Terminus.address" class="py-name" href="#" onclick="return doclink('link-380', 'address', 'link-77');">address</a></tt> </tt>
</div><a name="L352"></a><tt class="py-lineno">352</tt> <tt class="py-line"> </tt>
<a name="SyncRequestResponse.on_message"></a><div id="SyncRequestResponse.on_message-def"><a name="L353"></a><tt class="py-lineno">353</tt> <a class="py-toggle" href="#" id="SyncRequestResponse.on_message-toggle" onclick="return toggle('SyncRequestResponse.on_message');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="proton.utils.SyncRequestResponse-class.html#on_message">on_message</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">event</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SyncRequestResponse.on_message-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SyncRequestResponse.on_message-expanded"><a name="L354"></a><tt class="py-lineno">354</tt> <tt class="py-line"> <tt class="py-docstring">"""Called when we receive a message for our receiver."""</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">event</tt><tt class="py-op">.</tt><tt class="py-name">message</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-381" class="py-name"><a title="proton.Connection.connection
proton.Delivery.connection
proton.Event.connection
proton.Link.connection
proton.Session.connection
proton.Transport.connection
proton.reactor.Reactor.connection" class="py-name" href="#" onclick="return doclink('link-381', 'connection', 'link-17');">connection</a></tt><tt class="py-op">.</tt><tt id="link-382" class="py-name"><a title="proton.Connection.container" class="py-name" href="#" onclick="return doclink('link-382', 'container', 'link-124');">container</a></tt><tt class="py-op">.</tt><tt id="link-383" class="py-name"><a title="proton.reactor.Reactor.yield_" class="py-name" href="#" onclick="return doclink('link-383', 'yield_', 'link-125');">yield_</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-comment"># Wake up the wait() loop to handle the message.</tt> </tt>
</div></div><a name="L357"></a><tt class="py-lineno">357</tt> <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="proton-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="left" class="footer">
Generated by Epydoc 3.0.1
on Sun Feb 4 22:16:50 2018
</td>
<td align="right" class="footer">
<a target="mainFrame" href="http://epydoc.sourceforge.net"
>http://epydoc.sourceforge.net</a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
// Private objects are initially displayed (because if
// javascript is turned off then we want them to be
// visible); but by default, we want to hide them. So hide
// them unless we have a cookie that says to show them.
checkCookie();
// -->
</script>
</body>
</html>
|