Commons DbUtils
  1. Commons DbUtils
  2. DBUTILS-78

Add asynchronous batch, query, and update calls

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Labels:
      None

      Description

      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.

      1. pom.diff
        0.7 kB
        William R. Speirs
      2. DBUTILS-78_Future.patch
        23 kB
        Simone Tripodi
      3. DBUTILS-78_Future_v3.diff
        9 kB
        William R. Speirs
      4. DBUTILS-78_Future_v2.patch
        27 kB
        William R. Speirs
      5. DBUTILS-78_Future_v2.diff
        27 kB
        William R. Speirs
      6. AsyncQueryRunnerTest.java
        20 kB
        William R. Speirs
      7. AsyncQueryRunner.java
        29 kB
        William R. Speirs
      8. async.diff
        107 kB
        William R. Speirs
      9. 08_16_2011.diff
        3 kB
        William R. Speirs

        Activity

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            William R. Speirs
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development