Skip to content

Atmosphere's Shutdown Hook: Executing Tasks during undeploy

Jeanfrancois Arcand edited this page Nov 13, 2013 · 1 revision

Sometimes an application needs to execute some task when Atmosphere is undeployed. To achieve such task with Atmosphere, just do:

  AtmosphereResource.getAtmosphereConfig().shutdownHook(new ApplicationConfig.ShutdownHook() {
       public void shutdown() {
            ...
       }  
  });

Step by Step Tutorials

Concepts & Architecture

15 Minutes Tutorial

Advanced Topics

API

Known WebServer Issues

References

External Documentations

githalytics.com alpha

Clone this wiki locally