ExecutorService that interrupts tasks after a timeout

Posted by scompt.com on Stack Overflow See other posts from Stack Overflow or by scompt.com
Published on 2010-05-03T14:10:36Z Indexed on 2010/05/03 14:58 UTC
Read the original article Hit count: 286

I'm looking for an ExecutorService implementation that can be provided with a timeout. Tasks that are submitted to the ExecutorService are interrupted if they take longer than the timeout to run. Implementing such a beast isn't such a difficult task, but I'm wondering if anybody knows of an existing implementation.

© Stack Overflow or respective owner

Related posts about java

Related posts about concurrent