Rohith
Rohith

Reputation: 356

Is there any way in spring boot to control shutdown mechanism?

Inside Spring-boot application, we have few processes that are running. When I receive terminate signal, I want to finish all the processes that are in processing and start no new process in that state and once all the process are processed then I would like to terminate the application. Is there any way I can achieve this?

Upvotes: 0

Views: 155

Answers (1)

next soft
next soft

Reputation: 26

You can achievement using Actuator endpoints then you will have to enable some endpoint on your case is shutdown, in addition I can leave you a link that can help you, it has good information about it. - > Shutdown a Spring Boot Application Kind regards.

Upvotes: 1

Related Questions