[
https://issues.apache.org/jira/browse/DBUTILS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082143#comment-13082143
]
Henri Yandell commented on DBUTILS-78:
--------------------------------------
Patch applies; code compiles and tests pass.
Two main issues I see are:
1) Java 6 dependent (due to RunnableFuture). Currently DbUtils is 1.5. Given
that 1.5 is EOL now, I don't think it's out of the question to move to Java 6.
2) Need some class documentation providing an example of how to use it.
Alternatively update the examples.xml; but I think moving examples back to the
classes and package.html might be more valuable for DbUtils. The class
documentation should also explain what it is (currently same as QueryRunner)
and when you'd use it instead of QueryRunner.
I recognize on the latter that this is asking more than QueryRunner has :)
> 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,
> 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