org.wso2.carbon.utils
Interface WaitBeforeShutdownObserver


public interface WaitBeforeShutdownObserver

This 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
 boolean isTaskComplete()
          The server will wait for all tasks to complete before shutting down.
 void startingShutdown()
          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.


Copyright © 2014 WSO2 Inc. All rights reserved.