Is this possible or is it managed by the Application Server? Passing the ThreadPoolTaskExecutor ref to a bean is a no-brainer but trying to set the threadfactory on the aforementioned executor seems to have no effect ...
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label threadpool. Show all posts
Showing posts with label threadpool. Show all posts
Tuesday, February 28, 2012
Spring 3 setting ThreadFactory for ThreadPoolTaskExecutor
Tuesday, February 21, 2012
Wednesday, January 18, 2012
ThreadPoolExecutor for running AbortableHttpRequest - how to call abort?
I'm running a networking service in android where I direct all my http requests to run and get callbacks from the service when the requests are complete. I run the requests in a ThreadPoolExecutor to limit the number of concurrent requests. As the requests run within the pool, they eventually create an HttpGet or HttpPost, both of which indirectly implement AbortableHttpRequest , which allows one to cancel the connection (say, if it's blocking for a long time).
Subscribe to:
Posts (Atom)