diff src/org/eclipse/jetty/util/thread/ThreadPool.java @ 863:88d3c8ff242a

remove SizedThreadPool
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 02 Oct 2016 05:22:55 -0600
parents 3428c60d7cfc
children
line wrap: on
line diff
--- a/src/org/eclipse/jetty/util/thread/ThreadPool.java	Sun Oct 02 05:17:11 2016 -0600
+++ b/src/org/eclipse/jetty/util/thread/ThreadPool.java	Sun Oct 02 05:22:55 2016 -0600
@@ -27,41 +27,31 @@
  */
 public interface ThreadPool
 {
-    /* ------------------------------------------------------------ */
-    public abstract boolean dispatch(Runnable job);
+	/* ------------------------------------------------------------ */
+	public abstract boolean dispatch(Runnable job);
 
-    /* ------------------------------------------------------------ */
-    /**
-     * Blocks until the thread pool is {@link LifeCycle#stop stopped}.
-     */
-    public void join() throws InterruptedException;
-
-    /* ------------------------------------------------------------ */
-    /**
-     * @return The total number of threads currently in the pool
-     */
-    public int getThreads();
+	/* ------------------------------------------------------------ */
+	/**
+	 * Blocks until the thread pool is {@link LifeCycle#stop stopped}.
+	 */
+	public void join() throws InterruptedException;
 
-    /* ------------------------------------------------------------ */
-    /**
-     * @return The number of idle threads in the pool
-     */
-    public int getIdleThreads();
-    
-    /* ------------------------------------------------------------ */
-    /**
-     * @return True if the pool is low on threads
-     */
-    public boolean isLowOnThreads();
-    
+	/* ------------------------------------------------------------ */
+	/**
+	 * @return The total number of threads currently in the pool
+	 */
+	public int getThreads();
 
-    /* ------------------------------------------------------------ */
-    /* ------------------------------------------------------------ */
-    public interface SizedThreadPool extends ThreadPool
-    {
-        public int getMinThreads();
-        public int getMaxThreads();
-        public void setMinThreads(int threads);
-        public void setMaxThreads(int threads);
-    }
+	/* ------------------------------------------------------------ */
+	/**
+	 * @return The number of idle threads in the pool
+	 */
+	public int getIdleThreads();
+	
+	/* ------------------------------------------------------------ */
+	/**
+	 * @return True if the pool is low on threads
+	 */
+	public boolean isLowOnThreads();
+	
 }