Package org.wso2.carbon.utils
Interface WaitBeforeShutdownObserver
-
public interface WaitBeforeShutdownObserverThis interface must be implemented by classes (mainly threads etc), that require notification and waiting before the shutdown sequence commences in the process of a graceful shutdown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisTaskComplete()The server will wait for all tasks to complete before shutting down.voidstartingShutdown()This method will be invoked on all running components before shutdown happens.
-
-
-
Method Detail
-
startingShutdown
void startingShutdown()
This method will be invoked on all running components before shutdown happens.
-
isTaskComplete
boolean isTaskComplete()
The server will wait for all tasks to complete before shutting down.- Returns:
- true if the server needs to wait or false if not.
-
-