Async Query Results

Repository queries can be executed asynchronously using @Async annotation.

The result can be a Future, CompletableFuture and ListenableFuture. The method will return immediately upon invocation:

@asyncFuture findByName(String name);@asyncCompletableFuture findByName(String name);@asyncListenableFuture findByName(String name);
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts