Return a CompletableFuture instead of a Future from MassIndexer.start()

Description

The CompletableFutures introduced in Java 8 provide a much more powerful API than the old-style Futures do.
E.g. attaching callbacks would be much easier and elegant with a CompletableFuture.

Environment

None

Activity

Show:
Sanne Grinovero
January 5, 2017, 9:14 AM

Great idea, thanks for raising this.

The only issue is to decide in which version we can introduce this change: until version 5.6 we still aim to be Java 7 compatible. Version 5.7 will require Java8 but aims to be API compatible as we only break APIs in 6.0.

I'll optimistically schedule this for version 5.7 to see if we can find a backwards compatible solution.

Relates to: . I'll close the older issue as this seems the better option.

Assignee

Fabio Massimo Ercoli

Reporter

Marco Perazzo

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Minor
Configure