Java 9 CompletableFuture API Improvements – Delay and Timeout Support

To improve Java Future, Java 8 provides CompletableFuture which can execute some code whenever its ready. In this article, we’re gonna take a look at new Java 9 CompletableFuture API that supports delay and timeout.

[Continue reading…] “Java 9 CompletableFuture API Improvements – Delay and Timeout Support”

Spring Batch Partition for Scaling & Parallel Processing

For Scaling & Parallel Processing, Spring Batch provides various solutions: Multi-threaded Step, Parallel Steps, Remote Chunking of Step & Partitioning a Step. In the tutorial, JavaSampleApproach will introduce Partitioning a Step cleary by a sample project.

Related articles:
Spring Batch Job with Parallel Steps
How to use Spring Batch Late Binding – Step Scope & Job Scope

[Continue reading…] “Spring Batch Partition for Scaling & Parallel Processing”

How to start Spring Async with Spring Boot

For scaling a heavy system, Java provides a mechanics for executing expensive jobs in background with Java Thread Pool & Future to manage the final results. Spring Framework makes it more easy with annotation @Async. In the How to start Spring Async with Spring Boot, JavaSampleApproach will guide you how to build asynchronized services with @Async & Spring Boot.

Related Posts:
1. How to create a Java Thread
2. Java Thread Pool – ExecutorService
3. Spring ThreadPoolTaskExecutor with Callable interface for concurrency programming
4. Java Future

[Continue reading…] “How to start Spring Async with Spring Boot”

Java Future

In multithreaded programming, Java Future with Callable is very important for tasks which we want to know status and get the returned object.

This article give us an example for how to work with Future and Callable inside.

Related Articles:
Java Thread Pool – ExecutorService
Java 8 CompletableFutures
Java 8 CompletableFuture Handle Exception
Java 8 Multiple CompletableFutures

[Continue reading…] “Java Future”

Spring ThreadPoolTaskExecutor with Callable interface for concurrency programming

Callable is a Java interface that is an useful methodology for control multi-threading returns on concurrency development.

The tutorial will guide you to build a concurrency program with ThreadPoolTaskExecutor of Spring Framework and Callable interface.

[Continue reading…] “Spring ThreadPoolTaskExecutor with Callable interface for concurrency programming”