Chagnge TThreadPoolServer in Java to use SynchronousQueue by default
authorMark Slee <mcslee@apache.org>
Thu, 10 Jan 2008 19:57:47 +0000 (19:57 +0000)
committerMark Slee <mcslee@apache.org>
Thu, 10 Jan 2008 19:57:47 +0000 (19:57 +0000)
commit19c9777583bf4614a237be824bbed80fa6db9213
tree3b3d94d10fb25b1f88b843132fc9768260896786
parent89f57164215850cc1b0d12460ce242a44a4143af
Chagnge TThreadPoolServer in Java to use SynchronousQueue by default

Summary: Read the documentation on ThreadPoolExecutor. It's very confusing. Basically, what we want is a queue that always defers to the threadpool and will always create a new thread to do work. We never want the queue to take priority over the thread pool by default.

Reviewed By: dreiss

Test Plan: Run a Java Thrift server

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665419 13f79535-47bb-0310-9956-ffa450edef68
lib/java/src/server/TThreadPoolServer.java