| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>ReactorImpl (Qpid Proton-J API)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ReactorImpl (Qpid Proton-J API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/apache/qpid/proton/reactor/impl/IOImpl.html" title="class in org.apache.qpid.proton.reactor.impl"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/qpid/proton/reactor/impl/SelectableImpl.html" title="class in org.apache.qpid.proton.reactor.impl"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/qpid/proton/reactor/impl/ReactorImpl.html" target="_top">Frames</a></li> |
| <li><a href="ReactorImpl.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.qpid.proton.reactor.impl</div> |
| <h2 title="Class ReactorImpl" class="title">Class ReactorImpl</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.qpid.proton.reactor.impl.ReactorImpl</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../../../org/apache/qpid/proton/engine/Extendable.html" title="interface in org.apache.qpid.proton.engine">Extendable</a>, <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">ReactorImpl</span> |
| extends java.lang.Object |
| implements <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a>, <a href="../../../../../../org/apache/qpid/proton/engine/Extendable.html" title="interface in org.apache.qpid.proton.engine">Extendable</a></pre> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.qpid.proton.reactor.Reactor"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.apache.qpid.proton.reactor.<a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></h3> |
| <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.Factory.html" title="class in org.apache.qpid.proton.reactor">Reactor.Factory</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected static java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#CONNECTION_PEER_ADDRESS_KEY">CONNECTION_PEER_ADDRESS_KEY</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../../org/apache/qpid/proton/engine/ExtendableAccessor.html" title="class in org.apache.qpid.proton.engine">ExtendableAccessor</a><<a href="../../../../../../org/apache/qpid/proton/engine/Event.html" title="interface in org.apache.qpid.proton.engine">Event</a>,<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#ROOT">ROOT</a></span></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier</th> |
| <th class="colLast" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code> </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#ReactorImpl--">ReactorImpl</a></span>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#ReactorImpl-org.apache.qpid.proton.reactor.impl.IO-">ReactorImpl</a></span>(<a href="../../../../../../org/apache/qpid/proton/reactor/impl/IO.html" title="interface in org.apache.qpid.proton.reactor.impl">IO</a> io)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#ReactorImpl-org.apache.qpid.proton.reactor.impl.IO-org.apache.qpid.proton.reactor.ReactorOptions-">ReactorImpl</a></span>(<a href="../../../../../../org/apache/qpid/proton/reactor/impl/IO.html" title="interface in org.apache.qpid.proton.reactor.impl">IO</a> io, |
| <a href="../../../../../../org/apache/qpid/proton/reactor/ReactorOptions.html" title="class in org.apache.qpid.proton.reactor">ReactorOptions</a> options)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code> </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#ReactorImpl-org.apache.qpid.proton.reactor.ReactorOptions-">ReactorImpl</a></span>(<a href="../../../../../../org/apache/qpid/proton/reactor/ReactorOptions.html" title="class in org.apache.qpid.proton.reactor">ReactorOptions</a> options)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/Acceptor.html" title="interface in org.apache.qpid.proton.reactor">Acceptor</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#acceptor-java.lang.String-int-">acceptor</a></span>(java.lang.String host, |
| int port)</code> |
| <div class="block">Creates a new acceptor.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/Acceptor.html" title="interface in org.apache.qpid.proton.reactor">Acceptor</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#acceptor-java.lang.String-int-org.apache.qpid.proton.engine.Handler-">acceptor</a></span>(java.lang.String host, |
| int port, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</code> |
| <div class="block">Creates a new acceptor.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/engine/Record.html" title="interface in org.apache.qpid.proton.engine">Record</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#attachments--">attachments</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>java.util.Set<<a href="../../../../../../org/apache/qpid/proton/reactor/ReactorChild.html" title="interface in org.apache.qpid.proton.reactor">ReactorChild</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#children--">children</a></span>()</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/engine/Collector.html" title="interface in org.apache.qpid.proton.engine">Collector</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#collector--">collector</a></span>()</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#connection-org.apache.qpid.proton.engine.Handler-">connection</a></span>(<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</code> |
| <div class="block">Creates a new out-bound connection.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#connectionToHost-java.lang.String-int-org.apache.qpid.proton.engine.Handler-">connectionToHost</a></span>(java.lang.String host, |
| int port, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</code> |
| <div class="block">Creates a new out-bound connection to the given host and port.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#free--">free</a></span>()</code> |
| <div class="block">Frees any resources (such as sockets and selectors) held by the reactor |
| or its children.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getConnectionAddress-org.apache.qpid.proton.engine.Connection-">getConnectionAddress</a></span>(<a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a> connection)</code> |
| <div class="block">Get the address used by the connection</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getGlobalHandler--">getGlobalHandler</a></span>()</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getHandler--">getHandler</a></span>()</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/impl/IO.html" title="interface in org.apache.qpid.proton.reactor.impl">IO</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getIO--">getIO</a></span>()</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/ReactorOptions.html" title="class in org.apache.qpid.proton.reactor">ReactorOptions</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getOptions--">getOptions</a></span>()</code> |
| <div class="block">Gets the reactor options.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../../org/apache/qpid/proton/reactor/Selector.html" title="interface in org.apache.qpid.proton.reactor">Selector</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getSelector--">getSelector</a></span>()</code> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#getTimeout--">getTimeout</a></span>()</code> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#mark--">mark</a></span>()</code> |
| <div class="block">Updates the last time that the reactor's state has changed, potentially |
| resulting in events being generated.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#now--">now</a></span>()</code> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#process--">process</a></span>()</code> |
| <div class="block">Process any events pending for this reactor.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#quiesced--">quiesced</a></span>()</code> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#run--">run</a></span>()</code> |
| <div class="block">Simplifies the use of the reactor by wrapping the use of |
| <code>start</code>, <code>run</code>, and <code>stop</code> method |
| calls.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/Task.html" title="interface in org.apache.qpid.proton.reactor">Task</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#schedule-int-org.apache.qpid.proton.engine.Handler-">schedule</a></span>(int delay, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</code> |
| <div class="block">Schedules execution of a task to take place at some point in the future.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/Selectable.html" title="interface in org.apache.qpid.proton.reactor">Selectable</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#selectable--">selectable</a></span>()</code> |
| <div class="block">Creates a new <code>Selectable</code> as a child of this reactor.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/apache/qpid/proton/reactor/impl/SelectableImpl.html" title="class in org.apache.qpid.proton.reactor.impl">SelectableImpl</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#selectable-org.apache.qpid.proton.reactor.ReactorChild-">selectable</a></span>(<a href="../../../../../../org/apache/qpid/proton/reactor/ReactorChild.html" title="interface in org.apache.qpid.proton.reactor">ReactorChild</a> child)</code> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#setConnectionHost-org.apache.qpid.proton.engine.Connection-java.lang.String-int-">setConnectionHost</a></span>(<a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a> connection, |
| java.lang.String host, |
| int port)</code> |
| <div class="block">Set the host address used by the connection</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#setGlobalHandler-org.apache.qpid.proton.engine.Handler-">setGlobalHandler</a></span>(<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</code> |
| <div class="block">Sets a new global handler.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#setHandler-org.apache.qpid.proton.engine.Handler-">setHandler</a></span>(<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</code> |
| <div class="block">Sets a new handler, that will receive any events not handled by a child |
| of the reactor.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#setSelector-org.apache.qpid.proton.reactor.Selector-">setSelector</a></span>(<a href="../../../../../../org/apache/qpid/proton/reactor/Selector.html" title="interface in org.apache.qpid.proton.reactor">Selector</a> selector)</code> </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#setTimeout-long-">setTimeout</a></span>(long timeout)</code> |
| <div class="block">The value the reactor will use for <a href="../../../../../../org/apache/qpid/proton/reactor/Selector.html#select-long-"><code>Selector.select(long)</code></a> that is called as part of <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#start--">start</a></span>()</code> |
| <div class="block">Starts the reactor.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#stop--">stop</a></span>()</code> |
| <div class="block">Stops the reactor.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#update-org.apache.qpid.proton.reactor.Selectable-">update</a></span>(<a href="../../../../../../org/apache/qpid/proton/reactor/Selectable.html" title="interface in org.apache.qpid.proton.reactor">Selectable</a> selectable)</code> |
| <div class="block">Updates the specified <code>Selectable</code> either emitting a |
| <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#SELECTABLE_UPDATED"><code>Event.Type.SELECTABLE_UPDATED</code></a> event if the selectable is not terminal, |
| or <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#SELECTABLE_FINAL"><code>Event.Type.SELECTABLE_FINAL</code></a> if the selectable is terminal and has |
| not already emitted a <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#SELECTABLE_FINAL"><code>Event.Type.SELECTABLE_FINAL</code></a> event.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#wakeup--">wakeup</a></span>()</code> |
| <div class="block">Wakes up the thread (if any) blocked in the <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a> method.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/qpid/proton/reactor/impl/ReactorImpl.html#yield--">yield</a></span>()</code> |
| <div class="block">Yields, causing the next call to <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a> to return |
| successfully - without processing any events.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="ROOT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ROOT</h4> |
| <pre>public static final <a href="../../../../../../org/apache/qpid/proton/engine/ExtendableAccessor.html" title="class in org.apache.qpid.proton.engine">ExtendableAccessor</a><<a href="../../../../../../org/apache/qpid/proton/engine/Event.html" title="interface in org.apache.qpid.proton.engine">Event</a>,<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a>> ROOT</pre> |
| </li> |
| </ul> |
| <a name="CONNECTION_PEER_ADDRESS_KEY"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CONNECTION_PEER_ADDRESS_KEY</h4> |
| <pre>protected static final java.lang.String CONNECTION_PEER_ADDRESS_KEY</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../constant-values.html#org.apache.qpid.proton.reactor.impl.ReactorImpl.CONNECTION_PEER_ADDRESS_KEY">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ReactorImpl-org.apache.qpid.proton.reactor.impl.IO-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ReactorImpl</h4> |
| <pre>protected ReactorImpl(<a href="../../../../../../org/apache/qpid/proton/reactor/impl/IO.html" title="interface in org.apache.qpid.proton.reactor.impl">IO</a> io) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ReactorImpl-org.apache.qpid.proton.reactor.impl.IO-org.apache.qpid.proton.reactor.ReactorOptions-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ReactorImpl</h4> |
| <pre>protected ReactorImpl(<a href="../../../../../../org/apache/qpid/proton/reactor/impl/IO.html" title="interface in org.apache.qpid.proton.reactor.impl">IO</a> io, |
| <a href="../../../../../../org/apache/qpid/proton/reactor/ReactorOptions.html" title="class in org.apache.qpid.proton.reactor">ReactorOptions</a> options) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ReactorImpl--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ReactorImpl</h4> |
| <pre>public ReactorImpl() |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ReactorImpl-org.apache.qpid.proton.reactor.ReactorOptions-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ReactorImpl</h4> |
| <pre>public ReactorImpl(<a href="../../../../../../org/apache/qpid/proton/reactor/ReactorOptions.html" title="class in org.apache.qpid.proton.reactor">ReactorOptions</a> options) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="mark--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mark</h4> |
| <pre>public long mark()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#mark--">Reactor</a></code></span></div> |
| <div class="block">Updates the last time that the reactor's state has changed, potentially |
| resulting in events being generated.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#mark--">mark</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current time in milliseconds |
| <code>System.currentTimeMillis()</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="now--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>now</h4> |
| <pre>public long now()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#now--">now</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the last time that <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#mark--"><code>Reactor.mark()</code></a> was called.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="free--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>free</h4> |
| <pre>public void free()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#free--">Reactor</a></code></span></div> |
| <div class="block">Frees any resources (such as sockets and selectors) held by the reactor |
| or its children.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#free--">free</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="attachments--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>attachments</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/engine/Record.html" title="interface in org.apache.qpid.proton.engine">Record</a> attachments()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/engine/Extendable.html#attachments--">attachments</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/engine/Extendable.html" title="interface in org.apache.qpid.proton.engine">Extendable</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#attachments--">attachments</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an instance of <a href="../../../../../../org/apache/qpid/proton/engine/Record.html" title="interface in org.apache.qpid.proton.engine"><code>Record</code></a> that can be used to associate |
| other objects (attachments) with this instance of the |
| Reactor class.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getOptions--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getOptions</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/ReactorOptions.html" title="class in org.apache.qpid.proton.reactor">ReactorOptions</a> getOptions()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getOptions--">Reactor</a></code></span></div> |
| <div class="block">Gets the reactor options.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getOptions--">getOptions</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the reactor options</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTimeout--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTimeout</h4> |
| <pre>public long getTimeout()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getTimeout--">getTimeout</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value previously set using <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setTimeout-long-"><code>Reactor.setTimeout(long)</code></a> or |
| 0 if no previous value has been set.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setTimeout-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setTimeout</h4> |
| <pre>public void setTimeout(long timeout)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setTimeout-long-">Reactor</a></code></span></div> |
| <div class="block">The value the reactor will use for <a href="../../../../../../org/apache/qpid/proton/reactor/Selector.html#select-long-"><code>Selector.select(long)</code></a> that is called as part of <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setTimeout-long-">setTimeout</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>timeout</code> - a timeout value in milliseconds, to associate with this instance of |
| the reactor. This can be retrieved using the |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getTimeout--"><code>Reactor.getTimeout()</code></a> method</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getGlobalHandler--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getGlobalHandler</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> getGlobalHandler()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getGlobalHandler--">getGlobalHandler</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the global handler for this reactor. Every event the reactor |
| sees is dispatched to the global handler. To receive every |
| event generated by the reactor, associate a child handler |
| with the global handler. For example: |
| <pre> |
| getGlobalHandler().add(yourHandler); |
| </pre></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setGlobalHandler-org.apache.qpid.proton.engine.Handler-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setGlobalHandler</h4> |
| <pre>public void setGlobalHandler(<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setGlobalHandler-org.apache.qpid.proton.engine.Handler-">Reactor</a></code></span></div> |
| <div class="block">Sets a new global handler. You probably don't want to do this and |
| would be better adding a handler to the value returned by the |
| {<a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getGlobalHandler--"><code>Reactor.getGlobalHandler()</code></a> method.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setGlobalHandler-org.apache.qpid.proton.engine.Handler-">setGlobalHandler</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>handler</code> - the new global handler.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHandler--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHandler</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> getHandler()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getHandler--">getHandler</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the handler for this reactor. Every event the reactor sees, |
| which is not handled by a child of the reactor (such as a |
| timer, connection, acceptor, or selector) is passed to this |
| handler. To receive these events, it is recommend that you |
| associate a child handler with the handler returned by this |
| method. For example: |
| <pre> |
| getHandler().add(yourHandler); |
| </pre></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setHandler-org.apache.qpid.proton.engine.Handler-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setHandler</h4> |
| <pre>public void setHandler(<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setHandler-org.apache.qpid.proton.engine.Handler-">Reactor</a></code></span></div> |
| <div class="block">Sets a new handler, that will receive any events not handled by a child |
| of the reactor. Note that setting a handler via this method replaces |
| the previous handler, and will result in no further events being |
| dispatched to the child handlers associated with the previous handler. |
| For this reason it is recommended that you do not use this method and |
| instead add child handlers to the value returned by the |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getHandler--"><code>Reactor.getHandler()</code></a> method.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setHandler-org.apache.qpid.proton.engine.Handler-">setHandler</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>handler</code> - the new handler for this reactor.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="children--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>children</h4> |
| <pre>public java.util.Set<<a href="../../../../../../org/apache/qpid/proton/reactor/ReactorChild.html" title="interface in org.apache.qpid.proton.reactor">ReactorChild</a>> children()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#children--">children</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a set containing the child objects associated with this reactor. |
| This will contain any active instances of: <a href="../../../../../../org/apache/qpid/proton/reactor/Task.html" title="interface in org.apache.qpid.proton.reactor"><code>Task</code></a> - |
| created using the <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#schedule-int-org.apache.qpid.proton.engine.Handler-"><code>Reactor.schedule(int, Handler)</code></a> method, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine"><code>Connection</code></a> - created using the |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#connectionToHost-java.lang.String-int-org.apache.qpid.proton.engine.Handler-"><code>Reactor.connectionToHost(String, int, Handler)</code></a> method, |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Acceptor.html" title="interface in org.apache.qpid.proton.reactor"><code>Acceptor</code></a> - created using the |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#acceptor-java.lang.String-int-"><code>Reactor.acceptor(String, int)</code></a> method, |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#acceptor-java.lang.String-int-org.apache.qpid.proton.engine.Handler-"><code>Reactor.acceptor(String, int, Handler)</code></a> method, or |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Selectable.html" title="interface in org.apache.qpid.proton.reactor"><code>Selectable</code></a> - created using the |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#selectable--"><code>Reactor.selectable()</code></a> method.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="collector--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>collector</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/engine/Collector.html" title="interface in org.apache.qpid.proton.engine">Collector</a> collector()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#collector--">collector</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the Collector used to gather events generated by this reactor.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="selectable--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selectable</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/Selectable.html" title="interface in org.apache.qpid.proton.reactor">Selectable</a> selectable()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#selectable--">Reactor</a></code></span></div> |
| <div class="block">Creates a new <code>Selectable</code> as a child of this reactor.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#selectable--">selectable</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the newly created <code>Selectable</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="selectable-org.apache.qpid.proton.reactor.ReactorChild-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>selectable</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/impl/SelectableImpl.html" title="class in org.apache.qpid.proton.reactor.impl">SelectableImpl</a> selectable(<a href="../../../../../../org/apache/qpid/proton/reactor/ReactorChild.html" title="interface in org.apache.qpid.proton.reactor">ReactorChild</a> child)</pre> |
| </li> |
| </ul> |
| <a name="update-org.apache.qpid.proton.reactor.Selectable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>update</h4> |
| <pre>public void update(<a href="../../../../../../org/apache/qpid/proton/reactor/Selectable.html" title="interface in org.apache.qpid.proton.reactor">Selectable</a> selectable)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#update-org.apache.qpid.proton.reactor.Selectable-">Reactor</a></code></span></div> |
| <div class="block">Updates the specified <code>Selectable</code> either emitting a |
| <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#SELECTABLE_UPDATED"><code>Event.Type.SELECTABLE_UPDATED</code></a> event if the selectable is not terminal, |
| or <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#SELECTABLE_FINAL"><code>Event.Type.SELECTABLE_FINAL</code></a> if the selectable is terminal and has |
| not already emitted a <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#SELECTABLE_FINAL"><code>Event.Type.SELECTABLE_FINAL</code></a> event.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#update-org.apache.qpid.proton.reactor.Selectable-">update</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="yield--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>yield</h4> |
| <pre>public void yield()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#yield--">Reactor</a></code></span></div> |
| <div class="block">Yields, causing the next call to <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a> to return |
| successfully - without processing any events. If multiple calls |
| can be made to <code>yield</code> and only the next invocation of |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a> will be affected.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#yield--">yield</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="quiesced--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>quiesced</h4> |
| <pre>public boolean quiesced()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#quiesced--">quiesced</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the reactor is in quiesced state (e.g. has |
| no events to process). <code>false</code> is returned otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="process--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>process</h4> |
| <pre>public boolean process() |
| throws <a href="../../../../../../org/apache/qpid/proton/engine/HandlerException.html" title="class in org.apache.qpid.proton.engine">HandlerException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--">Reactor</a></code></span></div> |
| <div class="block">Process any events pending for this reactor. Events are dispatched to |
| the handlers registered with the reactor, or child objects associated |
| with the reactor. This method blocks until the reactor has no more work |
| to do (and no more work pending, in terms of scheduled tasks or open |
| selectors to process).</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--">process</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the reactor may have more events in the |
| future. For example: if there are scheduled tasks, or open |
| selectors. <code>false</code> is returned if the reactor has |
| (and will have) no more events to process.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/engine/HandlerException.html" title="class in org.apache.qpid.proton.engine">HandlerException</a></code> - if an unchecked exception is thrown by one of |
| the handlers - it will be re-thrown attached to an instance of |
| <code>HandlerException</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="wakeup--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>wakeup</h4> |
| <pre>public void wakeup()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#wakeup--">Reactor</a></code></span></div> |
| <div class="block">Wakes up the thread (if any) blocked in the <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a> method. |
| This is the only method of this class that is thread safe, in that it |
| can be used at the same time as another thread is using the reactor.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#wakeup--">wakeup</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="start--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>start</h4> |
| <pre>public void start()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#start--">Reactor</a></code></span></div> |
| <div class="block">Starts the reactor. This method should be invoked before the first call |
| to <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#start--">start</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="stop--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>stop</h4> |
| <pre>public void stop() |
| throws <a href="../../../../../../org/apache/qpid/proton/engine/HandlerException.html" title="class in org.apache.qpid.proton.engine">HandlerException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#stop--">Reactor</a></code></span></div> |
| <div class="block">Stops the reactor. This method should be invoked after the last call to |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#process--"><code>Reactor.process()</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#stop--">stop</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/engine/HandlerException.html" title="class in org.apache.qpid.proton.engine">HandlerException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="run--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>run</h4> |
| <pre>public void run() |
| throws <a href="../../../../../../org/apache/qpid/proton/engine/HandlerException.html" title="class in org.apache.qpid.proton.engine">HandlerException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#run--">Reactor</a></code></span></div> |
| <div class="block">Simplifies the use of the reactor by wrapping the use of |
| <code>start</code>, <code>run</code>, and <code>stop</code> method |
| calls. |
| <p> |
| Logically the implementation of this method is: |
| <pre> |
| start(); |
| while(process()) {} |
| stop(); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#run--">run</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/engine/HandlerException.html" title="class in org.apache.qpid.proton.engine">HandlerException</a></code> - if an unchecked exception is thrown by one of |
| the handlers - it will be re-thrown attached to an instance of |
| <code>HandlerException</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="schedule-int-org.apache.qpid.proton.engine.Handler-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>schedule</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/Task.html" title="interface in org.apache.qpid.proton.reactor">Task</a> schedule(int delay, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#schedule-int-org.apache.qpid.proton.engine.Handler-">Reactor</a></code></span></div> |
| <div class="block">Schedules execution of a task to take place at some point in the future.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#schedule-int-org.apache.qpid.proton.engine.Handler-">schedule</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>delay</code> - the number of milliseconds, in the future, to schedule the |
| task for.</dd> |
| <dd><code>handler</code> - a handler to associate with the task. This is notified |
| when the deadline for the task is reached.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an object representing the task that has been scheduled.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSelector--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSelector</h4> |
| <pre>protected <a href="../../../../../../org/apache/qpid/proton/reactor/Selector.html" title="interface in org.apache.qpid.proton.reactor">Selector</a> getSelector()</pre> |
| </li> |
| </ul> |
| <a name="setSelector-org.apache.qpid.proton.reactor.Selector-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSelector</h4> |
| <pre>protected void setSelector(<a href="../../../../../../org/apache/qpid/proton/reactor/Selector.html" title="interface in org.apache.qpid.proton.reactor">Selector</a> selector)</pre> |
| </li> |
| </ul> |
| <a name="connection-org.apache.qpid.proton.engine.Handler-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connection</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a> connection(<a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#connection-org.apache.qpid.proton.engine.Handler-">Reactor</a></code></span></div> |
| <div class="block">Creates a new out-bound connection.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#connection-org.apache.qpid.proton.engine.Handler-">connection</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>handler</code> - a handler that is notified when events occur for the |
| connection. Typically the host and port to connect to |
| would be supplied to the connection object inside the |
| logic which handles the <a href="../../../../../../org/apache/qpid/proton/engine/Event.Type.html#CONNECTION_INIT"><code>Event.Type.CONNECTION_INIT</code></a> |
| event via |
| <a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setConnectionHost-org.apache.qpid.proton.engine.Connection-java.lang.String-int-"><code>Reactor.setConnectionHost(Connection, String, int)</code></a></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the newly created connection object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="connectionToHost-java.lang.String-int-org.apache.qpid.proton.engine.Handler-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connectionToHost</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a> connectionToHost(java.lang.String host, |
| int port, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#connectionToHost-java.lang.String-int-org.apache.qpid.proton.engine.Handler-">Reactor</a></code></span></div> |
| <div class="block">Creates a new out-bound connection to the given host and port. |
| <p> |
| This method will cause Reactor to set up a network connection to the |
| host and create a Connection for it.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#connectionToHost-java.lang.String-int-org.apache.qpid.proton.engine.Handler-">connectionToHost</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>host</code> - the host to connect to (e.g. "localhost")</dd> |
| <dd><code>port</code> - the port used for the connection.</dd> |
| <dd><code>handler</code> - a handler that is notified when events occur for the |
| connection.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the newly created connection object.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getConnectionAddress-org.apache.qpid.proton.engine.Connection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConnectionAddress</h4> |
| <pre>public java.lang.String getConnectionAddress(<a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a> connection)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getConnectionAddress-org.apache.qpid.proton.engine.Connection-">Reactor</a></code></span></div> |
| <div class="block">Get the address used by the connection |
| <p> |
| This may be used to retrieve the remote peer address. |
| Note that the returned address may be in numeric IP format.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#getConnectionAddress-org.apache.qpid.proton.engine.Connection-">getConnectionAddress</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - the Connection</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a string containing the address in the following format: |
| <pre> |
| host[:port] |
| </pre></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setConnectionHost-org.apache.qpid.proton.engine.Connection-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setConnectionHost</h4> |
| <pre>public void setConnectionHost(<a href="../../../../../../org/apache/qpid/proton/engine/Connection.html" title="interface in org.apache.qpid.proton.engine">Connection</a> connection, |
| java.lang.String host, |
| int port)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setConnectionHost-org.apache.qpid.proton.engine.Connection-java.lang.String-int-">Reactor</a></code></span></div> |
| <div class="block">Set the host address used by the connection |
| <p> |
| This method will set/change the host address used by the Reactor to |
| create an outbound network connection for the given Connection</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#setConnectionHost-org.apache.qpid.proton.engine.Connection-java.lang.String-int-">setConnectionHost</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - the Connection to assign the address to</dd> |
| <dd><code>host</code> - the address of the host to connect to (e.g. "localhost")</dd> |
| <dd><code>port</code> - the port to use for the connection.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="acceptor-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>acceptor</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/Acceptor.html" title="interface in org.apache.qpid.proton.reactor">Acceptor</a> acceptor(java.lang.String host, |
| int port) |
| throws java.io.IOException</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#acceptor-java.lang.String-int-">Reactor</a></code></span></div> |
| <div class="block">Creates a new acceptor. This is equivalent to calling: |
| <pre> |
| acceptor(host, port, null); |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#acceptor-java.lang.String-int-">acceptor</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the newly created acceptor object.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="acceptor-java.lang.String-int-org.apache.qpid.proton.engine.Handler-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>acceptor</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/Acceptor.html" title="interface in org.apache.qpid.proton.reactor">Acceptor</a> acceptor(java.lang.String host, |
| int port, |
| <a href="../../../../../../org/apache/qpid/proton/engine/Handler.html" title="interface in org.apache.qpid.proton.engine">Handler</a> handler) |
| throws java.io.IOException</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#acceptor-java.lang.String-int-org.apache.qpid.proton.engine.Handler-">Reactor</a></code></span></div> |
| <div class="block">Creates a new acceptor. This acceptor listens for in-bound connections.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html#acceptor-java.lang.String-int-org.apache.qpid.proton.engine.Handler-">acceptor</a></code> in interface <code><a href="../../../../../../org/apache/qpid/proton/reactor/Reactor.html" title="interface in org.apache.qpid.proton.reactor">Reactor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>host</code> - the host name or address of the NIC to listen on.</dd> |
| <dd><code>port</code> - the port number to listen on.</dd> |
| <dd><code>handler</code> - if non-<code>null</code> this handler is registered with |
| each new connection accepted by the acceptor.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the newly created acceptor object.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getIO--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getIO</h4> |
| <pre>public <a href="../../../../../../org/apache/qpid/proton/reactor/impl/IO.html" title="interface in org.apache.qpid.proton.reactor.impl">IO</a> getIO()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../org/apache/qpid/proton/reactor/impl/IOImpl.html" title="class in org.apache.qpid.proton.reactor.impl"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../org/apache/qpid/proton/reactor/impl/SelectableImpl.html" title="class in org.apache.qpid.proton.reactor.impl"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/apache/qpid/proton/reactor/impl/ReactorImpl.html" target="_top">Frames</a></li> |
| <li><a href="ReactorImpl.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |