public abstract static class HealthCheckServlet.ContextListener extends Object implements javax.servlet.ServletContextListener
| Constructor and Description |
|---|
ContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected ExecutorService |
getExecutorService() |
protected io.dropwizard.metrics5.health.HealthCheckFilter |
getHealthCheckFilter() |
protected abstract io.dropwizard.metrics5.health.HealthCheckRegistry |
getHealthCheckRegistry() |
protected abstract io.dropwizard.metrics5.health.HealthCheckRegistry getHealthCheckRegistry()
HealthCheckRegistry to inject into the servlet context.protected ExecutorService getExecutorService()
ExecutorService to inject into the servlet context, or null
if the health checks should be run in the servlet worker thread.protected io.dropwizard.metrics5.health.HealthCheckFilter getHealthCheckFilter()
HealthCheckFilter that shall be used to filter health checks,
or HealthCheckFilter.ALL if the default should be used.public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2018. All Rights Reserved.