Top "Completable-future" questions

In Java 8, a Future that may be explicitly completed (setting its value and status), and may include dependent functions and actions that trigger upon its completion.

Does an exception handler passed to CompletableFuture.exceptionally() have to return a meaningful value?

I'm used to the ListenableFuture pattern, with onSuccess() and onFailure() callbacks, e.g. ListeningExecutorService service = MoreExecutors.listeningDecorator(Executors.newCachedThreadPool()); ListenableFuture&…

java completable-future
What is the difference between 'CompletionStage' and 'CompletableFuture'

I have seen an example in each of them, but I need to know exactly what is the difference in …

java concurrency playframework completable-future
Separated exception handling of a CompletableFuture

I realize that I'd like the consumers of our API to not have to handle an exception. Or perhaps more …

java java-8 completable-future
How do you access completed futures passed to CompletableFuture allOf?

I am trying to get a grip of Java 8 CompletableFuture. How can I join these to person and return them …

java java-8 completable-future
What is the correct way to create an already-completed CompletableFuture<Void>

I am using Completable futures in java 8 and I want to write a method that, based on a received parameter, …

java concurrency java-8 completable-future
Default ForkJoinPool executor taking long time

I am working with the CompletableFuture for async execution of a stream generated from a list source. so i am …

java-8 executorservice threadpoolexecutor completable-future forkjoinpool
What advantage is there to using Spring @Async vs. CompleteableFuture directly?

What's the advantage of using Spring Async vs. Just returning the CompletableFuture on your own?

java spring asynchronous java-8 completable-future
Spring promoting request scoped bean to child threads (HttpServletRequest)

I tried a lot of things now but i seem to miss a piece of the puzzle. Here is the …

spring multithreading servlets jersey completable-future
CompletableFuture: Waiting for first one normally return?

I have some CompletableFutures and I want to run them in parallel, waiting for the first that returns normally. I …

java java-8 completable-future
How to return a value using CompletableFuture

I created an example, i want to know how can I return a value using the CompletableFuture ? I also changed …

java multithreading callable countdownlatch completable-future