[ 
https://issues.apache.org/jira/browse/DBUTILS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087566#comment-13087566
 ] 

Henri Yandell commented on DBUTILS-78:
--------------------------------------

Patch applied. I changed the exception on the 2nd example block to be an 
InterruptedException.

On the deprecation, it depends on what version we release as. If we stay as 
1.4, then we would probably hang on to them. If we move to 2.0 then they would 
go. 

You changed the code to only depend on Callable, so I think it's JDK 1.5 
dependent again which decreases the need to do a 2.0.

> Add asynchronous batch, query, and update calls
> -----------------------------------------------
>
>                 Key: DBUTILS-78
>                 URL: https://issues.apache.org/jira/browse/DBUTILS-78
>             Project: Commons DbUtils
>          Issue Type: New Feature
>            Reporter: William R. Speirs
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: 08_16_2011.diff, AsyncQueryRunner.java, 
> AsyncQueryRunnerTest.java, async.diff, pom.diff
>
>
> I propose a new QueryRunner class, AsyncQueryRunner, which changes the return 
> type of batch, query, and update methods. Instead of returning their 
> respective return types, the methods would return a RunnableFuture. This 
> would allow callers to either execute the RunnableFuture in a thread or via 
> an CompletionService like the ExecutorCompletionService.
> I have attached a first cut at this class.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to