Skip to main content

Callable

Learn Callable (Performance Optimization, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Callable : a controller method returns java.util.concurrent.Callable<T> , and Spring runs it on another thread while the servlet thread is freed. Result handling : the value the callable returns is treated as the controller result, so view names, bodies and status work as normal. Simplest async option : you do not manage the thread or the completion yourself.

More lessons in Performance Optimization