Package org.wso2.carbon.andes.listeners
Class AndesServerShutDownListener
java.lang.Object
org.wso2.carbon.andes.listeners.AndesServerShutDownListener
- All Implemented Interfaces:
org.wso2.carbon.core.ServerShutdownHandler
public class AndesServerShutDownListener
extends Object
implements org.wso2.carbon.core.ServerShutdownHandler
Any specific things that need to be done before the server is shutdown should be handled by this handler. Please
note that this is not intended for doing cleanup on bundle deactivation. That should be done within each
respective bundle. Any pre-shutdown work that needs to be done, should be done here.
-
Constructor Summary
ConstructorsConstructorDescriptionAndesServerShutDownListener(org.osgi.framework.ServiceRegistration qpidService) Need to keep reference of QpidService so that we can unregister it. -
Method Summary
Modifier and TypeMethodDescriptionvoidinvoke()Before the shut down process begins, we need to close any and all dependent services threads that could be affected by unavailability of dependencies activated within the server.
-
Constructor Details
-
AndesServerShutDownListener
public AndesServerShutDownListener(org.osgi.framework.ServiceRegistration qpidService) Need to keep reference of QpidService so that we can unregister it.- Parameters:
qpidService-
-
-
Method Details
-
invoke
public void invoke()Before the shut down process begins, we need to close any and all dependent services threads that could be affected by unavailability of dependencies activated within the server.- Specified by:
invokein interfaceorg.wso2.carbon.core.ServerShutdownHandler
-