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

        Activity

        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        William R. Speirs made changes -
        Attachment DBUTILS-78_Future_v3.diff [ 12496881 ]
        Simone Tripodi made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Assignee Simone Tripodi [ simone.tripodi ]
        Resolution Fixed [ 1 ]
        William R. Speirs made changes -
        Attachment DBUTILS-78_Future_v2.diff [ 12496488 ]
        William R. Speirs made changes -
        Attachment DBUTILS-78_Future_v2.patch [ 12496477 ]
        Simone Tripodi made changes -
        Attachment DBUTILS-78_Future.patch [ 12496411 ]
        Simone Tripodi made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Henri Yandell made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        William R. Speirs made changes -
        Attachment 08_16_2011.diff [ 12490529 ]
        William R. Speirs made changes -
        Attachment async.diff [ 12490280 ]
        William R. Speirs made changes -
        Attachment async.diff [ 12490254 ]
        William R. Speirs made changes -
        Attachment async.diff [ 12490254 ]
        William R. Speirs made changes -
        Attachment pom.diff [ 12489476 ]
        William R. Speirs made changes -
        Attachment AsyncQueryRunnerTest.java [ 12488310 ]
        William R. Speirs made changes -
        Attachment AsyncQueryRunner.java [ 12488309 ]
        William R. Speirs made changes -
        Attachment AsyncQueryRunner.java [ 12488160 ]
        William R. Speirs made changes -
        Field Original Value New Value
        Attachment AsyncQueryRunner.java [ 12488160 ]
        William R. Speirs created issue -

          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