commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <>
Subject [jira] [Reopened] (DBUTILS-78) Add asynchronous batch, query, and update calls
Date Sun, 25 Sep 2011 19:53:26 GMT


Simone Tripodi reopened DBUTILS-78:

I think we could do a little step forward to avoid users have to write redundant code, adding
in the constructors the {{ExecutorService}} to run async code and changing the methods signatures
returning {{Future}} instead of {{Callable}}.
I'm going to attach a patch with a PoC so we can discuss if including it or not in 1.5

> Add asynchronous batch, query, and update calls
> -----------------------------------------------
>                 Key: DBUTILS-78
>                 URL:
>             Project: Commons DbUtils
>          Issue Type: New Feature
>            Reporter: William R. Speirs
>            Priority: Minor
>             Fix For: 1.4
>         Attachments: 08_16_2011.diff,,,
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:


View raw message