@Override
    protected void doHealthCheck(final Health.Builder builder) {
        try {
            val client = getClientFromPool();
            if (client.getAvailableServers().isEmpty()) {
                LOGGER.warn("No available memcached servers can be found");
                builder.outOfService().withDetail("message", "No memcached servers available.");
                return;
            }
            val unavailableList = client.getUnavailableServers();
            if (!unavailableList.isEmpty()) {
                val description = "One or more memcached servers is unavailable: " + unavailableList;
                builder.down().withDetail("message", description);
                return;
            }
            super.doHealthCheck(builder);
        } catch (final Exception e) {
            LoggingUtils.error(LOGGER, e);
            builder.down()
                .withException(e)
                .withDetail("message", "Unable to determine memcached server status.");
        }

    }
Monitors the memcached hosts known to an instance of {@link MemcachedClientIF}.

@author Marvin S. Addison
@since 3.5.1
@deprecated Since 7.0.0
support/cas-server-support-memcached-monitor/src/main/java/org/apereo/cas/monitor/MemcachedHealthIndicator.java