blob: f5611749c2c5944a98afaae99f27b49e846640ac [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_191) on Sat Mar 16 03:47:07 CET 2019 -->
<title>BaseThreadPool (Apache MINA API Documentation)</title>
<meta name="date" content="2019-03-16">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BaseThreadPool (Apache MINA API Documentation)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":6,"i7":10,"i8":10,"i9":10,"i10":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";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/BaseThreadPool.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">
<li><a href="../../../../org/apache/mina/util/AvailablePortFinder.html" title="class in org.apache.mina.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mina/util/BaseThreadPool.html" target="_top">Frames</a></li>
<li><a href="BaseThreadPool.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&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 name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.mina.util</div>
<h2 title="Class BaseThreadPool" class="title">Class BaseThreadPool</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.mina.util.BaseThreadPool</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/mina/io/filter/IoThreadPoolFilter.html" title="class in org.apache.mina.io.filter">IoThreadPoolFilter</a>, <a href="../../../../org/apache/mina/protocol/filter/ProtocolThreadPoolFilter.html" title="class in org.apache.mina.protocol.filter">ProtocolThreadPoolFilter</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">BaseThreadPool</span>
extends java.lang.Object
implements <a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></pre>
<div class="block">A base implementation of Thread-pooling filters.
This filter forwards events to its thread pool. This is an implementation of
<a href="http://deuce.doc.wustl.edu/doc/pspdfs/lf.pdf">Leader/Followers
thread pool</a> by Douglas C. Schmidt et al.</div>
<dl>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>$Rev: 332217 $, $Date: 2005-11-10 04:40:26 +0100 (Thu, 10 Nov 2005) $</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>The Apache Directory Project (dev@directory.apache.org)</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util">BaseThreadPool.SessionBuffer</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#DEFAULT_KEEP_ALIVE_TIME">DEFAULT_KEEP_ALIVE_TIME</a></span></code>
<div class="block">Default keep-alive time of thread pool (1 min).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#DEFAULT_MAXIMUM_POOL_SIZE">DEFAULT_MAXIMUM_POOL_SIZE</a></span></code>
<div class="block">Default maximum size of thread pool (2G).</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#BaseThreadPool-java.lang.String-">BaseThreadPool</a></span>(java.lang.String&nbsp;threadNamePrefix)</code>
<div class="block">Creates a new instance with default thread pool settings.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&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></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util">BaseThreadPool.SessionBuffer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#fetchSessionBuffer-org.apache.mina.util.Queue-">fetchSessionBuffer</a></span>(<a href="../../../../org/apache/mina/util/Queue.html" title="class in org.apache.mina.util">Queue</a>&nbsp;unfetchedSessionBuffers)</code>
<div class="block">Implement this method to fetch (or pop) a <a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util"><code>BaseThreadPool.SessionBuffer</code></a> from
the given <tt>unfetchedSessionBuffers</tt>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#fireEvent-java.lang.Object-org.apache.mina.common.Session-org.apache.mina.util.EventType-java.lang.Object-">fireEvent</a></span>(java.lang.Object&nbsp;nextFilter,
<a href="../../../../org/apache/mina/common/Session.html" title="interface in org.apache.mina.common">Session</a>&nbsp;session,
<a href="../../../../org/apache/mina/util/EventType.html" title="class in org.apache.mina.util">EventType</a>&nbsp;type,
java.lang.Object&nbsp;data)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#getKeepAliveTime--">getKeepAliveTime</a></span>()</code>
<div class="block">Returns the keep-alive time until the thread suicides after it became
idle (milliseconds unit).</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#getMaximumPoolSize--">getMaximumPoolSize</a></span>()</code>
<div class="block">Returns the maximum size of the thread pool.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#getPoolSize--">getPoolSize</a></span>()</code>
<div class="block">Returns the number of threads in the thread pool.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#getThreadNamePrefix--">getThreadNamePrefix</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#processEvent-java.lang.Object-org.apache.mina.common.Session-org.apache.mina.util.EventType-java.lang.Object-">processEvent</a></span>(java.lang.Object&nbsp;nextFilter,
<a href="../../../../org/apache/mina/common/Session.html" title="interface in org.apache.mina.common">Session</a>&nbsp;session,
<a href="../../../../org/apache/mina/util/EventType.html" title="class in org.apache.mina.util">EventType</a>&nbsp;type,
java.lang.Object&nbsp;data)</code>
<div class="block">Implement this method to forward events to <tt>nextFilter</tt>.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#setKeepAliveTime-int-">setKeepAliveTime</a></span>(int&nbsp;keepAliveTime)</code>
<div class="block">Sets the keep-alive time until the thread suicides after it became idle
(milliseconds unit).</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#setMaximumPoolSize-int-">setMaximumPoolSize</a></span>(int&nbsp;maximumPoolSize)</code>
<div class="block">Sets the maximum size of the thread pool.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#start--">start</a></span>()</code>
<div class="block">Starts thread pool threads and starts forwarding events to them.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/mina/util/BaseThreadPool.html#stop--">stop</a></span>()</code>
<div class="block">Stops all thread pool threads.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="DEFAULT_MAXIMUM_POOL_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_MAXIMUM_POOL_SIZE</h4>
<pre>public static final&nbsp;int DEFAULT_MAXIMUM_POOL_SIZE</pre>
<div class="block">Default maximum size of thread pool (2G).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.mina.util.BaseThreadPool.DEFAULT_MAXIMUM_POOL_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="DEFAULT_KEEP_ALIVE_TIME">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DEFAULT_KEEP_ALIVE_TIME</h4>
<pre>public static final&nbsp;int DEFAULT_KEEP_ALIVE_TIME</pre>
<div class="block">Default keep-alive time of thread pool (1 min).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.mina.util.BaseThreadPool.DEFAULT_KEEP_ALIVE_TIME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="BaseThreadPool-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BaseThreadPool</h4>
<pre>public&nbsp;BaseThreadPool(java.lang.String&nbsp;threadNamePrefix)</pre>
<div class="block">Creates a new instance with default thread pool settings.
You'll have to invoke <a href="../../../../org/apache/mina/util/BaseThreadPool.html#start--"><code>start()</code></a> method to start threads actually.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>threadNamePrefix</code> - the prefix of the thread names this pool will create.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getThreadNamePrefix--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getThreadNamePrefix</h4>
<pre>public&nbsp;java.lang.String&nbsp;getThreadNamePrefix()</pre>
</li>
</ul>
<a name="getPoolSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPoolSize</h4>
<pre>public&nbsp;int&nbsp;getPoolSize()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#getPoolSize--">ThreadPool</a></code></span></div>
<div class="block">Returns the number of threads in the thread pool.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#getPoolSize--">getPoolSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="getMaximumPoolSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaximumPoolSize</h4>
<pre>public&nbsp;int&nbsp;getMaximumPoolSize()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#getMaximumPoolSize--">ThreadPool</a></code></span></div>
<div class="block">Returns the maximum size of the thread pool.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#getMaximumPoolSize--">getMaximumPoolSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="getKeepAliveTime--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeepAliveTime</h4>
<pre>public&nbsp;int&nbsp;getKeepAliveTime()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#getKeepAliveTime--">ThreadPool</a></code></span></div>
<div class="block">Returns the keep-alive time until the thread suicides after it became
idle (milliseconds unit).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#getKeepAliveTime--">getKeepAliveTime</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="setMaximumPoolSize-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaximumPoolSize</h4>
<pre>public&nbsp;void&nbsp;setMaximumPoolSize(int&nbsp;maximumPoolSize)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#setMaximumPoolSize-int-">ThreadPool</a></code></span></div>
<div class="block">Sets the maximum size of the thread pool.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#setMaximumPoolSize-int-">setMaximumPoolSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="setKeepAliveTime-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKeepAliveTime</h4>
<pre>public&nbsp;void&nbsp;setKeepAliveTime(int&nbsp;keepAliveTime)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#setKeepAliveTime-int-">ThreadPool</a></code></span></div>
<div class="block">Sets the keep-alive time until the thread suicides after it became idle
(milliseconds unit).</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#setKeepAliveTime-int-">setKeepAliveTime</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="start--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre>public&nbsp;void&nbsp;start()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#start--">ThreadPool</a></code></span></div>
<div class="block">Starts thread pool threads and starts forwarding events to them.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#start--">start</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="stop--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre>public&nbsp;void&nbsp;stop()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html#stop--">ThreadPool</a></code></span></div>
<div class="block">Stops all thread pool threads.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/mina/util/ThreadPool.html#stop--">stop</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/mina/util/ThreadPool.html" title="interface in org.apache.mina.util">ThreadPool</a></code></dd>
</dl>
</li>
</ul>
<a name="fireEvent-java.lang.Object-org.apache.mina.common.Session-org.apache.mina.util.EventType-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireEvent</h4>
<pre>protected&nbsp;void&nbsp;fireEvent(java.lang.Object&nbsp;nextFilter,
<a href="../../../../org/apache/mina/common/Session.html" title="interface in org.apache.mina.common">Session</a>&nbsp;session,
<a href="../../../../org/apache/mina/util/EventType.html" title="class in org.apache.mina.util">EventType</a>&nbsp;type,
java.lang.Object&nbsp;data)</pre>
</li>
</ul>
<a name="processEvent-java.lang.Object-org.apache.mina.common.Session-org.apache.mina.util.EventType-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>processEvent</h4>
<pre>protected abstract&nbsp;void&nbsp;processEvent(java.lang.Object&nbsp;nextFilter,
<a href="../../../../org/apache/mina/common/Session.html" title="interface in org.apache.mina.common">Session</a>&nbsp;session,
<a href="../../../../org/apache/mina/util/EventType.html" title="class in org.apache.mina.util">EventType</a>&nbsp;type,
java.lang.Object&nbsp;data)</pre>
<div class="block">Implement this method to forward events to <tt>nextFilter</tt>.</div>
</li>
</ul>
<a name="fetchSessionBuffer-org.apache.mina.util.Queue-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>fetchSessionBuffer</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util">BaseThreadPool.SessionBuffer</a>&nbsp;fetchSessionBuffer(<a href="../../../../org/apache/mina/util/Queue.html" title="class in org.apache.mina.util">Queue</a>&nbsp;unfetchedSessionBuffers)</pre>
<div class="block">Implement this method to fetch (or pop) a <a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util"><code>BaseThreadPool.SessionBuffer</code></a> from
the given <tt>unfetchedSessionBuffers</tt>. The default implementation
simply pops the buffer from it. You could prioritize the fetch order.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A non-null <a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util"><code>BaseThreadPool.SessionBuffer</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/BaseThreadPool.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">
<li><a href="../../../../org/apache/mina/util/AvailablePortFinder.html" title="class in org.apache.mina.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/mina/util/BaseThreadPool.SessionBuffer.html" title="class in org.apache.mina.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/mina/util/BaseThreadPool.html" target="_top">Frames</a></li>
<li><a href="BaseThreadPool.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.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>
</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 name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>