Commit 38865385 authored by Michael Ritter's avatar Michael Ritter
Browse files

Add ContextListener for the CollectionThreadPool

parent 503e4024
package edu.umiacs.ace.util;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
/**
* Created by shake on 9/11/15.
*/
public class CollectionThreadPoolContextListener implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent servletContextEvent) {
}
@Override
public void contextDestroyed(ServletContextEvent servletContextEvent) {
CollectionThreadPoolExecutor.getExecutor().shutdownNow();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment