| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (11.0.14.1) on Mon Apr 04 09:09:38 CDT 2022 --> |
| <title>SelectorManager (Eclipse Jetty API Doc - v10.0.9)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2022-04-04"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script> |
| <script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="SelectorManager (Eclipse Jetty API Doc - v10.0.9)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"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":6,"i23":6,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/SelectorManager.html">Use</a></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" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </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 id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.eclipse.jetty.io</a></div> |
| <h2 title="Class SelectorManager" class="title">Class SelectorManager</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.AbstractLifeCycle</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">org.eclipse.jetty.util.component.ContainerLifeCycle</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.jetty.io.SelectorManager</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></code>, <code><a href="../util/component/Destroyable.html" title="interface in org.eclipse.jetty.util.component">Destroyable</a></code>, <code><a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></code>, <code><a href="../util/component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></code>, <code><a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><code><a href="ClientConnector.ClientSelectorManager.html" title="class in org.eclipse.jetty.io">ClientConnector.ClientSelectorManager</a></code>, <code><a href="../proxy/ConnectHandler.ConnectManager.html" title="class in org.eclipse.jetty.proxy">ConnectHandler.ConnectManager</a></code>, <code><a href="../server/ServerConnector.ServerConnectorManager.html" title="class in org.eclipse.jetty.server">ServerConnector.ServerConnectorManager</a></code>, <code><a href="../unixsocket/server/UnixSocketConnector.UnixSocketConnectorManager.html" title="class in org.eclipse.jetty.unixsocket.server">UnixSocketConnector.UnixSocketConnectorManager</a></code></dd> |
| </dl> |
| <hr> |
| <pre><a href="../util/annotation/ManagedObject.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedObject</a>("Manager of the NIO Selectors") |
| public abstract class <span class="typeNameLabel">SelectorManager</span> |
| extends <a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a> |
| implements <a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></pre> |
| <div class="block"><p><a href="SelectorManager.html" title="class in org.eclipse.jetty.io"><code>SelectorManager</code></a> manages a number of <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io"><code>ManagedSelector</code></a>s that |
| simplify the non-blocking primitives provided by the JVM via the <code>java.nio</code> package.</p> |
| <p><a href="SelectorManager.html" title="class in org.eclipse.jetty.io"><code>SelectorManager</code></a> subclasses implement methods to return protocol-specific |
| <a href="EndPoint.html" title="interface in org.eclipse.jetty.io"><code>EndPoint</code></a>s and <a href="Connection.html" title="interface in org.eclipse.jetty.io"><code>Connection</code></a>s.</p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SelectorManager.AcceptListener.html" title="interface in org.eclipse.jetty.io">SelectorManager.AcceptListener</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">A listener for accept events.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SelectorManager.SelectorManagerListener.html" title="interface in org.eclipse.jetty.io">SelectorManager.SelectorManagerListener</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.<a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../util/component/AbstractLifeCycle.AbstractLifeCycleListener.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.AbstractLifeCycleListener</a>, <a href="../util/component/AbstractLifeCycle.StopException.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.StopException</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.Container"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3> |
| <code><a href="../util/component/Container.InheritedListener.html" title="interface in org.eclipse.jetty.util.component">Container.InheritedListener</a>, <a href="../util/component/Container.Listener.html" title="interface in org.eclipse.jetty.util.component">Container.Listener</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.Dumpable"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../util/component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.component.LifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3> |
| <code><a href="../util/component/LifeCycle.Listener.html" title="interface in org.eclipse.jetty.util.component">LifeCycle.Listener</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DEFAULT_CONNECT_TIMEOUT">DEFAULT_CONNECT_TIMEOUT</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected static org.slf4j.Logger</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#LOG">LOG</a></span></code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.eclipse.jetty.util.component.<a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../util/component/AbstractLifeCycle.html#FAILED">FAILED</a>, <a href="../util/component/AbstractLifeCycle.html#STARTED">STARTED</a>, <a href="../util/component/AbstractLifeCycle.html#STARTING">STARTING</a>, <a href="../util/component/AbstractLifeCycle.html#STOPPED">STOPPED</a>, <a href="../util/component/AbstractLifeCycle.html#STOPPING">STOPPING</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.component.Dumpable"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../util/component/Dumpable.html#KEY">KEY</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier</th> |
| <th class="colSecond" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler)">SelectorManager</a></span>​(java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,int)">SelectorManager</a></span>​(java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler, |
| int selectors)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#accept(java.nio.channels.SelectableChannel)">accept</a></span>​(java.nio.channels.SelectableChannel channel)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#accept(java.nio.channels.SelectableChannel,java.lang.Object)">accept</a></span>​(java.nio.channels.SelectableChannel channel, |
| java.lang.Object attachment)</code></th> |
| <td class="colLast"> |
| <div class="block">Registers a channel to perform non-blocking read/write operations.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#accepted(java.nio.channels.SelectableChannel)">accepted</a></span>​(java.nio.channels.SelectableChannel channel)</code></th> |
| <td class="colLast"> |
| <div class="block">Callback method when a channel is accepted from the <code>ServerSocketChannel</code> |
| passed to <a href="#acceptor(java.nio.channels.SelectableChannel)"><code>acceptor(SelectableChannel)</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>java.io.Closeable</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#acceptor(java.nio.channels.SelectableChannel)">acceptor</a></span>​(java.nio.channels.SelectableChannel server)</code></th> |
| <td class="colLast"> |
| <div class="block">Registers a server channel for accept operations.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addEventListener(java.util.EventListener)">addEventListener</a></span>​(java.util.EventListener listener)</code></th> |
| <td class="colLast"> |
| <div class="block">Add an event listener.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#chooseSelector()">chooseSelector</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connect(java.nio.channels.SelectableChannel,java.lang.Object)">connect</a></span>​(java.nio.channels.SelectableChannel channel, |
| java.lang.Object attachment)</code></th> |
| <td class="colLast"> |
| <div class="block">Registers a channel to perform a non-blocking connect.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectionClosed(org.eclipse.jetty.io.Connection,java.lang.Throwable)">connectionClosed</a></span>​(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a> connection, |
| java.lang.Throwable cause)</code></th> |
| <td class="colLast"> |
| <div class="block">Callback method invoked when a connection is closed.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectionFailed(java.nio.channels.SelectableChannel,java.lang.Throwable,java.lang.Object)">connectionFailed</a></span>​(java.nio.channels.SelectableChannel channel, |
| java.lang.Throwable ex, |
| java.lang.Object attachment)</code></th> |
| <td class="colLast"> |
| <div class="block">Callback method invoked when a non-blocking connect cannot be completed.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectionOpened(org.eclipse.jetty.io.Connection,java.lang.Object)">connectionOpened</a></span>​(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a> connection, |
| java.lang.Object context)</code></th> |
| <td class="colLast"> |
| <div class="block">Callback method invoked when a connection is opened.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>protected java.nio.channels.SelectableChannel</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doAccept(java.nio.channels.SelectableChannel)">doAccept</a></span>​(java.nio.channels.SelectableChannel server)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doFinishConnect(java.nio.channels.SelectableChannel)">doFinishConnect</a></span>​(java.nio.channels.SelectableChannel channel)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doStart()">doStart</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Starts the managed lifecycle beans in the order they were added.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doStop()">doStop</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Stops the managed lifecycle beans in the reverse order they were added.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#endPointClosed(org.eclipse.jetty.io.EndPoint)">endPointClosed</a></span>​(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> endpoint)</code></th> |
| <td class="colLast"> |
| <div class="block">Callback method invoked when an endpoint is closed.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#endPointOpened(org.eclipse.jetty.io.EndPoint)">endPointOpened</a></span>​(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> endpoint)</code></th> |
| <td class="colLast"> |
| <div class="block">Callback method invoked when an endpoint is opened.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#execute(java.lang.Runnable)">execute</a></span>​(java.lang.Runnable task)</code></th> |
| <td class="colLast"> |
| <div class="block">Executes the given task in a different thread.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getConnectTimeout()">getConnectTimeout</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the connect timeout</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>java.util.concurrent.Executor</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getExecutor()">getExecutor</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScheduler()">getScheduler</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSelectorCount()">getSelectorCount</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isConnectionPending(java.nio.channels.SelectableChannel)">isConnectionPending</a></span>​(java.nio.channels.SelectableChannel channel)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>abstract <a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newConnection(java.nio.channels.SelectableChannel,org.eclipse.jetty.io.EndPoint,java.lang.Object)">newConnection</a></span>​(java.nio.channels.SelectableChannel channel, |
| <a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> endpoint, |
| java.lang.Object attachment)</code></th> |
| <td class="colLast"> |
| <div class="block">Factory method to create <a href="Connection.html" title="interface in org.eclipse.jetty.io"><code>Connection</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>protected abstract <a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newEndPoint(java.nio.channels.SelectableChannel,org.eclipse.jetty.io.ManagedSelector,java.nio.channels.SelectionKey)">newEndPoint</a></span>​(java.nio.channels.SelectableChannel channel, |
| <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a> selector, |
| java.nio.channels.SelectionKey selectionKey)</code></th> |
| <td class="colLast"> |
| <div class="block">Factory method to create <a href="EndPoint.html" title="interface in org.eclipse.jetty.io"><code>EndPoint</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>protected java.nio.channels.Selector</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newSelector()">newSelector</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newSelector(int)">newSelector</a></span>​(int id)</code></th> |
| <td class="colLast"> |
| <div class="block">Factory method for <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io"><code>ManagedSelector</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onAccepted(java.nio.channels.SelectableChannel)">onAccepted</a></span>​(java.nio.channels.SelectableChannel channel)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onAcceptFailed(java.nio.channels.SelectableChannel,java.lang.Throwable)">onAcceptFailed</a></span>​(java.nio.channels.SelectableChannel channel, |
| java.lang.Throwable cause)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onAccepting(java.nio.channels.SelectableChannel)">onAccepting</a></span>​(java.nio.channels.SelectableChannel channel)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeEventListener(java.util.EventListener)">removeEventListener</a></span>​(java.util.EventListener listener)</code></th> |
| <td class="colLast"> |
| <div class="block">Remove an event listener.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setConnectTimeout(long)">setConnectTimeout</a></span>​(long milliseconds)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the connect timeout (in milliseconds)</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.ContainerLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.util.component.<a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></h3> |
| <code><a href="../util/component/ContainerLifeCycle.html#addBean(java.lang.Object)">addBean</a>, <a href="../util/component/ContainerLifeCycle.html#addBean(java.lang.Object,boolean)">addBean</a>, <a href="../util/component/ContainerLifeCycle.html#addManaged(org.eclipse.jetty.util.component.LifeCycle)">addManaged</a>, <a href="../util/component/ContainerLifeCycle.html#contains(java.lang.Object)">contains</a>, <a href="../util/component/ContainerLifeCycle.html#destroy()">destroy</a>, <a href="../util/component/ContainerLifeCycle.html#dump()">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(java.lang.Appendable,java.lang.String)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dumpObjects(java.lang.Appendable,java.lang.String,java.lang.Object...)">dumpObjects</a>, <a href="../util/component/ContainerLifeCycle.html#dumpStdErr()">dumpStdErr</a>, <a href="../util/component/ContainerLifeCycle.html#getBean(java.lang.Class)">getBean</a>, <a href="../util/component/ContainerLifeCycle.html#getBeans()">getBeans</a>, <a href="../util/component/ContainerLifeCycle.html#getBeans(java.lang.Class)">getBeans</a>, <a href="../util/component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class)">getContainedBeans</a>, <a href="../util/component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class,java.util.Collection)">getContainedBeans</a>, <a href="../util/component/ContainerLifeCycle.html#isAuto(java.lang.Object)">isAuto</a>, <a href="../util/component/ContainerLifeCycle.html#isManaged(java.lang.Object)">isManaged</a>, <a href="../util/component/ContainerLifeCycle.html#isUnmanaged(java.lang.Object)">isUnmanaged</a>, <a href="../util/component/ContainerLifeCycle.html#manage(java.lang.Object)">manage</a>, <a href="../util/component/ContainerLifeCycle.html#removeBean(java.lang.Object)">removeBean</a>, <a href="../util/component/ContainerLifeCycle.html#removeBeans()">removeBeans</a>, <a href="../util/component/ContainerLifeCycle.html#setBeans(java.util.Collection)">setBeans</a>, <a href="../util/component/ContainerLifeCycle.html#start(org.eclipse.jetty.util.component.LifeCycle)">start</a>, <a href="../util/component/ContainerLifeCycle.html#stop(org.eclipse.jetty.util.component.LifeCycle)">stop</a>, <a href="../util/component/ContainerLifeCycle.html#unmanage(java.lang.Object)">unmanage</a>, <a href="../util/component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object)">updateBean</a>, <a href="../util/component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object,boolean)">updateBean</a>, <a href="../util/component/ContainerLifeCycle.html#updateBeans(java.lang.Object%5B%5D,java.lang.Object%5B%5D)">updateBeans</a>, <a href="../util/component/ContainerLifeCycle.html#updateBeans(java.util.Collection,java.util.Collection)">updateBeans</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.AbstractLifeCycle"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.util.component.<a href="../util/component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../util/component/AbstractLifeCycle.html#getEventListeners()">getEventListeners</a>, <a href="../util/component/AbstractLifeCycle.html#getState()">getState</a>, <a href="../util/component/AbstractLifeCycle.html#getState(org.eclipse.jetty.util.component.LifeCycle)">getState</a>, <a href="../util/component/AbstractLifeCycle.html#isFailed()">isFailed</a>, <a href="../util/component/AbstractLifeCycle.html#isRunning()">isRunning</a>, <a href="../util/component/AbstractLifeCycle.html#isStarted()">isStarted</a>, <a href="../util/component/AbstractLifeCycle.html#isStarting()">isStarting</a>, <a href="../util/component/AbstractLifeCycle.html#isStopped()">isStopped</a>, <a href="../util/component/AbstractLifeCycle.html#isStopping()">isStopping</a>, <a href="../util/component/AbstractLifeCycle.html#setEventListeners(java.util.Collection)">setEventListeners</a>, <a href="../util/component/AbstractLifeCycle.html#start()">start</a>, <a href="../util/component/AbstractLifeCycle.html#stop()">stop</a>, <a href="../util/component/AbstractLifeCycle.html#toString()">toString</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="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, wait, wait, wait</code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Container"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3> |
| <code><a href="../util/component/Container.html#getCachedBeans(java.lang.Class)">getCachedBeans</a>, <a href="../util/component/Container.html#getEventListeners()">getEventListeners</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Dumpable"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../util/component/Dumpable.html#dump()">dump</a>, <a href="../util/component/Dumpable.html#dump(java.lang.Appendable,java.lang.String)">dump</a>, <a href="../util/component/Dumpable.html#dumpSelf()">dumpSelf</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.util.component.Dumpable.DumpableContainer"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.eclipse.jetty.util.component.<a href="../util/component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></h3> |
| <code><a href="../util/component/Dumpable.DumpableContainer.html#isDumpable(java.lang.Object)">isDumpable</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a id="DEFAULT_CONNECT_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_CONNECT_TIMEOUT</h4> |
| <pre>public static final int DEFAULT_CONNECT_TIMEOUT</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.eclipse.jetty.io.SelectorManager.DEFAULT_CONNECT_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="LOG"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>LOG</h4> |
| <pre>protected static final org.slf4j.Logger LOG</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SelectorManager</h4> |
| <pre>protected SelectorManager​(java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler)</pre> |
| </li> |
| </ul> |
| <a id="<init>(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>SelectorManager</h4> |
| <pre>protected SelectorManager​(java.util.concurrent.Executor executor, |
| <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> scheduler, |
| int selectors)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>executor</code> - The executor to use for handling selected <a href="EndPoint.html" title="interface in org.eclipse.jetty.io"><code>EndPoint</code></a>s</dd> |
| <dd><code>scheduler</code> - The scheduler to use for timing events</dd> |
| <dd><code>selectors</code> - The number of selectors to use, or -1 for a default derived |
| from a heuristic over available CPUs and thread pool size.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="getExecutor()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getExecutor</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("The Executor") |
| public java.util.concurrent.Executor getExecutor()</pre> |
| </li> |
| </ul> |
| <a id="getScheduler()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getScheduler</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("The Scheduler") |
| public <a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a> getScheduler()</pre> |
| </li> |
| </ul> |
| <a id="getConnectTimeout()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConnectTimeout</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("The Connection timeout (ms)") |
| public long getConnectTimeout()</pre> |
| <div class="block">Get the connect timeout</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the connect timeout (in milliseconds)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setConnectTimeout(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setConnectTimeout</h4> |
| <pre class="methodSignature">public void setConnectTimeout​(long milliseconds)</pre> |
| <div class="block">Set the connect timeout (in milliseconds)</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>milliseconds</code> - the number of milliseconds for the timeout</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="execute(java.lang.Runnable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>execute</h4> |
| <pre class="methodSignature">protected void execute​(java.lang.Runnable task)</pre> |
| <div class="block">Executes the given task in a different thread.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>task</code> - the task to execute</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getSelectorCount()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSelectorCount</h4> |
| <pre class="methodSignature"><a href="../util/annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("The number of NIO Selectors") |
| public int getSelectorCount()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of selectors in use</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="chooseSelector()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>chooseSelector</h4> |
| <pre class="methodSignature">protected <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a> chooseSelector()</pre> |
| </li> |
| </ul> |
| <a id="connect(java.nio.channels.SelectableChannel,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connect</h4> |
| <pre class="methodSignature">public void connect​(java.nio.channels.SelectableChannel channel, |
| java.lang.Object attachment)</pre> |
| <div class="block"><p>Registers a channel to perform a non-blocking connect.</p> |
| <p>The channel must be set in non-blocking mode, <code>SocketChannel.connect(SocketAddress)</code> |
| must be called prior to calling this method, and the connect operation must not be completed |
| (the return value of <code>SocketChannel.connect(SocketAddress)</code> must be false).</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel to register</dd> |
| <dd><code>attachment</code> - the attachment object</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#accept(java.nio.channels.SelectableChannel,java.lang.Object)"><code>accept(SelectableChannel, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="accept(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>accept</h4> |
| <pre class="methodSignature">public void accept​(java.nio.channels.SelectableChannel channel)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel to accept</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#accept(java.nio.channels.SelectableChannel,java.lang.Object)"><code>accept(SelectableChannel, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="accept(java.nio.channels.SelectableChannel,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>accept</h4> |
| <pre class="methodSignature">public void accept​(java.nio.channels.SelectableChannel channel, |
| java.lang.Object attachment)</pre> |
| <div class="block"><p>Registers a channel to perform non-blocking read/write operations.</p> |
| <p>This method is called just after a channel has been accepted by <code>ServerSocketChannel.accept()</code>, |
| or just after having performed a blocking connect via <code>Socket.connect(SocketAddress, int)</code>, or |
| just after a non-blocking connect via <code>SocketChannel.connect(SocketAddress)</code> that completed |
| successfully.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel to register</dd> |
| <dd><code>attachment</code> - the attachment object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="acceptor(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>acceptor</h4> |
| <pre class="methodSignature">public java.io.Closeable acceptor​(java.nio.channels.SelectableChannel server)</pre> |
| <div class="block"><p>Registers a server channel for accept operations. |
| When a <code>SocketChannel</code> is accepted from the given <code>ServerSocketChannel</code> |
| then the <a href="#accepted(java.nio.channels.SelectableChannel)"><code>accepted(SelectableChannel)</code></a> method is called, which must be |
| overridden by a derivation of this class to handle the accepted channel</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>server</code> - the server channel to register</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A Closable that allows the acceptor to be cancelled</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="accepted(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>accepted</h4> |
| <pre class="methodSignature">protected void accepted​(java.nio.channels.SelectableChannel channel) |
| throws java.io.IOException</pre> |
| <div class="block">Callback method when a channel is accepted from the <code>ServerSocketChannel</code> |
| passed to <a href="#acceptor(java.nio.channels.SelectableChannel)"><code>acceptor(SelectableChannel)</code></a>. |
| The default impl throws an <code>UnsupportedOperationException</code>, so it must |
| be overridden by subclasses if a server channel is provided.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if unable to accept channel</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="doStart()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doStart</h4> |
| <pre class="methodSignature">protected void doStart() |
| throws java.lang.Exception</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../util/component/ContainerLifeCycle.html#doStart()">ContainerLifeCycle</a></code></span></div> |
| <div class="block">Starts the managed lifecycle beans in the order they were added.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../util/component/ContainerLifeCycle.html#doStart()">doStart</a></code> in class <code><a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../util/component/AbstractLifeCycle.StopException.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.StopException</a></code> - If thrown, the lifecycle will immediately be stopped.</dd> |
| <dd><code>java.lang.Exception</code> - If there was a problem starting. Will cause a transition to FAILED state</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newSelector(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newSelector</h4> |
| <pre class="methodSignature">protected <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a> newSelector​(int id)</pre> |
| <div class="block"><p>Factory method for <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io"><code>ManagedSelector</code></a>.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>id</code> - an identifier for the <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io"><code>to create</code></a></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io"><code>ManagedSelector</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newSelector()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newSelector</h4> |
| <pre class="methodSignature">protected java.nio.channels.Selector newSelector() |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="doStop()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doStop</h4> |
| <pre class="methodSignature">protected void doStop() |
| throws java.lang.Exception</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../util/component/ContainerLifeCycle.html#doStop()">ContainerLifeCycle</a></code></span></div> |
| <div class="block">Stops the managed lifecycle beans in the reverse order they were added.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../util/component/ContainerLifeCycle.html#doStop()">doStop</a></code> in class <code><a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.Exception</code> - If there was a problem stopping. Will cause a transition to FAILED state</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="endPointOpened(org.eclipse.jetty.io.EndPoint)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>endPointOpened</h4> |
| <pre class="methodSignature">protected void endPointOpened​(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> endpoint)</pre> |
| <div class="block"><p>Callback method invoked when an endpoint is opened.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>endpoint</code> - the endpoint being opened</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="endPointClosed(org.eclipse.jetty.io.EndPoint)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>endPointClosed</h4> |
| <pre class="methodSignature">protected void endPointClosed​(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> endpoint)</pre> |
| <div class="block"><p>Callback method invoked when an endpoint is closed.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>endpoint</code> - the endpoint being closed</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="connectionOpened(org.eclipse.jetty.io.Connection,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connectionOpened</h4> |
| <pre class="methodSignature">public void connectionOpened​(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a> connection, |
| java.lang.Object context)</pre> |
| <div class="block"><p>Callback method invoked when a connection is opened.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - the connection just opened</dd> |
| <dd><code>context</code> - the attachment associated with the creation of the connection</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#newConnection(java.nio.channels.SelectableChannel,org.eclipse.jetty.io.EndPoint,java.lang.Object)"><code>newConnection(SelectableChannel, EndPoint, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="connectionClosed(org.eclipse.jetty.io.Connection,java.lang.Throwable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connectionClosed</h4> |
| <pre class="methodSignature">public void connectionClosed​(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a> connection, |
| java.lang.Throwable cause)</pre> |
| <div class="block"><p>Callback method invoked when a connection is closed.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - the connection just closed</dd> |
| <dd><code>cause</code> - the cause of the close or null for normal close</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="doFinishConnect(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doFinishConnect</h4> |
| <pre class="methodSignature">protected boolean doFinishConnect​(java.nio.channels.SelectableChannel channel) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isConnectionPending(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isConnectionPending</h4> |
| <pre class="methodSignature">protected boolean isConnectionPending​(java.nio.channels.SelectableChannel channel)</pre> |
| </li> |
| </ul> |
| <a id="doAccept(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>doAccept</h4> |
| <pre class="methodSignature">protected java.nio.channels.SelectableChannel doAccept​(java.nio.channels.SelectableChannel server) |
| throws java.io.IOException</pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="connectionFailed(java.nio.channels.SelectableChannel,java.lang.Throwable,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>connectionFailed</h4> |
| <pre class="methodSignature">protected void connectionFailed​(java.nio.channels.SelectableChannel channel, |
| java.lang.Throwable ex, |
| java.lang.Object attachment)</pre> |
| <div class="block"><p>Callback method invoked when a non-blocking connect cannot be completed.</p> |
| <p>By default it just logs with level warning.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel that attempted the connect</dd> |
| <dd><code>ex</code> - the exception that caused the connect to fail</dd> |
| <dd><code>attachment</code> - the attachment object associated at registration</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newEndPoint(java.nio.channels.SelectableChannel,org.eclipse.jetty.io.ManagedSelector,java.nio.channels.SelectionKey)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newEndPoint</h4> |
| <pre class="methodSignature">protected abstract <a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> newEndPoint​(java.nio.channels.SelectableChannel channel, |
| <a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a> selector, |
| java.nio.channels.SelectionKey selectionKey) |
| throws java.io.IOException</pre> |
| <div class="block"><p>Factory method to create <a href="EndPoint.html" title="interface in org.eclipse.jetty.io"><code>EndPoint</code></a>.</p> |
| <p>This method is invoked as a result of the registration of a channel via <a href="#connect(java.nio.channels.SelectableChannel,java.lang.Object)"><code>connect(SelectableChannel, Object)</code></a> |
| or <a href="#accept(java.nio.channels.SelectableChannel)"><code>accept(SelectableChannel)</code></a>.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel associated to the endpoint</dd> |
| <dd><code>selector</code> - the selector the channel is registered to</dd> |
| <dd><code>selectionKey</code> - the selection key</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new endpoint</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if the endPoint cannot be created</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#newConnection(java.nio.channels.SelectableChannel,org.eclipse.jetty.io.EndPoint,java.lang.Object)"><code>newConnection(SelectableChannel, EndPoint, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="newConnection(java.nio.channels.SelectableChannel,org.eclipse.jetty.io.EndPoint,java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newConnection</h4> |
| <pre class="methodSignature">public abstract <a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a> newConnection​(java.nio.channels.SelectableChannel channel, |
| <a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a> endpoint, |
| java.lang.Object attachment) |
| throws java.io.IOException</pre> |
| <div class="block"><p>Factory method to create <a href="Connection.html" title="interface in org.eclipse.jetty.io"><code>Connection</code></a>.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>channel</code> - the channel associated to the connection</dd> |
| <dd><code>endpoint</code> - the endpoint</dd> |
| <dd><code>attachment</code> - the attachment</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new connection</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if unable to create new connection</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="addEventListener(java.util.EventListener)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addEventListener</h4> |
| <pre class="methodSignature">public boolean addEventListener​(java.util.EventListener listener)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../util/component/Container.html#addEventListener(java.util.EventListener)">Container</a></code></span></div> |
| <div class="block">Add an event listener. |
| EventListeners added by this method are also added as beans.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../util/component/Container.html#addEventListener(java.util.EventListener)">addEventListener</a></code> in interface <code><a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../util/component/LifeCycle.html#addEventListener(java.util.EventListener)">addEventListener</a></code> in interface <code><a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../util/component/ContainerLifeCycle.html#addEventListener(java.util.EventListener)">addEventListener</a></code> in class <code><a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - An EventListener</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the listener was added</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="SelectorManager.AcceptListener.html" title="interface in org.eclipse.jetty.io"><code>SelectorManager.AcceptListener</code></a>, |
| <a href="../util/component/Container.html#addEventListener(java.util.EventListener)"><code>Container.addEventListener(EventListener)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="removeEventListener(java.util.EventListener)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeEventListener</h4> |
| <pre class="methodSignature">public boolean removeEventListener​(java.util.EventListener listener)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../util/component/Container.html#removeEventListener(java.util.EventListener)">Container</a></code></span></div> |
| <div class="block">Remove an event listener.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../util/component/Container.html#removeEventListener(java.util.EventListener)">removeEventListener</a></code> in interface <code><a href="../util/component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../util/component/LifeCycle.html#removeEventListener(java.util.EventListener)">removeEventListener</a></code> in interface <code><a href="../util/component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../util/component/ContainerLifeCycle.html#removeEventListener(java.util.EventListener)">removeEventListener</a></code> in class <code><a href="../util/component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the listener to remove</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the listener was removed</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../util/component/Container.html#removeBean(java.lang.Object)"><code>Container.removeBean(Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="onAccepting(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onAccepting</h4> |
| <pre class="methodSignature">protected void onAccepting​(java.nio.channels.SelectableChannel channel)</pre> |
| </li> |
| </ul> |
| <a id="onAcceptFailed(java.nio.channels.SelectableChannel,java.lang.Throwable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onAcceptFailed</h4> |
| <pre class="methodSignature">protected void onAcceptFailed​(java.nio.channels.SelectableChannel channel, |
| java.lang.Throwable cause)</pre> |
| </li> |
| </ul> |
| <a id="onAccepted(java.nio.channels.SelectableChannel)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>onAccepted</h4> |
| <pre class="methodSignature">protected void onAccepted​(java.nio.channels.SelectableChannel channel)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/SelectorManager.html">Use</a></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" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses.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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </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 id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 1995–2022 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |