| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (11.0.10) on Mon Feb 22 09:46:49 CST 2021 --> |
| <title>QueuedThreadPool (Eclipse Jetty API Doc - v11.0.1)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="dc.created" content="2021-02-22"> |
| <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="QueuedThreadPool (Eclipse Jetty API Doc - v11.0.1)"; |
| } |
| } |
| 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":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| 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/QueuedThreadPool.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>Field | </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.util.thread</a></div> |
| <h2 title="Class QueuedThreadPool" class="title">Class QueuedThreadPool</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../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="../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.util.thread.QueuedThreadPool</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>java.util.concurrent.Executor</code>, <code>java.util.concurrent.ThreadFactory</code>, <code><a href="../component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></code>, <code><a href="../component/Destroyable.html" title="interface in org.eclipse.jetty.util.component">Destroyable</a></code>, <code><a href="../component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></code>, <code><a href="../component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></code>, <code><a href="../component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></code>, <code><a href="ThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool</a></code>, <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code>, <code><a href="TryExecutor.html" title="interface in org.eclipse.jetty.util.thread">TryExecutor</a></code></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><code><a href="MonitoredQueuedThreadPool.html" title="class in org.eclipse.jetty.util.thread">MonitoredQueuedThreadPool</a></code></dd> |
| </dl> |
| <hr> |
| <pre><a href="../annotation/ManagedObject.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedObject</a>("A thread pool") |
| public class <span class="typeNameLabel">QueuedThreadPool</span> |
| extends <a href="../component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a> |
| implements java.util.concurrent.ThreadFactory, <a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a>, <a href="../component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a>, <a href="TryExecutor.html" title="interface in org.eclipse.jetty.util.thread">TryExecutor</a></pre> |
| </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> |
| <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="../component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../component/AbstractLifeCycle.AbstractLifeCycleListener.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle.AbstractLifeCycleListener</a>, <a href="../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="../component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3> |
| <code><a href="../component/Container.InheritedListener.html" title="interface in org.eclipse.jetty.util.component">Container.InheritedListener</a>, <a href="../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="../component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../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="../component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component">LifeCycle</a></h3> |
| <code><a href="../component/LifeCycle.Listener.html" title="interface in org.eclipse.jetty.util.component">LifeCycle.Listener</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.thread.ThreadPool"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.<a href="ThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool</a></h3> |
| <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.classes.inherited.from.class.org.eclipse.jetty.util.thread.TryExecutor"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.<a href="TryExecutor.html" title="interface in org.eclipse.jetty.util.thread">TryExecutor</a></h3> |
| <code><a href="TryExecutor.NoTryExecutor.html" title="class in org.eclipse.jetty.util.thread">TryExecutor.NoTryExecutor</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> |
| <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="../component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../component/AbstractLifeCycle.html#FAILED">FAILED</a>, <a href="../component/AbstractLifeCycle.html#STARTED">STARTED</a>, <a href="../component/AbstractLifeCycle.html#STARTING">STARTING</a>, <a href="../component/AbstractLifeCycle.html#STOPPED">STOPPED</a>, <a href="../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="../component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../component/Dumpable.html#KEY">KEY</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a id="fields.inherited.from.class.org.eclipse.jetty.util.thread.TryExecutor"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from interface org.eclipse.jetty.util.thread.<a href="TryExecutor.html" title="interface in org.eclipse.jetty.util.thread">TryExecutor</a></h3> |
| <code><a href="TryExecutor.html#NO_TRY">NO_TRY</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">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">QueuedThreadPool</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int)">QueuedThreadPool</a></span>​(int maxThreads)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads, |
| int idleTimeout)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads, |
| int idleTimeout, |
| int reservedThreads, |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, |
| java.lang.ThreadGroup threadGroup)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup,java.util.concurrent.ThreadFactory)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads, |
| int idleTimeout, |
| int reservedThreads, |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, |
| java.lang.ThreadGroup threadGroup, |
| java.util.concurrent.ThreadFactory threadFactory)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int,java.util.concurrent.BlockingQueue)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads, |
| int idleTimeout, |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads, |
| int idleTimeout, |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, |
| java.lang.ThreadGroup threadGroup)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,int,java.util.concurrent.BlockingQueue)">QueuedThreadPool</a></span>​(int maxThreads, |
| int minThreads, |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)</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="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>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="i1" 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="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dump(java.lang.Appendable,java.lang.String)">dump</a></span>​(java.lang.Appendable out, |
| java.lang.String indent)</code></th> |
| <td class="colLast"> |
| <div class="block">Dump this object (and children) into an Appendable using the provided indent after any new lines.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dumpThread(long)">dumpThread</a></span>​(long id)</code></th> |
| <td class="colLast"> </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="#execute(java.lang.Runnable)">execute</a></span>​(java.lang.Runnable job)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBusyThreads()">getBusyThreads</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIdleThreads()">getIdleThreads</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIdleTimeout()">getIdleTimeout</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the maximum thread idle time.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLowThreadsThreshold()">getLowThreadsThreshold</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxThreads()">getMaxThreads</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the maximum number of threads.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMinThreads()">getMinThreads</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the minimum number of threads.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getName()">getName</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>protected java.util.concurrent.BlockingQueue<java.lang.Runnable></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getQueue()">getQueue</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getQueueSize()">getQueueSize</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the size of the job queue.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <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">Get the number of reserved threads.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStopTimeout()">getStopTimeout</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><a href="ThreadPoolBudget.html" title="class in org.eclipse.jetty.util.thread">ThreadPoolBudget</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getThreadPoolBudget()">getThreadPoolBudget</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getThreads()">getThreads</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getThreadsPriority()">getThreadsPriority</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Get the priority of the pool threads.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#interruptThread(long)">interruptThread</a></span>​(long id)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isDaemon()">isDaemon</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isDetailedDump()">isDetailedDump</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isLowOnThreads()">isLowOnThreads</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns whether this thread pool is low on threads.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#join()">join</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Blocks until the thread pool is <a href="../component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component"><code>LifeCycle</code></a> stopped.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>java.lang.Thread</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#newThread(java.lang.Runnable)">newThread</a></span>​(java.lang.Runnable runnable)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeThread(java.lang.Thread)">removeThread</a></span>​(java.lang.Thread thread)</code></th> |
| <td class="colLast"> </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="#runJob(java.lang.Runnable)">runJob</a></span>​(java.lang.Runnable job)</code></th> |
| <td class="colLast"> |
| <div class="block">Runs the given job in the <code>current thread</code>.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDaemon(boolean)">setDaemon</a></span>​(boolean daemon)</code></th> |
| <td class="colLast"> |
| <div class="block">Thread Pool should use Daemon Threading.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDetailedDump(boolean)">setDetailedDump</a></span>​(boolean detailedDump)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIdleTimeout(int)">setIdleTimeout</a></span>​(int idleTimeout)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the maximum thread idle time.</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="#setLowThreadsThreshold(int)">setLowThreadsThreshold</a></span>​(int lowThreadsThreshold)</code></th> |
| <td class="colLast"> </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="#setMaxThreads(int)">setMaxThreads</a></span>​(int maxThreads)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the maximum number of threads.</div> |
| </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="#setMinThreads(int)">setMinThreads</a></span>​(int minThreads)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the minimum number of threads.</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="#setName(java.lang.String)">setName</a></span>​(java.lang.String name)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setReservedThreads(int)">setReservedThreads</a></span>​(int reservedThreads)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the number of reserved threads.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStopTimeout(long)">setStopTimeout</a></span>​(long stopTimeout)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setThreadPoolBudget(org.eclipse.jetty.util.thread.ThreadPoolBudget)">setThreadPoolBudget</a></span>​(<a href="ThreadPoolBudget.html" title="class in org.eclipse.jetty.util.thread">ThreadPoolBudget</a> budget)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setThreadsPriority(int)">setThreadsPriority</a></span>​(int priority)</code></th> |
| <td class="colLast"> |
| <div class="block">Set the priority of the pool threads.</div> |
| </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#startThread()">startThread</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tryExecute(java.lang.Runnable)">tryExecute</a></span>​(java.lang.Runnable task)</code></th> |
| <td class="colLast"> |
| <div class="block">Attempt to execute a task.</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="../component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></h3> |
| <code><a href="../component/ContainerLifeCycle.html#addBean(java.lang.Object)">addBean</a>, <a href="../component/ContainerLifeCycle.html#addBean(java.lang.Object,boolean)">addBean</a>, <a href="../component/ContainerLifeCycle.html#addEventListener(java.util.EventListener)">addEventListener</a>, <a href="../component/ContainerLifeCycle.html#addManaged(org.eclipse.jetty.util.component.LifeCycle)">addManaged</a>, <a href="../component/ContainerLifeCycle.html#contains(java.lang.Object)">contains</a>, <a href="../component/ContainerLifeCycle.html#destroy()">destroy</a>, <a href="../component/ContainerLifeCycle.html#dump()">dump</a>, <a href="../component/ContainerLifeCycle.html#dump(java.lang.Appendable)">dump</a>, <a href="../component/ContainerLifeCycle.html#dumpObjects(java.lang.Appendable,java.lang.String,java.lang.Object...)">dumpObjects</a>, <a href="../component/ContainerLifeCycle.html#dumpStdErr()">dumpStdErr</a>, <a href="../component/ContainerLifeCycle.html#getBean(java.lang.Class)">getBean</a>, <a href="../component/ContainerLifeCycle.html#getBeans()">getBeans</a>, <a href="../component/ContainerLifeCycle.html#getBeans(java.lang.Class)">getBeans</a>, <a href="../component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class)">getContainedBeans</a>, <a href="../component/ContainerLifeCycle.html#getContainedBeans(java.lang.Class,java.util.Collection)">getContainedBeans</a>, <a href="../component/ContainerLifeCycle.html#isAuto(java.lang.Object)">isAuto</a>, <a href="../component/ContainerLifeCycle.html#isManaged(java.lang.Object)">isManaged</a>, <a href="../component/ContainerLifeCycle.html#isUnmanaged(java.lang.Object)">isUnmanaged</a>, <a href="../component/ContainerLifeCycle.html#manage(java.lang.Object)">manage</a>, <a href="../component/ContainerLifeCycle.html#removeBean(java.lang.Object)">removeBean</a>, <a href="../component/ContainerLifeCycle.html#removeBeans()">removeBeans</a>, <a href="../component/ContainerLifeCycle.html#removeEventListener(java.util.EventListener)">removeEventListener</a>, <a href="../component/ContainerLifeCycle.html#setBeans(java.util.Collection)">setBeans</a>, <a href="../component/ContainerLifeCycle.html#start(org.eclipse.jetty.util.component.LifeCycle)">start</a>, <a href="../component/ContainerLifeCycle.html#stop(org.eclipse.jetty.util.component.LifeCycle)">stop</a>, <a href="../component/ContainerLifeCycle.html#unmanage(java.lang.Object)">unmanage</a>, <a href="../component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object)">updateBean</a>, <a href="../component/ContainerLifeCycle.html#updateBean(java.lang.Object,java.lang.Object,boolean)">updateBean</a>, <a href="../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 org.eclipse.jetty.util.component.<a href="../component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></h3> |
| <code><a href="../component/AbstractLifeCycle.html#getEventListeners()">getEventListeners</a>, <a href="../component/AbstractLifeCycle.html#getState()">getState</a>, <a href="../component/AbstractLifeCycle.html#getState(org.eclipse.jetty.util.component.LifeCycle)">getState</a>, <a href="../component/AbstractLifeCycle.html#isFailed()">isFailed</a>, <a href="../component/AbstractLifeCycle.html#isRunning()">isRunning</a>, <a href="../component/AbstractLifeCycle.html#isStarted()">isStarted</a>, <a href="../component/AbstractLifeCycle.html#isStarting()">isStarting</a>, <a href="../component/AbstractLifeCycle.html#isStopped()">isStopped</a>, <a href="../component/AbstractLifeCycle.html#isStopping()">isStopping</a>, <a href="../component/AbstractLifeCycle.html#setEventListeners(java.util.Collection)">setEventListeners</a>, <a href="../component/AbstractLifeCycle.html#start()">start</a>, <a href="../component/AbstractLifeCycle.html#stop()">stop</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="../component/Container.html" title="interface in org.eclipse.jetty.util.component">Container</a></h3> |
| <code><a href="../component/Container.html#getCachedBeans(java.lang.Class)">getCachedBeans</a>, <a href="../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="../component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></h3> |
| <code><a href="../component/Dumpable.html#dump()">dump</a>, <a href="../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="../component/Dumpable.DumpableContainer.html" title="interface in org.eclipse.jetty.util.component">Dumpable.DumpableContainer</a></h3> |
| <code><a href="../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"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool()</pre> |
| </li> |
| </ul> |
| <a id="<init>(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int,java.util.concurrent.BlockingQueue)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("queue") |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("idleTimeout") |
| int idleTimeout)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int,int,java.util.concurrent.BlockingQueue)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("idleTimeout") |
| int idleTimeout, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("queue") |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("idleTimeout") |
| int idleTimeout, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("queue") |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("threadGroup") |
| java.lang.ThreadGroup threadGroup)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("idleTimeout") |
| int idleTimeout, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("reservedThreads") |
| int reservedThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("queue") |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("threadGroup") |
| java.lang.ThreadGroup threadGroup)</pre> |
| </li> |
| </ul> |
| <a id="<init>(int,int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup,java.util.concurrent.ThreadFactory)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>QueuedThreadPool</h4> |
| <pre>public QueuedThreadPool​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("maxThreads") |
| int maxThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("minThreads") |
| int minThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("idleTimeout") |
| int idleTimeout, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("reservedThreads") |
| int reservedThreads, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("queue") |
| java.util.concurrent.BlockingQueue<java.lang.Runnable> queue, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("threadGroup") |
| java.lang.ThreadGroup threadGroup, |
| <a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("threadFactory") |
| java.util.concurrent.ThreadFactory threadFactory)</pre> |
| </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="getThreadPoolBudget()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThreadPoolBudget</h4> |
| <pre class="methodSignature">public <a href="ThreadPoolBudget.html" title="class in org.eclipse.jetty.util.thread">ThreadPoolBudget</a> getThreadPoolBudget()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.SizedThreadPool.html#getThreadPoolBudget()">getThreadPoolBudget</a></code> in interface <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a ThreadPoolBudget for this sized thread pool, |
| or null of no ThreadPoolBudget can be returned</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setThreadPoolBudget(org.eclipse.jetty.util.thread.ThreadPoolBudget)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setThreadPoolBudget</h4> |
| <pre class="methodSignature">public void setThreadPoolBudget​(<a href="ThreadPoolBudget.html" title="class in org.eclipse.jetty.util.thread">ThreadPoolBudget</a> budget)</pre> |
| </li> |
| </ul> |
| <a id="setStopTimeout(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStopTimeout</h4> |
| <pre class="methodSignature">public void setStopTimeout​(long stopTimeout)</pre> |
| </li> |
| </ul> |
| <a id="getStopTimeout()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStopTimeout</h4> |
| <pre class="methodSignature">public long getStopTimeout()</pre> |
| </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="../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="../component/ContainerLifeCycle.html#doStart()">doStart</a></code> in class <code><a href="../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="../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="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="../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="../component/ContainerLifeCycle.html#doStop()">doStop</a></code> in class <code><a href="../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="setDaemon(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDaemon</h4> |
| <pre class="methodSignature">public void setDaemon​(boolean daemon)</pre> |
| <div class="block">Thread Pool should use Daemon Threading.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>daemon</code> - true to enable delegation</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Thread.setDaemon(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setIdleTimeout(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setIdleTimeout</h4> |
| <pre class="methodSignature">public void setIdleTimeout​(int idleTimeout)</pre> |
| <div class="block">Set the maximum thread idle time. |
| Threads that are idle for longer than this period may be |
| stopped.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>idleTimeout</code> - Max idle time in ms.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#getIdleTimeout()"><code>getIdleTimeout()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setMaxThreads(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMaxThreads</h4> |
| <pre class="methodSignature">public void setMaxThreads​(int maxThreads)</pre> |
| <div class="block">Set the maximum number of threads.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.SizedThreadPool.html#setMaxThreads(int)">setMaxThreads</a></code> in interface <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maxThreads</code> - maximum number of threads.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#getMaxThreads()"><code>getMaxThreads()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setMinThreads(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMinThreads</h4> |
| <pre class="methodSignature">public void setMinThreads​(int minThreads)</pre> |
| <div class="block">Set the minimum number of threads.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.SizedThreadPool.html#setMinThreads(int)">setMinThreads</a></code> in interface <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>minThreads</code> - minimum number of threads</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#getMinThreads()"><code>getMinThreads()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setReservedThreads(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setReservedThreads</h4> |
| <pre class="methodSignature">public void setReservedThreads​(int reservedThreads)</pre> |
| <div class="block">Set the number of reserved threads.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reservedThreads</code> - number of reserved threads or -1 for heuristically determined</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#getReservedThreads()"><code>getReservedThreads()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setName(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setName</h4> |
| <pre class="methodSignature">public void setName​(java.lang.String name)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Name of this thread pool to use when naming threads.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="setThreadsPriority(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setThreadsPriority</h4> |
| <pre class="methodSignature">public void setThreadsPriority​(int priority)</pre> |
| <div class="block">Set the priority of the pool threads.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>priority</code> - the new thread priority.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getIdleTimeout()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIdleTimeout</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("maximum time a thread may be idle in ms") |
| public int getIdleTimeout()</pre> |
| <div class="block">Get the maximum thread idle time.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Max idle time in ms.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#setIdleTimeout(int)"><code>setIdleTimeout(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getMaxThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMaxThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("maximum number of threads in the pool") |
| public int getMaxThreads()</pre> |
| <div class="block">Get the maximum number of threads.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.SizedThreadPool.html#getMaxThreads()">getMaxThreads</a></code> in interface <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>maximum number of threads.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#setMaxThreads(int)"><code>setMaxThreads(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getMinThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMinThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("minimum number of threads in the pool") |
| public int getMinThreads()</pre> |
| <div class="block">Get the minimum number of threads.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.SizedThreadPool.html#getMinThreads()">getMinThreads</a></code> in interface <code><a href="ThreadPool.SizedThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool.SizedThreadPool</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>minimum number of threads.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#setMinThreads(int)"><code>setMinThreads(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getReservedThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getReservedThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("the number of reserved threads in the pool") |
| public int getReservedThreads()</pre> |
| <div class="block">Get the number of reserved threads.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>number of reserved threads or or -1 for heuristically determined</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#setReservedThreads(int)"><code>setReservedThreads(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getName()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getName</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("name of the thread pool") |
| public java.lang.String getName()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The name of the this thread pool</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getThreadsPriority()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThreadsPriority</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("priority of threads in the pool") |
| public int getThreadsPriority()</pre> |
| <div class="block">Get the priority of the pool threads.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the priority of the pool threads.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getQueueSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getQueueSize</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("size of the job queue") |
| public int getQueueSize()</pre> |
| <div class="block">Get the size of the job queue.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Number of jobs queued waiting for a thread</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isDaemon()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDaemon</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("thread pool uses daemon threads") |
| public boolean isDaemon()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether this thread pool is using daemon threads</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>Thread.setDaemon(boolean)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isDetailedDump()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isDetailedDump</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("reports additional details in the dump") |
| public boolean isDetailedDump()</pre> |
| </li> |
| </ul> |
| <a id="setDetailedDump(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDetailedDump</h4> |
| <pre class="methodSignature">public void setDetailedDump​(boolean detailedDump)</pre> |
| </li> |
| </ul> |
| <a id="getLowThreadsThreshold()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLowThreadsThreshold</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("threshold at which the pool is low on threads") |
| public int getLowThreadsThreshold()</pre> |
| </li> |
| </ul> |
| <a id="setLowThreadsThreshold(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setLowThreadsThreshold</h4> |
| <pre class="methodSignature">public void setLowThreadsThreshold​(int lowThreadsThreshold)</pre> |
| </li> |
| </ul> |
| <a id="execute(java.lang.Runnable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>execute</h4> |
| <pre class="methodSignature">public void execute​(java.lang.Runnable job)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code>execute</code> in interface <code>java.util.concurrent.Executor</code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="TryExecutor.html#execute(java.lang.Runnable)">execute</a></code> in interface <code><a href="TryExecutor.html" title="interface in org.eclipse.jetty.util.thread">TryExecutor</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="tryExecute(java.lang.Runnable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>tryExecute</h4> |
| <pre class="methodSignature">public boolean tryExecute​(java.lang.Runnable task)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="TryExecutor.html#tryExecute(java.lang.Runnable)">TryExecutor</a></code></span></div> |
| <div class="block">Attempt to execute a task.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="TryExecutor.html#tryExecute(java.lang.Runnable)">tryExecute</a></code> in interface <code><a href="TryExecutor.html" title="interface in org.eclipse.jetty.util.thread">TryExecutor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>task</code> - The task to be executed</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>True IFF the task has been given directly to a thread to execute. The task cannot be queued pending the later availability of a Thread.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="join()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>join</h4> |
| <pre class="methodSignature">public void join() |
| throws java.lang.InterruptedException</pre> |
| <div class="block">Blocks until the thread pool is <a href="../component/LifeCycle.html" title="interface in org.eclipse.jetty.util.component"><code>LifeCycle</code></a> stopped.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.html#join()">join</a></code> in interface <code><a href="ThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.InterruptedException</code> - if thread was interrupted</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("number of threads in the pool") |
| public int getThreads()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.html#getThreads()">getThreads</a></code> in interface <code><a href="ThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the total number of threads currently in the pool</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getIdleThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIdleThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("number of idle threads in the pool") |
| public int getIdleThreads()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.html#getIdleThreads()">getIdleThreads</a></code> in interface <code><a href="ThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of idle threads in the pool</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getBusyThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBusyThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>("number of busy threads in the pool") |
| public int getBusyThreads()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of busy threads in the pool</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="isLowOnThreads()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isLowOnThreads</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedAttribute.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedAttribute</a>(<a href="../annotation/ManagedAttribute.html#value()">value</a>="thread pool is low on threads", |
| <a href="../annotation/ManagedAttribute.html#readonly()">readonly</a>=true) |
| public boolean isLowOnThreads()</pre> |
| <div class="block"><p>Returns whether this thread pool is low on threads.</p> |
| <p>The current formula is:</p> |
| <pre> |
| maxThreads - threads + idleThreads - queueSize <= lowThreadsThreshold |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="ThreadPool.html#isLowOnThreads()">isLowOnThreads</a></code> in interface <code><a href="ThreadPool.html" title="interface in org.eclipse.jetty.util.thread">ThreadPool</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>whether the pool is low on threads</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="#getLowThreadsThreshold()"><code>getLowThreadsThreshold()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="startThread()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>startThread</h4> |
| <pre class="methodSignature">protected void startThread()</pre> |
| </li> |
| </ul> |
| <a id="newThread(java.lang.Runnable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newThread</h4> |
| <pre class="methodSignature">public java.lang.Thread newThread​(java.lang.Runnable runnable)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code>newThread</code> in interface <code>java.util.concurrent.ThreadFactory</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="removeThread(java.lang.Thread)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeThread</h4> |
| <pre class="methodSignature">protected void removeThread​(java.lang.Thread thread)</pre> |
| </li> |
| </ul> |
| <a id="dump(java.lang.Appendable,java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>dump</h4> |
| <pre class="methodSignature">public void dump​(java.lang.Appendable out, |
| java.lang.String indent) |
| throws java.io.IOException</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../component/Dumpable.html#dump(java.lang.Appendable,java.lang.String)">Dumpable</a></code></span></div> |
| <div class="block">Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| The indent should not be applied to the first object dumped.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../component/Dumpable.html#dump(java.lang.Appendable,java.lang.String)">dump</a></code> in interface <code><a href="../component/Dumpable.html" title="interface in org.eclipse.jetty.util.component">Dumpable</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../component/ContainerLifeCycle.html#dump(java.lang.Appendable,java.lang.String)">dump</a></code> in class <code><a href="../component/ContainerLifeCycle.html" title="class in org.eclipse.jetty.util.component">ContainerLifeCycle</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>out</code> - The appendable to dump to</dd> |
| <dd><code>indent</code> - The indent to apply after any new lines.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.io.IOException</code> - if unable to write to Appendable</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="toString()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre class="methodSignature">public java.lang.String toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../component/AbstractLifeCycle.html#toString()">toString</a></code> in class <code><a href="../component/AbstractLifeCycle.html" title="class in org.eclipse.jetty.util.component">AbstractLifeCycle</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="runJob(java.lang.Runnable)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>runJob</h4> |
| <pre class="methodSignature">protected void runJob​(java.lang.Runnable job)</pre> |
| <div class="block"><p>Runs the given job in the <code>current thread</code>.</p> |
| <p>Subclasses may override to perform pre/post actions before/after the job is run.</p></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>job</code> - the job to run</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getQueue()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getQueue</h4> |
| <pre class="methodSignature">protected java.util.concurrent.BlockingQueue<java.lang.Runnable> getQueue()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the job queue</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="interruptThread(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>interruptThread</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedOperation.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedOperation</a>("interrupts a pool thread") |
| public boolean interruptThread​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("id") |
| long id)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>id</code> - the thread ID to interrupt.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the thread was found and interrupted.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="dumpThread(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>dumpThread</h4> |
| <pre class="methodSignature"><a href="../annotation/ManagedOperation.html" title="annotation in org.eclipse.jetty.util.annotation">@ManagedOperation</a>("dumps a pool thread stack") |
| public java.lang.String dumpThread​(<a href="../annotation/Name.html" title="annotation in org.eclipse.jetty.util.annotation">@Name</a>("id") |
| long id)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>id</code> - the thread ID to interrupt.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the stack frames dump</dd> |
| </dl> |
| </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/QueuedThreadPool.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>Field | </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–2021 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |