public class PooledLdapConnectionFactoryHealthIndicator extends AbstractPoolHealthIndicator
PooledConnectionFactory
.Constructor and Description |
---|
PooledLdapConnectionFactoryHealthIndicator(long maxWait,
org.ldaptive.pool.PooledConnectionFactory factory,
java.util.concurrent.ExecutorService executor,
org.ldaptive.pool.Validator<org.ldaptive.Connection> validator) |
Modifier and Type | Method and Description |
---|---|
protected 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 int |
getActiveCount()
Gets the number of pool resources active at present.
|
protected int |
getIdleCount()
Gets the number of pool resources idle at present.
|
doHealthCheck
public PooledLdapConnectionFactoryHealthIndicator(long maxWait, org.ldaptive.pool.PooledConnectionFactory factory, java.util.concurrent.ExecutorService executor, org.ldaptive.pool.Validator<org.ldaptive.Connection> validator)
protected org.springframework.boot.actuate.health.Health.Builder checkPool(org.springframework.boot.actuate.health.Health.Builder builder) throws java.lang.Exception
AbstractPoolHealthIndicator
checkPool
in class AbstractPoolHealthIndicator
builder
- the builderjava.lang.Exception
- Thrown to indicate a serious problem with pool validation.protected int getIdleCount()
AbstractPoolHealthIndicator
getIdleCount
in class AbstractPoolHealthIndicator
protected int getActiveCount()
AbstractPoolHealthIndicator
getActiveCount
in class AbstractPoolHealthIndicator