public abstract class AbstractPoolHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
Constructor and Description |
---|
AbstractPoolHealthIndicator() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.springframework.boot.actuate.health.Health.Builder |
checkPool(org.springframework.boot.actuate.health.Health.Builder builder)
Performs a health check on a the pool.
|
protected void |
doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) |
protected int |
getActiveCount()
Gets the number of pool resources active at present.
|
protected int |
getIdleCount()
Gets the number of pool resources idle at present.
|
protected void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder)
doHealthCheck
in class org.springframework.boot.actuate.health.AbstractHealthIndicator
protected abstract org.springframework.boot.actuate.health.Health.Builder checkPool(org.springframework.boot.actuate.health.Health.Builder builder) throws java.lang.Exception
builder
- the builderjava.lang.Exception
- Thrown to indicate a serious problem with pool validation.protected int getIdleCount()
protected int getActiveCount()