[
https://issues.apache.org/jira/browse/DBUTILS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073197#comment-13073197
]
William R. Speirs commented on DBUTILS-78:
------------------------------------------
I wrote unit tests for the AsyncQueryRunner code. I am getting 73% coverage
over the AsyncQueryRunner class. The only things that are not covered are a few
exceptions in a few places; however, all methods are covered.
I also replaced the version of my AsyncQueryRunner code after fixing numerous
bugs I found while writing the unit tests.
> 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: AsyncQueryRunner.java, AsyncQueryRunnerTest.java
>
>
> 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