Package com.unboundid.ldap.sdk
Class LDAPConnectionPoolHealthCheckResult
java.lang.Object
com.unboundid.ldap.sdk.LDAPConnectionPoolHealthCheckResult
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class LDAPConnectionPoolHealthCheckResult
extends Object
implements Serializable
This class provides a data structure that holds information about the result
of an LDAP connection pool health check.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the number of connections found to be invalid (e.g., because they were no longer established, or because they failed the health check) and were attempted to be replaced as defunct.intRetrieves the number of connections that were examined during the health check.intRetrieves the number of connections found to have been established for longer than the pool's maximum connection age and were attempted to be replaced as expired.toString()Retrieves a string representation of this connection pool health check result.voidtoString(StringBuilder buffer) Appends a string representation of this connection pool health check result to the provided buffer.
-
Method Details
-
getNumExamined
Retrieves the number of connections that were examined during the health check.- Returns:
- The number of connections that were examined during the health check.
-
getNumExpired
Retrieves the number of connections found to have been established for longer than the pool's maximum connection age and were attempted to be replaced as expired.- Returns:
- The number of connections found to have been established for longer than the pool's maximum connection age and were attempted to be replaced as expired.
-
getNumDefunct
Retrieves the number of connections found to be invalid (e.g., because they were no longer established, or because they failed the health check) and were attempted to be replaced as defunct.- Returns:
- The number of connections found to be invalid and were attempted to be replaced as defunct.
-
toString
Retrieves a string representation of this connection pool health check result. -
toString
Appends a string representation of this connection pool health check result to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-