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 t
Wrap the task in FutureTask and you can specify timeout for the FutureTask. Look at the example in my answer to this question,
java native Process timeout