Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-78

Add asynchronous batch, query, and update calls

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4
    • 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.

      Attachments

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

        Activity

          People

            simone.tripodi Simone Tripodi
            wspeirs Bill Speirs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: