Package org.activiti.engine
Class ApplicationStatusHolder
java.lang.Object
org.activiti.engine.ApplicationStatusHolder
Associates a given application status with the current application execution.
The purpose of the class is to provide a convenient way to mark the application in shutdown in order to apply
different strategies depending on it.
This status is not set automatically by Activiti, it must be set by the user application depending on other
frameworks in use. For instance if we are using Spring Boot we can catch the
org.springframework.context.event.ContextClosedEvent and mark the application as in shutdown.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ApplicationStatusHolder
public ApplicationStatusHolder()
-
-
Method Details
-
shutdown
public static void shutdown() -
isShutdownInProgress
public static boolean isShutdownInProgress() -
isRunning
public static boolean isRunning()
-