blob: d57b975e8dd73063fbe962d22b7eef2a121c4e12 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.10) on Fri Feb 26 09:50:23 CST 2021 -->
<title>SelectorManager (Jetty :: Project 9.4.38.v20210224 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2021-02-26">
<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 (Jetty :: Project 9.4.38.v20210224 API)";
}
}
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":42,"i20":10,"i21":10,"i22":10,"i23":6,"i24":6,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":42};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = false;
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&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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">&nbsp;</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>&nbsp;<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="../client/AbstractConnectorHttpClientTransport.ClientSelectorManager.html" title="class in org.eclipse.jetty.client">AbstractConnectorHttpClientTransport.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/UnixSocketConnector.UnixSocketConnectorManager.html" title="class in org.eclipse.jetty.unixsocket">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">&nbsp;</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&nbsp;</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>
</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&nbsp;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></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&nbsp;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&nbsp;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&nbsp;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">&nbsp;</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">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static <a href="../util/log/Logger.html" title="interface in org.eclipse.jetty.util.log">Logger</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#LOG">LOG</a></span></code></th>
<td class="colLast">&nbsp;</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&nbsp;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#RUNNING">RUNNING</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&nbsp;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">&nbsp;</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>&#8203;(java.util.concurrent.Executor&nbsp;executor,
<a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;scheduler)</code></th>
<td class="colLast">&nbsp;</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>&#8203;(java.util.concurrent.Executor&nbsp;executor,
<a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;scheduler,
int&nbsp;selectors)</code></th>
<td class="colLast">&nbsp;</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel)</code></th>
<td class="colLast">&nbsp;</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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Object&nbsp;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>&#8203;(java.nio.channels.SelectableChannel&nbsp;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>&#8203;(java.nio.channels.SelectableChannel&nbsp;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>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAcceptListener(org.eclipse.jetty.io.SelectorManager.AcceptListener)">addAcceptListener</a></span>&#8203;(<a href="SelectorManager.AcceptListener.html" title="interface in org.eclipse.jetty.io">SelectorManager.AcceptListener</a>&nbsp;listener)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addEventListener(java.util.EventListener)">addEventListener</a></span>&#8203;(java.util.EventListener&nbsp;listener)</code></th>
<td class="colLast">&nbsp;</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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Object&nbsp;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)">connectionClosed</a></span>&#8203;(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a>&nbsp;connection)</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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Throwable&nbsp;ex,
java.lang.Object&nbsp;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)">connectionOpened</a></span>&#8203;(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a>&nbsp;connection)</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>&#8203;(java.nio.channels.SelectableChannel&nbsp;server)</code></th>
<td class="colLast">&nbsp;</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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel)</code></th>
<td class="colLast">&nbsp;</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>&#8203;(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;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>&#8203;(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;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>&#8203;(java.lang.Runnable&nbsp;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">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getReservedThreads()">getReservedThreads</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i20" class="altColor">
<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">&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<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">&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;endpoint,
java.lang.Object&nbsp;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="i24" class="altColor">
<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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
<a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a>&nbsp;selector,
java.nio.channels.SelectionKey&nbsp;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="i25" class="rowColor">
<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">&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<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>&#8203;(int&nbsp;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="i27" class="rowColor">
<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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel)</code></th>
<td class="colLast">&nbsp;</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="#onAcceptFailed(java.nio.channels.SelectableChannel,java.lang.Throwable)">onAcceptFailed</a></span>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Throwable&nbsp;cause)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<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>&#8203;(java.nio.channels.SelectableChannel&nbsp;channel)</code></th>
<td class="colLast">&nbsp;</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="#removeAcceptListener(org.eclipse.jetty.io.SelectorManager.AcceptListener)">removeAcceptListener</a></span>&#8203;(<a href="SelectorManager.AcceptListener.html" title="interface in org.eclipse.jetty.io">SelectorManager.AcceptListener</a>&nbsp;listener)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeEventListener(java.util.EventListener)">removeEventListener</a></span>&#8203;(java.util.EventListener&nbsp;listener)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i32" 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>&#8203;(long&nbsp;milliseconds)</code></th>
<td class="colLast">
<div class="block">Set the connect timeout (in milliseconds)</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setReservedThreads(int)">setReservedThreads</a></span>&#8203;(int&nbsp;threads)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</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&nbsp;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#addEventListener(org.eclipse.jetty.util.component.Container.Listener)">addEventListener</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#dump(java.lang.Appendable,java.lang.String,java.util.Collection...)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dump(org.eclipse.jetty.util.component.Dumpable)">dump</a>, <a href="../util/component/ContainerLifeCycle.html#dumpBeans(java.lang.Appendable,java.lang.String,java.util.Collection...)">dumpBeans</a>, <a href="../util/component/ContainerLifeCycle.html#dumpObject(java.lang.Appendable,java.lang.Object)">dumpObject</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#dumpThis(java.lang.Appendable)">dumpThis</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#removeEventListener(org.eclipse.jetty.util.component.Container.Listener)">removeEventListener</a>, <a href="../util/component/ContainerLifeCycle.html#setBeans(java.util.Collection)">setBeans</a>, <a href="../util/component/ContainerLifeCycle.html#setStopTimeout(long)">setStopTimeout</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></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&nbsp;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#addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">addLifeCycleListener</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#getStopTimeout()">getStopTimeout</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#removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener)">removeLifeCycleListener</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&nbsp;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.Dumpable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;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&nbsp;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&nbsp;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&nbsp;<a href="../util/log/Logger.html" title="interface in org.eclipse.jetty.util.log">Logger</a> 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="&lt;init&gt;(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SelectorManager</h4>
<pre>protected&nbsp;SelectorManager&#8203;(java.util.concurrent.Executor&nbsp;executor,
<a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;scheduler)</pre>
</li>
</ul>
<a id="&lt;init&gt;(java.util.concurrent.Executor,org.eclipse.jetty.util.thread.Scheduler,int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SelectorManager</h4>
<pre>protected&nbsp;SelectorManager&#8203;(java.util.concurrent.Executor&nbsp;executor,
<a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;scheduler,
int&nbsp;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&nbsp;java.util.concurrent.Executor&nbsp;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&nbsp;<a href="../util/thread/Scheduler.html" title="interface in org.eclipse.jetty.util.thread">Scheduler</a>&nbsp;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&nbsp;long&nbsp;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&nbsp;void&nbsp;setConnectTimeout&#8203;(long&nbsp;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="getReservedThreads()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReservedThreads</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;int&nbsp;getReservedThreads()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>-1</dd>
</dl>
</li>
</ul>
<a id="setReservedThreads(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setReservedThreads</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;void&nbsp;setReservedThreads&#8203;(int&nbsp;threads)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>threads</code> - ignored</dd>
</dl>
</li>
</ul>
<a id="execute(java.lang.Runnable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;execute&#8203;(java.lang.Runnable&nbsp;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&nbsp;int&nbsp;getSelectorCount()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the number of selectors in use</dd>
</dl>
</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&nbsp;void&nbsp;connect&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Object&nbsp;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&nbsp;void&nbsp;accept&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;void&nbsp;accept&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Object&nbsp;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&nbsp;java.io.Closeable&nbsp;acceptor&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;void&nbsp;accepted&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;void&nbsp;doStart()
throws java.lang.Exception</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<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>&nbsp;in class&nbsp;<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></dd>
</dl>
</li>
</ul>
<a id="newSelector(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newSelector</h4>
<pre class="methodSignature">protected&nbsp;<a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a>&nbsp;newSelector&#8203;(int&nbsp;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="doStop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doStop</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;doStop()
throws java.lang.Exception</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<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>&nbsp;in class&nbsp;<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></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&nbsp;void&nbsp;endPointOpened&#8203;(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;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&nbsp;void&nbsp;endPointClosed&#8203;(<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;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)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectionOpened</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;connectionOpened&#8203;(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a>&nbsp;connection)</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>
</dl>
</li>
</ul>
<a id="connectionClosed(org.eclipse.jetty.io.Connection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectionClosed</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;connectionClosed&#8203;(<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a>&nbsp;connection)</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>
</dl>
</li>
</ul>
<a id="doFinishConnect(java.nio.channels.SelectableChannel)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>doFinishConnect</h4>
<pre class="methodSignature">protected&nbsp;boolean&nbsp;doFinishConnect&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;boolean&nbsp;isConnectionPending&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;java.nio.channels.SelectableChannel&nbsp;doAccept&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;void&nbsp;connectionFailed&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Throwable&nbsp;ex,
java.lang.Object&nbsp;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="newSelector()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newSelector</h4>
<pre class="methodSignature">protected&nbsp;java.nio.channels.Selector&nbsp;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="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&nbsp;<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;newEndPoint&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
<a href="ManagedSelector.html" title="class in org.eclipse.jetty.io">ManagedSelector</a>&nbsp;selector,
java.nio.channels.SelectionKey&nbsp;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&nbsp;<a href="Connection.html" title="interface in org.eclipse.jetty.io">Connection</a>&nbsp;newConnection&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
<a href="EndPoint.html" title="interface in org.eclipse.jetty.io">EndPoint</a>&nbsp;endpoint,
java.lang.Object&nbsp;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&nbsp;void&nbsp;addEventListener&#8203;(java.util.EventListener&nbsp;listener)</pre>
</li>
</ul>
<a id="removeEventListener(java.util.EventListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeEventListener</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;removeEventListener&#8203;(java.util.EventListener&nbsp;listener)</pre>
</li>
</ul>
<a id="addAcceptListener(org.eclipse.jetty.io.SelectorManager.AcceptListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAcceptListener</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;addAcceptListener&#8203;(<a href="SelectorManager.AcceptListener.html" title="interface in org.eclipse.jetty.io">SelectorManager.AcceptListener</a>&nbsp;listener)</pre>
</li>
</ul>
<a id="removeAcceptListener(org.eclipse.jetty.io.SelectorManager.AcceptListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAcceptListener</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;removeAcceptListener&#8203;(<a href="SelectorManager.AcceptListener.html" title="interface in org.eclipse.jetty.io">SelectorManager.AcceptListener</a>&nbsp;listener)</pre>
</li>
</ul>
<a id="onAccepting(java.nio.channels.SelectableChannel)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onAccepting</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;onAccepting&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;void&nbsp;onAcceptFailed&#8203;(java.nio.channels.SelectableChannel&nbsp;channel,
java.lang.Throwable&nbsp;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&nbsp;void&nbsp;onAccepted&#8203;(java.nio.channels.SelectableChannel&nbsp;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&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 1995&#x2013;2021 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p>
</footer>
</body>
</html>