Package io.dropwizard.core.setup
Class HealthCheckConfiguration
java.lang.Object
io.dropwizard.core.setup.HealthCheckConfiguration
A factory for configuring the health check sub-system for the environment.
Configuration Parameters:
Name | Default | Description |
servletEnabled | true | Whether to enable the admin health check servlet. |
minThreads | 1 | The minimum number of threads for executing health checks. |
maxThreads | 4 | The maximum number of threads for executing health checks. |
workQueueSize | 1 | The length of the work queue for health check executions. |
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
void
setMaxThreads
(int maxThreads) void
setMinThreads
(int minThreads) void
setServletEnabled
(boolean servletEnabled) void
setWorkQueueSize
(int workQueueSize) toString()
-
Constructor Details
-
HealthCheckConfiguration
public HealthCheckConfiguration()
-
-
Method Details
-
isServletEnabled
public boolean isServletEnabled() -
setServletEnabled
public void setServletEnabled(boolean servletEnabled) -
getMinThreads
public int getMinThreads() -
setMinThreads
public void setMinThreads(int minThreads) -
getMaxThreads
public int getMaxThreads() -
setMaxThreads
public void setMaxThreads(int maxThreads) -
getWorkQueueSize
public int getWorkQueueSize() -
setWorkQueueSize
public void setWorkQueueSize(int workQueueSize) -
toString
-