bookkeeper-distributedlog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sijie <>
Subject [GitHub] incubator-distributedlog pull request #133: DL-124: Use Java8 Future rather ...
Date Fri, 02 Jun 2017 23:48:54 GMT
GitHub user sijie opened a pull request:

    DL-124: Use Java8 Future rather than twitter Future

    Switch to use Java8 CompletableFuture, to reduce dependencies introduced by twitter future
and make it more friendly to users (users don't think of using which version of scala).
    This change is based on #132 . Gitsha ce0686e is the change to review.
    The changes:
    - Change Future to CompletableFuture
    - Map to thenApply
    - flatMap to thenCompose
    - Added a FutureEventListener, and switch addEvenListener to whenComplete (or whenCompleteAsync)
    - setValue to complete
    - setException to completeExceptionally
    - add rescue, ignore, ensure to FutureUtils as util functions.

You can merge this pull request into a Git repository by running:

    $ git pull change_twitter_future_to_java_future

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #133
commit 54c2de047e1656e34ead7fb54070441afd9c140d
Author: Sijie Guo <>
Date:   2017-05-26T22:05:43Z

    Re-organize the distributedlog modules
    - move proxy related class from protocol to proxy-protocol, changed client and service
to proxy-client and proxy-service

commit 67e76150b103422f16883857a1c1345cf044fb45
Author: Sijie Guo <>
Date:   2017-05-27T07:04:40Z

    Use integration for exception code rather than thrift generated StatusCode

commit 6e587869f87cdce50ae93ba3d52767719d1ab5a6
Author: Sijie Guo <>
Date:   2017-05-27T07:34:02Z

    Use the latest thrift version for distributedlog-core and remove scrooge

commit ce0686e30e89c75ffce81473de5a0264d5d95f58
Author: Sijie Guo <>
Date:   2017-05-29T23:06:19Z

    Change Twitter Future to Java8 CompletableFuture


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message