comparison src/org/eclipse/jetty/server/Server.java @ 995:0eba8f555c19

remove Server.Graceful
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 18 Oct 2016 18:38:05 -0600
parents 688c39c50ee3
children d9cfec64899c
comparison
equal deleted inserted replaced
994:4e9d373bf6e9 995:0eba8f555c19
178 /* ------------------------------------------------------------ */ 178 /* ------------------------------------------------------------ */
179 /* A handler that can be gracefully shutdown. 179 /* A handler that can be gracefully shutdown.
180 * Called by doStop if a {@link #setGracefulShutdown} period is set. 180 * Called by doStop if a {@link #setGracefulShutdown} period is set.
181 * TODO move this somewhere better 181 * TODO move this somewhere better
182 */ 182 */
183 /*
183 public interface Graceful extends Handler 184 public interface Graceful extends Handler
184 { 185 {
185 public void setShutdown(boolean shutdown); 186 public void setShutdown(boolean shutdown);
186 } 187 }
187 188 */
188 189
189 public final boolean isLowOnThreads() 190 public final boolean isLowOnThreads()
190 { 191 {
191 // getActiveCount() locks the thread pool, so execute it last 192 // getActiveCount() locks the thread pool, so execute it last
192 return threadPool.getPoolSize() == threadPool.getMaximumPoolSize() && 193 return threadPool.getPoolSize() == threadPool.getMaximumPoolSize() &&